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