Esempio n. 1
0
 private void SetClass()
 {
     ClassMapper
     .Add("ant-table-cell")
     .If($"ant-table-cell-fix-{Fixed}", () => Fixed.IsIn("right", "left"))
     .If($"ant-table-cell-fix-right-first", () => Fixed == "right" && Context?.Columns.FirstOrDefault(x => x.Fixed == "right")?.ColIndex == this.ColIndex)
     .If($"ant-table-cell-fix-left-last", () => Fixed == "left" && Context?.Columns.LastOrDefault(x => x.Fixed == "left")?.ColIndex == this.ColIndex)
     ;
 }
Esempio n. 2
0
 private void SetClass()
 {
     ClassMapper
     .Add("ant-table-cell")
     .GetIf(() => $"ant-table-cell-fix-{Fixed}", () => Fixed.IsIn("right", "left"))
     .If($"ant-table-cell-fix-right-first", () => Fixed == "right" && Context?.Columns.FirstOrDefault(x => x.Fixed == "right")?.ColIndex == this.ColIndex)
     .If($"ant-table-cell-fix-left-last", () => Fixed == "left" && Context?.Columns.LastOrDefault(x => x.Fixed == "left")?.ColIndex == this.ColIndex)
     .If($"ant-table-cell-with-append", () => ColIndex == 1 && Table.TreeMode)
     .If($"ant-table-cell-ellipsis", () => Ellipsis)
     ;
 }