Saving and restoring qooxdoo table column sizes, visibility, and order

I was working on a music library management application built on qooxdoo, and I’ve always liked the way iTunes manages columns in its tables. You can hide and show columns, rearrange them, and resize them, and iTunes will remember your settings when you launch it next.

With a little work, you can do the same with a qooxdoo table. You just need to gather the column state, serialize it, and write it to a cookie whenever the user changes column state.

Then you need to load the state when the table appears:

You run this code at specific events in the table lifecycle:

Try it in the playground, or see a basic class implementation below:

Leave a Reply

Your email address will not be published. Required fields are marked *