This code is in the file, but is missing the other two sides of the cell
if (format.BorderBottom != null)
sb.AddStyle("border-bottom", $"{format.BorderBottom.Width}px solid {format.BorderBottom.Color};");
if (format.BorderRight != null)
sb.AddStyle("border-right", $"{format.BorderRight.Width}px solid {format.BorderRight.Color};");
Can we add:
if (format.BorderLeft != null)
sb.AddStyle("border-left", $"{format.BorderLeft.Width}px solid {format.BorderLeft.Color};");
if (format.BorderTop != null)
sb.AddStyle("border-top", $"{format.BorderTop.Width}px solid {format.BorderTop.Color};");
Like it is we can only have a bottom and a right border.
I tested in the browser developer adding those styles and it looked good so this will work.
This code is in the file, but is missing the other two sides of the cell
Can we add:
Like it is we can only have a bottom and a right border.
I tested in the browser developer adding those styles and it looked good so this will work.