NEW > 2022/07/29
TV / Toolbar / Add Dropdown Button¶
Now you can add a Dropdown-Button, opening a menu of more Links or Buttons.
The dropdown itself can be added by using the AppGiniHelper.TV.addDropdown() -method. That method returns a dropdown-object, for example var dd = AppGiniHelper.TV.addDropdown("flash", "More...");
Menu items (Links or Buttons) can be added to that dropdown by using .addLink(...) or .addButton(...) -method on the dropdown object, for example dd.addLink("#", "cog", "Test);
Example¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | |
Parameters¶
TV.addDropdown¶
- icon (
string) - text - button caption (
string, optional)
Dropdown.addLink¶
- href (
string) - icon (
string) - text (
string, optional)
addButton¶
- callback (
function) - icon (
string) - text (
string, optional)