-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Styling docs #7455
base: main
Are you sure you want to change the base?
Styling docs #7455
Conversation
961adaa
to
34ce0b1
Compare
@@ -59,6 +59,7 @@ export default class TableColumnTraits extends ModelTraits { | |||
"The type of the column. If not specified, the type is guessed from " + | |||
"the column's name and values. Valid types are:\n\n" + | |||
Object.keys(TableColumnType) | |||
.filter((type) => isNaN(Number(type))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filter out numeric values from enum keys. Maybe those works, but they aren't useful for users as changes in the enum can break them easily
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps that information should be put in a comment in the source code so it's easily available for future readers?
"type": "dateTime"; | ||
"format": "dd-mm-yyyy HH:MM:ss"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the ending semicolons meant to be commas?
What this PR does
Fixes #7352 - first part
Update documentation on data styling to align with changes made in v8.
Test me
Doc only change
Checklist
[ ] There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)doc only changedoc/
.[ ] I've provided instructions in the PR description on how to test this PR.doc only change