Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

JQuery Plugin Client - Data Types / Data Formatting #26

Open
coreyo opened this issue Jun 28, 2011 · 2 comments
Open

JQuery Plugin Client - Data Types / Data Formatting #26

coreyo opened this issue Jun 28, 2011 · 2 comments

Comments

@coreyo
Copy link
Collaborator

coreyo commented Jun 28, 2011

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.

@datadavev
Copy link
Owner

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.

@coreyo
Copy link
Collaborator Author

coreyo commented Jul 19, 2011

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants