Skip to main content

BootstrapMenuBuilder Members

Represents a menu control.

Constructors

Name Description
BootstrapMenuBuilder(IHtmlHelper) Initializes a new instance of the BootstrapMenuBuilder class.

Methods

Name Description
AllowSelectItem(Boolean) Sets a value specifying whether items can be selected within the menu.
AppearAfter(Int32) Sets the delay in displaying submenus within the menu.
BeginGroupField(String) Sets the data source field which identifies menu items that start a group.
Bind(Object)
ClientSideEvents(Action<MenuClientSideEventsBuilder>) Object that lists the client-side events specific to the menu.
ClientVisible(Boolean) Sets a value that specifies the initial visibility state of a web control on the client.
CssClasses(Action<BootstrapMenuCssClassesBuilder>) Provides access to CSS classes applied to visual elements of the Menu control.
DisappearAfter(Int32) Sets the duration after which a dynamic menu (a menu item’s submenu or a popup menu) disappears when the mouse pointer is no longer positioned over the menu.
EnableClientSideAPI(Boolean) Sets a value that specifies whether the menu can be manipulated on the client side via code.
Enabled(Boolean) Inherited from BootstrapControlBuilder<T>.
EncodeHtml(Boolean) Inherited from BootstrapControlBuilder<T>.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) Determines whether the specified object instances are considered equal. Inherited from Object.
FirstSubMenuDirection(FirstSubMenuDirection) Sets the direction in which the first sub-menu appears.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
Height(Int32) Inherited from BootstrapControlBuilder<T>.
Height(String) Inherited from BootstrapControlBuilder<T>.
IconCssClassField(String) Sets the data source field that provides names of CSS classes that define images displayed by the menu items.
ItemAutoWidth(Boolean) Sets a value that specifies whether root item widths are calculated automatically, so that root items are resized (stretched or shrinked) proportionally to the menu control’s width.
Items(Action<BootstrapMenuItemCollectionBuilder>) Collection that contains menu items of the menu’s root level.
ItemSubMenuOffset(Action<ItemSubMenuOffsetBuilder>) Specific offset settings for submenus of the submenu items.
ItemTemplate(TemplateContent) Sets a common template used for displaying the content of all menu items within a menu control.
ItemTemplate(TemplateContentCallback<BootstrapMenuItemTemplateContainerSettings>) Sets a common template used for displaying the content of all menu items within a menu control.
ItemTextTemplate(TemplateContent) Sets a common template used for displaying the text content of all menu items within a menu control.
ItemTextTemplate(TemplateContentCallback<BootstrapMenuItemTemplateContainerSettings>) Sets a common template used for displaying the text content of all menu items within a menu control.
MaximumDisplayLevels(Int32) Sets the number of menu levels to render.
MemberwiseClone() Creates a shallow copy of the current Object. Inherited from Object.
Name(String) Inherited from BootstrapControlBuilder<T>.
NameField(String) Sets the name of a data field (or an xml element’s attribute) which provides menu item unique identifier names.
NavigateUrlField(String) Sets the name of a data field (or an xml element’s attribute) which provides menu item navigation locations.
NavigateUrlFormatString(String) Sets the pattern used to format item navigation URLs.
OnInitialized(Action<IBootstrapMenu, IEventArgs>)
Orientation(Orientation) Sets the direction in which to render the menu.
ReferenceEquals(Object, Object) Determines whether the specified Object instances are the same instance. Inherited from Object.
RootItemSubMenuOffset(Action<ItemSubMenuOffsetBuilder>) Specific offset settings for submenus of the root menu items.
RootItemTemplate(TemplateContent) Sets a common template used for displaying the content of all root items within a menu control.
RootItemTemplate(TemplateContentCallback<BootstrapMenuItemTemplateContainerSettings>) Sets a common template used for displaying the content of all root items within a menu control.
RootItemTextTemplate(TemplateContent) Sets a common template used for displaying the text content of all root menu items within a menu control.
RootItemTextTemplate(TemplateContentCallback<BootstrapMenuItemTemplateContainerSettings>) Sets a common template used for displaying the text content of all root menu items within a menu control.
SelectParentItem(Boolean) Sets whether a root menu item is displayed selected when selecting any of its subitems.
SettingsBootstrap(Action<BootstrapMenuBootstrapSpecificSettingsBuilder>) Provides access to BootstrapMenu’s rendering settings affecting features specific to the Bootstrap framework.
ShowPopOutImages(Nullable<Boolean>) Sets a value specifying whether pop-out images that indicate that a menu item has a submenu are displayed.
SubMenuTemplate(TemplateContent) Sets a common template used for displaying the client region’s content of all submenus within a menu control.
SubMenuTemplate(TemplateContentCallback<BootstrapMenuItemTemplateContainerSettings>) Sets a common template used for displaying the client region’s content of all submenus within a menu control.
SyncSelectionMode(SyncSelectionMode) Sets whether the menu item, whose navigation location points to the currently browsed web page, is automatically selected.
TabIndex(Int16) Sets the control’s tab index.
Target(String) Sets the window or frame at which to tarthe contents of the URLs associated with all links within a menu.
TextField(String) Sets the name of a data field (or an xml element’s attribute) which provides menu item texts.
TextFormatString(String) Sets the pattern used to format menu item texts.
ToolTip(String) Sets the text displayed when the mouse pointer hovers over the control.
ToolTipField(String) Sets the name of a data field (or an xml element’s attribute) which provides menu item tooltip texts.
ToString() Returns a string that represents the current object. Inherited from Object.
Visible(Boolean) Inherited from BootstrapControlBuilder<T>.
Width(Int32) Inherited from BootstrapControlBuilder<T>.
Width(String) Inherited from BootstrapControlBuilder<T>.
WriteTo(TextWriter, HtmlEncoder) Inherited from BootstrapControlBuilder<T>.
See Also