EAPBootstrapUtils Class |
Namespace: NetQuarry
The EAPBootstrapUtils type exposes the following members.
Name | Description | |
---|---|---|
AddBreadcrumbItemClasses |
Adds classes for breadcrumb items appropriate for the version of Bootstrap being used.
| |
AddButtonClasses |
Adds the Bootstrap class(es) for a button appropriate for the version of Bootstrap being used.
| |
AddCollapseClasses |
Adds the Bootstrap class(es) for collapsable elements and the initial open/collapsed state appropriate for the version of Bootstrap being used.
| |
AddColumnClass |
Adds the class for a Bootstrap grid column appropriate for the version of Bootstrap being used.
Uses GetColumnClass(IAppContext, BootstrapBreakpoints, Int32) to get the breakpoint class.
| |
AddDropdownClass |
Adds the Bootstrap class, appropriate for the version of Bootstrap being used, for a dropdown
(i.e. SELECT element/combobox) control.
| |
AddHiddenClass |
Adds the Bootstrap class for hiding an HTML element appropriate for the version of Bootstrap being used.
Note that the class hides the element by setting the display:none style. Note also that the
hidden class in Bootstrap 3 has been replaced by d-none in Bootstrap 4, but to minimize
Boostrap version differences the platform ensures that both classes are defined in both environments.
| |
AddNavClass |
Adds the Bootstrap class, appropriate for the version of Bootstrap being used, for a navigator.
Use AddNavItemClass(IAppContext, Control) to add Bootstrap classes to a navigation element inside the navigator.
| |
AddNavItemClass |
Adds the Bootstrap class, appropriate for the version of Bootstrap being used, for a navigation element.
Use AddNavClass(IAppContext, Control) to add Bootstrap classes to the containing navigator.
| |
AddNavLinkClass |
Adds the Bootstrap class, appropriate for the version of Bootstrap being used, for a link.
| |
AddPanelClasses |
Adds the Bootstrap class, appropriate for the version of Bootstrap being used, for a panel/card
element (the Bootstrap 3 "panel" concept has been rolled into the Bootstrap 4 card concept).
| |
AddTableClasses |
Adds the Bootstrap class(es) for HTML TABLE elements appropriate for the version of Bootstrap being used.
| |
GetBreakpointAbbreviation |
Gets the Bootstrap grid column breakpoint abbreviation string
for the specified breakpoint appropriate for the version of Bootstrap being used.
Note that the BootstrapBreakpoints names correspond roughly with the Bootstrap 4 names.
For example BootstrapBreakpoints.Medium will return "md" for Bootstrap 4, but "sm" for Bootstrap 3.
| |
GetColumnClass |
Gets the Bootstrap grid column breakpoint class
for the specified breakpoint appropriate for the version of Bootstrap being used.
Uses GetBreakpointAbbreviation(IAppContext, BootstrapBreakpoints) to get the breakpoint abbreviation.
Note that the BootstrapBreakpoints names correspond roughly with the Bootstrap 4 names.
For example BootstrapBreakpoints.Medium with a span of 6 will return "col-md-6" for Bootstrap 4, but "col-sm-6" for Bootstrap 3.
| |
GetPanelClass |
Gets the Bootstrap class, appropriate for the version of Bootstrap being used, for a panel/card
element (the Bootstrap 3 "panel" concept has been rolled into the Bootstrap 4 card concept).
| |
GetThemeClass |
Gets the Bootstrap theme class, appropriate for the version of Bootstrap being used, for the specified
standard theme and prefix.
|