Documentation
Toolbar Dropdown
getName
Returns: String
Get the name of the dropdown.
ondropdown: {
myplugin: {
observe: function(dropdown)
{
var name = dropdown.getName();
}
}
}
getItem
Arguments:
- name
String
Returns: Object
Get the item of the dropdown.
ondropdown: {
myplugin: {
observe: function(dropdown)
{
var item = dropdown.getItem('myitemname');
}
}
}
getItemsByClass
Arguments:
- classname
String
Returns: Array
Get the array of the dropdown items by class name.
ondropdown: {
myplugin: {
observe: function(dropdown)
{
var items = dropdown.getItemsByClass('.myitems');
}
}
}
dkjgvo65776inru43654