Constructor
new ButtonFactory()
Methods
(static) createButton(text, options) → {ButtonSystem.Button}
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)
Sets the defailt button builder
Parameters:
Name | Type | Description |
---|---|---|
builder |
ButtonBuilder |