GriddleGriddle / griddle-core

Core grid logic for Griddle
5 stars 9 forks source link

Add column functionality to js/stores/data-store #15

Closed ryanlanciaux closed 9 years ago

ryanlanciaux commented 9 years ago

The base store will need to keep track of things like

columns: This is the array of all columns -- the values in the array should correspond to the name field in column metdata hash. visibleColumns: Columns that should currently be displayed hiddenColumns: The columns that should never appear (they are likely metadata or something). columnMetadata: Properties that impact how the columns behavior or display properties

We can't copy one-for-one but take a look at js/properties/columnProperties for an example.


ActionCreators for interacting with the columns. Maybe something like (but don't quote me on this :+1:):

SHOW_COLUMN: Action.Name = columnName HIDE_COLUMN: Action.Name = columnName LOAD_COLUMNS: Action.Columns = [array, of, columns];


Helpers (again potential -- not concrete):

GetVisibleColumns: Gets the current visible columns GetAllColumns: GetHiddenColumns GetMetaData(id): Gets the metadata for a specific column