Our blazing fast Grid component built with pure JavaScript


Post by Webethics »

It is possible to change the column width on click?


Post by mats »

Sure, columns is just a simple store with normal records:

grid.columns.first.width = 200

Post by Webethics »

Where it can be applied?


Post by saki »

Well, you add it where you want the column width to change. For demonstration, you can use advanced grid Vue demo and replace content of the addRecord handler in components/Grid.vue with:

addRecord() {
    const grid = this.$refs.grid.instance;
    grid.columns.first.width = 400;
}

Now, when you click Add Record the first column changes width.


Post by Webethics »

It has worked for me. Thank you!


Post Reply