Exemplo n.º 1
0
        public static string ToCssClass(this TableRowCellColor color)
        {
#if BOOTSTRAP4
            const string prefix = "table-";
#else
            const string prefix = "";
#endif
            // String concatenation will be optimized at compile-time
            switch (color)
            {
            case TableRowCellColor.ActiveGray:
                return(prefix + "active");

            case TableRowCellColor.SuccessGreen:
                return(prefix + "success");

            case TableRowCellColor.InfoCyan:
                return(prefix + "info");

            case TableRowCellColor.WarningOrange:
                return(prefix + "warning");

            case TableRowCellColor.DangerRed:
                return(prefix + "danger");

            case TableRowCellColor.DefaultNone:
            default:
                return(string.Empty);
            }
        }
Exemplo n.º 2
0
        public static string ToCssClass(this TableRowCellColor color)
        {
            switch (color)
            {
            case TableRowCellColor.ActiveGray:
                return("table-active");

            case TableRowCellColor.SuccessGreen:
                return("table-success");

            case TableRowCellColor.InfoCyan:
                return("table-info");

            case TableRowCellColor.WarningOrange:
                return("table-warning");

            case TableRowCellColor.DangerRed:
                return("table-danger");

            case TableRowCellColor.DefaultNone:
            default:
                return(string.Empty);
            }
        }
Exemplo n.º 3
0
 public IWriter2<TableCell, AnyContent> TD(TableRowCellColor color, object value)
 {
     return Cell(color, value);
 }
Exemplo n.º 4
0
 public static TableRowContent BeginTableRow(this IAnyContentMarker contentHelper, TableRowCellColor color)
 {
     return(TableRow(contentHelper).Color(color).BeginContent());
 }
Exemplo n.º 5
0
 public TableRowContent BeginRow(TableRowCellColor color)
 {
     return(Row().Color(color).BeginContent());
 }
Exemplo n.º 6
0
 public AnyContent BeginHeaderCell(TableRowCellColor color)
 {
     return(HeaderCell().Color(color).BeginContent());
 }
Exemplo n.º 7
0
 public IWriter2 <TableHeaderCell, AnyContent> HeaderCell(TableRowCellColor color, object value)
 {
     return(HeaderCell(value).Color(color));
 }
Exemplo n.º 8
0
 public TableRowContent BeginRow(TableRowCellColor color)
 {
     return Row().Color(color).BeginContent();
 }
Exemplo n.º 9
0
 public IWriter2<TableHeaderCell, AnyContent> HeaderCell(TableRowCellColor color, object value)
 {
     return HeaderCell(value).Color(color);
 }
Exemplo n.º 10
0
 public AnyContent BeginTD(TableRowCellColor color)
 {
     return(Cell(color).BeginContent());
 }
Exemplo n.º 11
0
 public IItemWriter <TableCell, AnyContent> TD(TableRowCellColor color, object value)
 {
     return(Cell(color, value));
 }
Exemplo n.º 12
0
 public IWriter2 <TableCell, AnyContent> TD(TableRowCellColor color, params object[] values)
 {
     return(Cell(color, values));
 }
Exemplo n.º 13
0
 public AnyContent BeginTD(TableRowCellColor color)
 {
     return Cell(color).BeginContent();
 }
Exemplo n.º 14
0
 public IWriter2<TableHeaderCell, AnyContent> TH(TableRowCellColor color, object value)
 {
     return HeaderCell(color, value);
 }
Exemplo n.º 15
0
 public IWriter2<TableCell, AnyContent> TD(TableRowCellColor color, params object[] values)
 {
     return Cell(color, values);
 }
Exemplo n.º 16
0
 public IItemWriter <TableHeaderCell, AnyContent> TH(TableRowCellColor color, object value)
 {
     return(HeaderCell(color, value));
 }
Exemplo n.º 17
0
 public AnyContent BeginHeaderCell(TableRowCellColor color)
 {
     return HeaderCell().Color(color).BeginContent();
 }
Exemplo n.º 18
0
 public IItemWriter <TableHeaderCell, AnyContent> TH(TableRowCellColor color, params object[] values)
 {
     return(HeaderCell(color, values));
 }
Exemplo n.º 19
0
 public IWriter2<TableHeaderCell, AnyContent> HeaderCell(TableRowCellColor color, params object[] values)
 {
     return HeaderCell(values).Color(color);
 }
Exemplo n.º 20
0
 public IItemWriter <TableCell, AnyContent> Cell(TableRowCellColor color, object value)
 {
     return(Cell(value).Color(color));
 }
Exemplo n.º 21
0
 public IWriter2<TableRow, TableRowContent> Row(TableRowCellColor color)
 {
     return Row().Color(color);
 }
Exemplo n.º 22
0
 public IItemWriter <TableCell, AnyContent> Cell(TableRowCellColor color, params object[] values)
 {
     return(Cell(values).Color(color));
 }
Exemplo n.º 23
0
 public IWriter2 <TableHeaderCell, AnyContent> HeaderCell(TableRowCellColor color, params object[] values)
 {
     return(HeaderCell(values).Color(color));
 }
Exemplo n.º 24
0
 public static IItemWriter <TableCell, AnyContent> TableCell(this IAnyContentMarker contentHelper, TableRowCellColor color, object value)
 {
     return(TableCell(contentHelper, value).Color(color));
 }
Exemplo n.º 25
0
 public IWriter2 <TableRow, TableRowContent> Row(TableRowCellColor color)
 {
     return(Row().Color(color));
 }
Exemplo n.º 26
0
 public static AnyContent BeginTableCell(this IAnyContentMarker contentHelper, TableRowCellColor color)
 {
     return(contentHelper.CreateWriter <TableCell, AnyContent>().BeginContent());
 }
Exemplo n.º 27
0
 public static IItemWriter <T, TableRowContent> Color <T>(this IItemWriter <T, TableRowContent> target, TableRowCellColor color)
     where T : TableRow
 {
     target.Item.Color = color;
     return(target);
 }
Exemplo n.º 28
0
 public static IItemWriter <TableHeaderCell, AnyContent> TableHeaderCell(this IAnyContentMarker contentHelper, TableRowCellColor color, params object[] values)
 {
     return(TableHeaderCell(contentHelper, values).Color(color));
 }
Exemplo n.º 29
0
 public static IItemWriter <TableRow, TableRowContent> TableRow(this IAnyContentMarker contentHelper, TableRowCellColor color)
 {
     return(TableRow(contentHelper).Color(color));
 }
Exemplo n.º 30
0
 public static IWriter2 <T, AnyContent> Color <T>(this IWriter2 <T, AnyContent> target, TableRowCellColor color)
     where T : TableCell
 {
     target.Item.ColorValue = color;
     return(target);
 }