Open coreyo opened 13 years ago
Can something like sprintf for javascript ( http://www.diveintojavascript.com/projects/javascript-sprintf ) be used? The format string would be the pretty formatting parameter, configurable for each field.
I haven't begun to implement anything on this front yet. MY current idea is to have a standard/default formatting for each data type (as identified by the SOLR backend). An override "format" function may then be specified for each individual field in the public settings/API. Will handle this when it becomes a priority.
The results in the table need some extra formatting to be pretty. We need at least 3 basic types: String, Date, Number . We need some options to specify formatting for these types (i.e. max lenth, max decimal places, date format, etc). We should also allow for the user to define default value for a given field.