How to make FeatureTable's Grid re-sizable?

886
1
04-13-2021 07:36 AM
ShaningYu
Frequent Contributor

I have a JS4 App that load a FeatureTable (Grid) associated with a FeatureLayer.  The Grid is un-sizable.  I have 2 Qs below:

1) How to make the Grid re-sizable - I mean there is such a button on the up-middle of the Grid as being able to re-size the Grid (the Grid's height get increased / decreased by mouse operation).

2) How can the Grid height be changed dynamically?

Thanks.

Tags (1)
0 Kudos
1 Reply
ReneRubalcava
Frequent Contributor

You can use css resize. on the container for the table.

https://developer.mozilla.org/en-US/docs/Web/CSS/resize

If you want something more configurable for height and width, you'll need to build it or find a third-party UI library for it.

0 Kudos