• You can specify the dropdown menu element via dropdown_menu options. Otherwise TLP will look for a trigger's sibling with the tlp-dropdown-menu class.
  • You can right align the dropdown menu with the .tlp-dropdown-menu-right class.
  • Don't forget the .tlp-dropdown-menu-item-icon class if you use icons.
  • You can remove closing the dropdopwn on the escape key pressed: var the_dropdown = tlp.dropdown(trigger_element, {keyboard: false} );
  • var the_dropdown = tlp.dropdown('element-id'); will return a Dropdown instance. You can then call show(), hide(), or toggle() methods on this instance.
  • On the the_dropdown.show() method an event tlp-dropdown-shown is dispatched.
  • On the the_dropdown.hide() method an event tlp-dropdown-hidden is dispatched.