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
};