Badge
methodsGets or sets the badge of a button within the ButtonGroup. This method supports several usage scenarios:
- Get badge value: When called with only the button parameter, returns the current badge text
- Set badge value: When called with a button and string/number value, updates the badge text
- Create badge: If the button doesn't have a badge, creates a new one with the specified value
- Remove badge: When called with
falseas the value parameter, completely removes the badge from the button - Handle zero: Properly handles zero (0) as a valid badge value
Parameters:buttonSelector|Number
valueString|Boolean
Returns:String|kendo.ui.Button
The target button specified either as a jQuery selector/object or as an button index.
The target value to be set or false to be removed.
the badge value if invoked without parameters, otherwise the ButtonGroup object.