HtmlForgeX

API Reference

Class

TablerUserProfile

Namespace HtmlForgeX
Assembly HtmlForgeX

User profile configuration

Inheritance

  • Object
  • TablerUserProfile

Constructors

public TablerUserProfile() #

Initializes a new instance of the TablerUserProfile class with default menu items

Methods

public TablerUserProfile ClearMenuItems() #
Returns: TablerUserProfile

Clears all menu items from the user dropdown

Returns

This TablerUserProfile instance for method chaining

public TablerUserProfile Divider() #
Returns: TablerUserProfile

Adds a divider to the user dropdown menu

Returns

This TablerUserProfile instance for method chaining

public TablerUserProfile MenuItem(String text, String href, Nullable<TablerIconType> icon = null) #
Returns: TablerUserProfile

Adds a menu item to the user dropdown

Parameters

text System.String requiredposition: 0
Menu item text
href System.String requiredposition: 1
Menu item href URL
icon System.Nullable{HtmlForgeX.TablerIconType} = null optionalposition: 2
Optional menu item icon

Returns

This TablerUserProfile instance for method chaining

Properties

public String Name { get; set; } #

Gets or sets the user name

public String Title { get; set; } #

Gets or sets the user title (optional)

public String AvatarUrl { get; set; } #

Gets or sets the avatar image URL (optional)

public List<TablerUserMenuItem> MenuItems { get; } #

Gets the list of menu items for the user dropdown