setTableStyle method
Sets some table styles for table
.
Implementation
static void setTableStyle(TableElement table) {
if (attr == null) {
initAttrFromDefaults();
}
table.style
..margin = "1em 0" // t r b l
// ..width = "100%"
..overflow = "hidden"
..backgroundColor = attr[TABLE_BACKGROUND_COLOR]
..background = attr[TABLE_BACKGROUND_COLOR]
..color = attr[TABLE_TEXT_COLOR]
..borderRadius = attr[TABLE_BORDER_RADIUS]
..border = attr[TABLE_OUTER_BORDER]
..borderSpacing = "0" // space between cells and border around table
// Note: without collapse (versus "separate"), the table cell border of 2
// adjacent cell are drawn separately, which
// lead optically to the effect that double borders appear.
// The default value of borderCollapse is browser dependent.
// We commented that out here because we don't draw borders
// around individual cells
// ..borderCollapse = "collapse"
;
}