Documentation
Toolbar Dropdown Item
setTitle #
Arguments:
- title
String
Set the title to the dropdown item.
ondropdown: {
myplugin: {
observe: function(dropdown)
{
var item = dropdown.getItem('myitemname');
item.setTitle('My item');
}
}
}
getTitle #
Returns: String
Get the title of the dropdown item.
ondropdown: {
myplugin: {
observe: function(dropdown)
{
var item = dropdown.getItem('myitemname');
var title = item.getTitle();
}
}
}
enable #
Enable the dropdown item.
ondropdown: {
myplugin: {
observe: function(dropdown)
{
var item = dropdown.getItem('myitemname');
item.enable();
}
}
}
disable #
Disable the dropdown item.
ondropdown: {
myplugin: {
observe: function(dropdown)
{
var item = dropdown.getItem('myitemname');
item.disable();
}
}
}