ButtonFactory

ButtonSystem. ButtonFactory

ButtonFactory can create buttons

Methods

(static) createButton(text, options) → {ButtonSystem.Button}

Source:
Create a new button
Example
ButtonFactory.createButton("MyButton", {
    style: "outlined",
    onAction: ()=>{
        //Someone pressed my button
    }
});
Parameters:
Name Type Description
text String The text of the button
options ButtonSystem~ButtonConfig
Returns:
Type
ButtonSystem.Button

(static) setDefaultBuilder(builder)

Source:
Sets the defailt button builder
Parameters:
Name Type Description
builder ButtonBuilder