Add an option to specify what column is used to sort the table on an initial page load#64
Add an option to specify what column is used to sort the table on an initial page load#64matthewcornell wants to merge 1 commit into
Conversation
… _validateOptions() (checks type and that the name matches a known scores.csv column). Uses DataTables name-based ordering so sorting is column-position-independent. Documents the option and its column-name -> header mapping in README.md.
|
TODO: claude review: PR #64 Review:
|
Implements #4 : Adds
initial_sort_columntoinitialize()options, with validation via_validateOptions()(checks type and that the name matches a knownscores.csvcolumn). Uses DataTables name-based ordering so sorting is column-position-independent. Documents the option and its column-name -> header mapping inREADME.md.Reviewer notes:
_initialSortColumn varthat's initialized ininitialize()(defaulting to'model_id') and used byupdateTable()to initially order the table_validateOptions(), which checks'initial_sort_column'if present, and also does a few extra checks that were missing