Header

Widget Section Element: Header

The header section element can be used to add text at the top of the section element. There are two types of headers: 

  • Title 
  • Breadcrumbs 

 The header section element also supports buttons in addition to text. You can also choose to have only buttons without any text as well. 

Example for header title: 


header = {
    "title":"Widget Header",
    "buttons":[
        {
        "label":"Button 1",
        "type":"invoke.function",
        "name":"button",
        "id":"section"
        }
    ]
};
elements = list();
elements.add(
    {
        "type":"title",
        "text":"Here goes the widget title!"
    }
);
sections = list();
sections.add(
    {
        "id":"1",
        "elements":elements
    }
);
return {
    "type":"applet",
    "header":header,
    "tabs":[
        {
            "label":"Header",
            "id":"header"
        }
    ],
    "active_tab":"homeTab",
    "sections":sections
};

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocliq.com