summarytable icon indicating copy to clipboard operation
summarytable copied to clipboard

Right and left border formatting

Open SimJohann opened this issue 6 years ago • 3 comments

Hi,

I can not get the right and left border style formatting to work properly. When I try this, my last data column jumps to a new line - does not matter how many data columns, the last one always jumps to next line as per picture below.

Example from your sample file where I have changed the "border-top-style" property to "border-right-style":

"headerStyle": "border-right:1px;border-right-color:#aaa;border-right-style:solid;

image

SimJohann avatar Apr 29 '19 09:04 SimJohann

Hi, Thanks for pointing this out. I can confirm that this is a bug that now has been fixed (in version 1.4.3). It has to do with the reserved size of the table currently only include the columns' width, not including the border width. The new version will have a special property "additionalWidth" that can be used for this scenario. Version 1.4.3 will reach production in a couple of weeks. In the meantime you can use the preview version, available in the dist folder.

/ Fredrik

fredrikheden avatar Apr 29 '19 17:04 fredrikheden

Hi Fredrik, Downloaded the dev version 1.4.3, but where do I set this property? On each of the data columns, on one of them or somewhere else?

-Simen

SimJohann avatar May 02 '19 15:05 SimJohann

Hi, You specify this property one time on the root-level of the json structure (same level as columns and rows).

fredrikheden avatar May 02 '19 16:05 fredrikheden