default widths on table columns are now in percent, but user can voerride with anything

master-patched
Bob Monteverde 12 years ago
parent 851bc9749a
commit 772c5e660b

@ -95,7 +95,7 @@ var testOptions = {
key: 'key',
label: 'Name',
showCount: true,
width: 50,
width: '75%',
type: 'text',
classes: function(d) { return d.url ? 'clickable name' : 'name' },
click: function(d) {
@ -105,7 +105,7 @@ var testOptions = {
{
key: 'type',
label: 'Type',
width: 5,
width: '25%',
type: 'text'
}
],

@ -2476,7 +2476,7 @@ nv.models.indentedTree = function() {
options.columns.forEach(function(column) {
theadRow1
.append('th')
.attr('width', column.width ? column.width : 5)
.attr('width', column.width ? column.width : '10%')
.style('text-align', column.type == 'numeric' ? 'right' : 'left')
.append('span')
.text(column.label);

2
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long

@ -54,7 +54,7 @@ nv.models.indentedTree = function() {
options.columns.forEach(function(column) {
theadRow1
.append('th')
.attr('width', column.width ? column.width : 5)
.attr('width', column.width ? column.width : '10%')
.style('text-align', column.type == 'numeric' ? 'right' : 'left')
.append('span')
.text(column.label);

Loading…
Cancel
Save