Skip to main content

CssDefaults.Grid

Assembly: ServiceStack.Blazor.dll
View Source
Declaration
public static class Grid

Fields

DefaultTableStyle

View Source
Declaration
public const TableStyle DefaultTableStyle = TableStyle.StripedRows

GridClass

View Source
Declaration
public const string GridClass = "mt-4 flex flex-col"

Grid2Class

View Source
Declaration
public const string Grid2Class = "-my-2 -mx-4 overflow-x-auto sm:-mx-6 lg:-mx-8"

Grid3Class

View Source
Declaration
public const string Grid3Class = "inline-block min-w-full py-2 align-middle md:px-6 lg:px-8"

Grid4Class

View Source
Declaration
public const string Grid4Class = "overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"

TableClass

View Source
Declaration
public const string TableClass = "min-w-full divide-y divide-gray-200 dark:divide-gray-700"

TableHeadClass

View Source
Declaration
public const string TableHeadClass = "bg-gray-50 dark:bg-gray-900"

TableCellClass

View Source
Declaration
public const string TableCellClass = "px-6 py-4 whitespace-nowrap text-sm text-gray-500 dark:text-gray-400"

TableHeaderRowClass

View Source
Declaration
public const string TableHeaderRowClass = "select-none"

TableHeaderCellClass

View Source
Declaration
public const string TableHeaderCellClass = "px-6 py-4 text-left text-sm font-medium tracking-wider whitespace-nowrap"

TableBodyClass

View Source
Declaration
public const string TableBodyClass = ""

Methods

GetGridClass(TableStyle)

View Source
Declaration
public static string GetGridClass(TableStyle style = TableStyle.StripedRows)
Returns

System.String

Parameters
TypeName
ServiceStack.Blazor.Components.TableStylestyle

GetGrid2Class(TableStyle)

View Source
Declaration
public static string GetGrid2Class(TableStyle style = TableStyle.StripedRows)
Returns

System.String

Parameters
TypeName
ServiceStack.Blazor.Components.TableStylestyle

GetGrid3Class(TableStyle)

View Source
Declaration
public static string GetGrid3Class(TableStyle style = TableStyle.StripedRows)
Returns

System.String

Parameters
TypeName
ServiceStack.Blazor.Components.TableStylestyle

GetGrid4Class(TableStyle)

View Source
Declaration
public static string GetGrid4Class(TableStyle style = TableStyle.StripedRows)
Returns

System.String

Parameters
TypeName
ServiceStack.Blazor.Components.TableStylestyle

GetTableClass(TableStyle)

View Source
Declaration
public static string GetTableClass(TableStyle style = TableStyle.StripedRows)
Returns

System.String

Parameters
TypeName
ServiceStack.Blazor.Components.TableStylestyle

GetTableHeadClass(TableStyle)

View Source
Declaration
public static string GetTableHeadClass(TableStyle style = TableStyle.StripedRows)
Returns

System.String

Parameters
TypeName
ServiceStack.Blazor.Components.TableStylestyle

GetTableHeaderRowClass(TableStyle)

View Source
Declaration
public static string GetTableHeaderRowClass(TableStyle style = TableStyle.StripedRows)
Returns

System.String

Parameters
TypeName
ServiceStack.Blazor.Components.TableStylestyle

GetTableHeaderCellClass(TableStyle)

View Source
Declaration
public static string GetTableHeaderCellClass(TableStyle style = TableStyle.StripedRows)
Returns

System.String

Parameters
TypeName
ServiceStack.Blazor.Components.TableStylestyle

GetTableBodyClass(TableStyle)

View Source
Declaration
public static string GetTableBodyClass(TableStyle style = TableStyle.StripedRows)
Returns

System.String

Parameters
TypeName
ServiceStack.Blazor.Components.TableStylestyle

GetTableRowClass(TableStyle, Int32, Boolean, Boolean)

View Source
Declaration
public static string GetTableRowClass(TableStyle style, int i, bool selected, bool allowSelection)
Returns

System.String

Parameters
TypeName
ServiceStack.Blazor.Components.TableStylestyle
System.Int32i
System.Booleanselected
System.BooleanallowSelection