SplitButtonItemBuilder
Methods
HtmlAttributes(System.Collections.Generic.IDictionary)
Adds custom attributes to the LI element of the menu button.
Parameters
value - System.Collections.Generic.IDictionary<String,Object>
The value for HtmlAttributes
HtmlAttributes(System.Object)
Adds custom attributes to the LI element of the menu button.
Parameters
value - System.Object
The value for HtmlAttributes
Click(System.String)
Adds unique click callback for the menu item.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Click(System.Func)
Adds unique click callback for the menu item.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Data(System.String)
Adds a custom data callback to be added to the context of menu item - useful to attach context dynamically.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Data(System.Func)
Adds a custom data callback to be added to the context of menu item - useful to attach context dynamically.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Enabled(System.Boolean)
Toggles the enabled state of the item.
Parameters
value - System.Boolean
The value for Enabled
Hidden(System.Boolean)
Indicates wether the item should hidden.
Parameters
value - System.Boolean
The value for Hidden
Hidden()
Indicates wether the item should hidden.
Icon(System.String)
Specifies the icon of the item.
Parameters
value - System.String
The value for Icon
Id(System.String)
Specifies the id of the item.
Parameters
value - System.String
The value for Id
ImageUrl(System.String)
Specifies the image of the item.
Parameters
value - System.String
The value for ImageUrl
SpriteCssClass(System.String)
Specifies the custom CSS class that is added to the sprite icon element of the item.
Parameters
value - System.String
The value for SpriteCssClass
Text(System.String)
Specifies the text of the item. ### items.url StringSpecifies the url of the item - it will render a element and will navigate the browser on click.
Parameters
value - System.String
The value for Text