scraperwiki-archive / alumina

A simple dashboard for your data projects
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Column widths get forgotten #3

Closed frabcus closed 11 years ago

frabcus commented 11 years ago

The default column widths aren't great, and when I reload the page it forgets them.

zarino commented 11 years ago

Indeed – it also forgets the column order if you drag them from their default positions.

The plan is to store both settings using cookies or something like store.js

There is a separate (and far harder to fix) issue over SlickGrid's default column sizing. I've spun that out into a separate ticket: #5

zarino commented 11 years ago

I've made some changes (commit be33bac40b9a506f15fa0e572bf20e8f49a31a8e) that pave the way for storing column order and widths client-side between page loads.

We now need to decide how best to store this state. Cookies or HTML5 LocalStorage (via store.js).

And how to make sure the state is stored for that table only and that box only.

drj11 commented 11 years ago

in cookies would be okay.

Additionally, it would be nice (nice, not essential) if i as a box author, could publish some good default settings.

zarino commented 11 years ago

Good default settings for what? Column widths?

zarino commented 11 years ago

Fixed in commit d4eafa92774bc9d08775b99fd996692509d66786 – column order and widths are now stored between pageloads.