API Reference
Class
DropdownItem
Dropdown menu item
Inheritance
- Object
- DropdownItem
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method DropdownItem.Active
- Method DropdownItem.Attribute
- Method DropdownItem.Disabled
- Method DropdownItem.Href
- Method DropdownItem.Text
- Method DropdownItem.WithIcon
Accepted by parameters
- Method TablerDropdown.Item
Constructors
DropdownItem 2 overloads
Methods
public DropdownItem Active(Boolean active = true) #Returns:
DropdownItemMark as active
Parameters
- active System.Boolean = true
public DropdownItem Attribute(String name, String value) #Returns:
DropdownItemAdds an arbitrary attribute to the rendered dropdown item.
Parameters
- name System.String
- value System.String
public DropdownItem Disabled(Boolean disabled = true) #Returns:
DropdownItemMark as disabled
Parameters
- disabled System.Boolean = true
public DropdownItem Href(String href) #Returns:
DropdownItemSet item link
Parameters
- href System.String
public virtual String Render() #Returns:
StringRenders the dropdown item to HTML
Returns
HTML string representation of the item
public DropdownItem Text(String text) #Returns:
DropdownItemSet item text
Parameters
- text System.String
public DropdownItem WithIcon(TablerIconType icon) #Returns:
DropdownItemAdd icon
Parameters
- icon HtmlForgeX.TablerIconType
Inherited Methods
Properties
public Nullable<TablerIconType> Icon { get; set; } #Gets or sets the icon for the dropdown item