DropDownButtonItemBuilder
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
RETURNS
Returns the current DropDownButtonItemBuilder instance.
HtmlAttributes(System.Object)
Adds custom attributes to the LI element of the menu button.
Parameters
value - System.Object
The value for HtmlAttributes
RETURNS
Returns the current DropDownButtonItemBuilder instance.
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.
RETURNS
Returns the current DropDownButtonItemBuilder instance.
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.
RETURNS
Returns the current DropDownButtonItemBuilder instance.
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.
RETURNS
Returns the current DropDownButtonItemBuilder instance.
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.
RETURNS
Returns the current DropDownButtonItemBuilder instance.
Enabled(System.Boolean)
Toggles the enabled state of the item.
Parameters
value - System.Boolean
The value for Enabled
RETURNS
Returns the current DropDownButtonItemBuilder instance.
Hidden(System.Boolean)
Indicates wether the item should hidden.
Parameters
value - System.Boolean
The value for Hidden
RETURNS
Returns the current DropDownButtonItemBuilder instance.
Hidden()
Indicates wether the item should hidden.
RETURNS
Returns the current DropDownButtonItemBuilder instance.
Icon(System.String)
Specifies the icon of the item.
Parameters
value - System.String
The value for Icon
RETURNS
Returns the current DropDownButtonItemBuilder instance.
Id(System.String)
Specifies the id of the item.
Parameters
value - System.String
The value for Id
RETURNS
Returns the current DropDownButtonItemBuilder instance.
ImageUrl(System.String)
Specifies the image of the item.
Parameters
value - System.String
The value for ImageUrl
RETURNS
Returns the current DropDownButtonItemBuilder instance.
SpriteCssClass(System.String)
Specifies custom css class added to the sprite icon element of the item.
Parameters
value - System.String
The value for SpriteCssClass
RETURNS
Returns the current DropDownButtonItemBuilder instance.
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
RETURNS
Returns the current DropDownButtonItemBuilder instance.