# Change column width of Table in Perspective

**URL:** <https://forum.inductiveautomation.com/t/change-column-width-of-table-in-perspective/27059>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 31, 2019, 8:49pm UTC](https://forum.inductiveautomation.com/t/change-column-width-of-table-in-perspective/27059 "2019-07-31T20:49:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [July 31, 2019, 9:50pm UTC](https://forum.inductiveautomation.com/t/change-column-width-of-table-in-perspective/27059/2 "2019-07-31T21:50:44Z")

</div>

To allow for a column to have its size specified, there are several conditions which must be met.

1. You must have an entry in the `props.columns` array.
2. One of the `props.columns` entries MUST have the field specified as a case-sensitive match to a key of your data (using the example data of the Table you could supply “city”, “country” or “population”).
3. Supply a value for `props.columns[x].width`, where “x” is the index of the column specified to be the column for your field/key. The value you specify here is understood to be in pixels, so a value of `150` would mean “150px”. Supplying “px” as part of the value will result in it being ignored.

This screenshot displays how I’ve created a column entry, set my column entry’s field to “city” (which matches a key from my supplied data), and I’ve specified a width of `50`. You can see that my “city” column is considerably thinner than my other columns. Any column which does NOT have a width set will stretch to fill the available area.

 ![19%20PM](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/0f5760e65743897d957fc9ccb91512ca8920e70e.png)

If you want the column to always be EXACTLY some width, you should set the `props.columns[x].strictWidth` property to be `true`

---

_[View the full topic](https://forum.inductiveautomation.com/t/change-column-width-of-table-in-perspective/27059)._
