-
Notifications
You must be signed in to change notification settings - Fork 120
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
Align price value to the right. #6
Comments
Hi @lipis, good idea! I'm thinking it could be an optional value passed in via table: {
data: [
{
item: 'Node.js',
description: 'Event-driven I/O server-side JavaScript environment based on V8.',
price: '$10.99'
},
],
columns: {
align: {
price: 'right'
}
}
} Would you like to submit a PR with this improvement? |
I would not overcomplicate it.. the numbers are usually on the right.. and the titles should be center aligned.. the rest on the left.. too lazy for the PR.. sorry :) |
I think we should strive to allow as much configurability as possible, no reason to limit it to numbers only. Also, we should support Will add this soon. |
@lipis done, implemented as follows: table: {
data: [
{
item: 'Node.js',
description: 'Event-driven I/O server-side JavaScript environment based on V8.',
price: '$10.99'
},
{
item: 'Mailgen',
description: 'Programmatically create beautiful e-mails using plain old JavaScript.',
price: '$1.99'
}
],
columns: {
// Optionally, customize the column widths
customWidth: {
item: '20%',
price: '15%'
},
// Optionally, change column text alignment
customAlignment: {
price: 'right'
}
}
}, |
No description provided.
The text was updated successfully, but these errors were encountered: