Help
ButtonConfig
The ButtonConfig object defines a button or a split-button, which you render with the renderButton method in the ContentFrame API.
Properties
NameTypeMeaning
idstringID of the existing DOM object to render the button to.
minWidthintOptional minimum width in pixels for the button.
textstringText label for the button.
tooltipstringOptional tooltip for the button.
enabledbooleanOptional. Specify true to enable the button, false to disable. The default is true.
handlerfunctionHandler to call when the button is pressed.
scopeobjectOptional scope (this pointer) in which the handler function executes. If omitted, scope defaults to the Content Frame API object.
itemsobject[] Array of objects of type { text: string, handler: function } for the dropdown menu. If items is not null and contains more than one element, the button is rendered as a split button.
See Also
ContentFrame API