Search results

SplitButtonComponent

SplitButtonComponent represents the react SplitButton Component.

<SplitButtonComponent content='Split Button'></SplitButtonComponent>

Properties

content

string

Defines the content of the SplitButton primary action button can either be a text or HTML elements.

Defaults to ""

cssClass

string

Defines class/multiple classes separated by a space in the SplitButton element. The SplitButton size and styles can be customized by using this.

Defaults to ""

disabled

boolean

Specifies a value that indicates whether the SplitButton is disabled or not.

Defaults to false.

enablePersistence

boolean

Enable or disable persisting component’s state between page reloads.

Defaults to false

enableRtl

boolean

Enable or disable rendering component in right to left direction.

Defaults to false

iconCss

string

Defines class/multiple classes separated by a space for the SplitButton that is used to include an icon. SplitButton can also include font icon and sprite image.

Defaults to ""

iconPosition

string

Positions the icon before/top of the text content in the SplitButton. The possible values are

  • Left: The icon will be positioned to the left of the text content.
  • Top: The icon will be positioned to the top of the text content.

Defaults to “Left”

items

ItemModel[]

Specifies action items with its properties which will be rendered as SplitButton secondary button popup.

Defaults to []

locale

string

Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.

Defaults to undefined

target

string | Element

Allows to specify the SplitButton popup item element.

Defaults to ""

Methods

getPersistData

Get the properties to be maintained in the persisted state.

Returns string

onPropertyChanged

Called internally if any of the property value changed.

Returns void

toggle

To open/close SplitButton popup based on current state of the SplitButton.

Returns void

Events

beforeClose

EmitType<BeforeOpenCloseMenuEventArgs>

Triggers before closing the SplitButton popup.

beforeItemRender

EmitType<MenuEventArgs>

Triggers while rendering each Popup item of SplitButton.

beforeOpen

EmitType<BeforeOpenCloseMenuEventArgs>

Triggers before opening the SplitButton popup.

click

EmitType<ClickEventArgs>

Triggers when the primary button of SplitButton has been clicked.

close

EmitType<OpenCloseMenuEventArgs>

Triggers while closing the SplitButton popup.

created

EmitType<Event>

Triggers once the component rendering is completed.

open

EmitType<OpenCloseMenuEventArgs>

Triggers while opening the SplitButton popup.

select

EmitType<MenuEventArgs>

Triggers while selecting action item of SplitButton popup.