EAPBootstrapUtilsGetColumnClass Method |
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.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string GetColumnClass(
IAppContext appCxt,
BootstrapBreakpoints bp,
int span
)
Public Shared Function GetColumnClass (
appCxt As IAppContext,
bp As BootstrapBreakpoints,
span As Integer
) As String
Parameters
- appCxt
- Type: NetQuarryIAppContext
The application context. - bp
- Type: NetQuarryBootstrapBreakpoints
The breakpoint. - span
- Type: SystemInt32
The number of columns spanned (must be between 1 and 12).
Return Value
Type:
StringThe Bootstrap grid column class.
See Also