/
How to set a table's column width in JSON macro using the Advanced Tables for Confluence app
How to set a table's column width in JSON macro using the Advanced Tables for Confluence app
This article explains how to set a JSON table's column width using the Advanced Tables for Confluence app.
Instructions
- Log into your Confluence instance,
- Insert the Advanced Table - JSON Table macro. For this example, consider the URL of JSON data:
- Edit the macro and navigate to JSON settings > Data source, Data format, Data settings and enter the below details as shown:
The following screenshot shows the different fields which we have selected for this example. - Go to Column Settings > Formatting > Cog wheel (> Show column attributes as shown:
Enter style="width:170px;"underColumn attributes, and click Save settings. (You can replace 170 px with your requirement).
Use Add formatting to specify formatting for other columns in your table.
Here we are adding the different column attributes for the columns with different pixel size. Use this style for the columns as per your requirement in your table(s).
The output displays the required table column width. For the given example, the table is displayed as:
- We recommend this to be tested in a non-production environment before implementing in production.
, multiple selections available,
Related content
How to configure the JSON Table macro to manipulate the row data in Confluence
How to configure the JSON Table macro to manipulate the row data in Confluence
More like this
Examples for JSON Table macro - 8.x
Examples for JSON Table macro - 8.x
More like this
Advanced Table Viewer [Beta] macro - cloud
Advanced Table Viewer [Beta] macro - cloud
More like this
Create a dynamic table
Create a dynamic table
More like this
Release notes 10.2
Release notes 10.2
More like this
Release notes 8.3
Release notes 8.3
More like this