<formatbtn>

JavaScript: lz.formatbtn
class for use of <richtexttoolbar> buttons

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
activecolor expression any 0xEAE4B7 read/write
  the tint for when the button is active. when inactive, use "tint" attribute.
activetooltiptext string String   read/write
  Text to show in tooltip when this is active
editor expression any this.parent.editor read/write
  a reference to toolbar's editor
format string String   read/write
  the format type that the button will control
inactivetooltiptext string String   read/write
  Text to show in tooltip when this is inactive
isactive expression any false read/write
  active state boolean
toolbar expression any this.parent read/write
  a reference to the toolbar parent

Methods

doClick()
formatbtn.doClick(ignore);
Parameter Name Type Description
ignore    

getValue()
formatbtn.getValue();

init()
formatbtn.init();

reset()
formatbtn.reset();
method broadcast out by the toolbar for clearing tool's state

setState()
formatbtn.setState(state);
method broadcast out by the toolbar for setting tool's state
Parameter Name Type Description
state    

Methods inherited from <stylishbutton>

init, updatePositions

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <basebutton>

onclick, onresourceviewcount

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy