API Reference
Class
DropdownItem
Dropdown menu item
Inheritance
- Object
- DropdownItem
Constructors
DropdownItem 2 overloads
Methods
public DropdownItem Active(Boolean active = true) #Returns:
DropdownItemMark as active
Parameters
- active System.Boolean = true
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