new ButtonsGroup(id)
A group of buttons that will be nicely wrapped if user's browser supports flexboxes or will be displayed as a single column in other browsers.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | ID of this widget |
Methods
-
addButton(button)
-
Adds a button to this group.
Parameters:
Name Type Description button
L.ALS.Widgets.Button Button to add
Returns:
This
-
addButtons(buttons)
-
Adds buttons to this group
Parameters:
Name Type Description buttons
L.ALS.Widgets.Button Buttons to add
Returns:
this;
-
getButton(buttonId)
-
Finds and returns button in this group
Parameters:
Name Type Description buttonId
string Button's ID
Returns:
Found button or undefined if there's no specified button
- Type
- L.ALS.Widgets.Button
-
removeButton(buttonId)
-
Removes given button
Parameters:
Name Type Description buttonId
string Button's ID to remove
Returns:
This