Skip to main content

column width on yahoo data table

3 replies [Last post]
nnxcoder
Offline
Joined: 2008-02-02
Points: 0

Is there anyway I can set the column width on each of the columns on a jmaki yahoo datable?

Any help would be appreciated.

Thanks,
--Narasimha

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mclareng
Offline
Joined: 2008-04-28
Points: 0

When I try this in JRuby the width seems to get ignored. any help would be greatly appreciated on how I can add style or sizing attributes to columns.

<%= jmaki_widget 'dojo.table',:args =>'',
:value =>
{:columns => [
{ :label => 'Phone Number',:id => 'aparty',:width => '10px'},
{ :label =>'Called Number',:id => 'bparty',:width => '10px'},
{ :label => 'Destination', :id => 'destination', :width =>'140px' },
{ :label => 'Call Start Time', :id => 'starttime', :align => 'center', :width=>'240px;'},
{ :label => 'Duration hh:mm:ss',:align => 'center', :id => 'duration',:width=>'10px;'},
{ :label => 'Rated Charge (ex.GST)',:align => 'center', :id => 'ratedcharge',:width=>'10px'},
{ :label => 'Charge Type',:align => 'center', :id => 'chargetype', :width=>'10px'},
{ :label => 'Total Charge (ex.GST)',:align => 'center', :id => 'totalcharge', :width=>'85px'},

],
:rows => @rows_data
}
-%>

bakarirum
Offline
Joined: 2005-07-07
Points: 0

value="{columns : [
{ label : 'Name', id : 'name' , width : '200px'}]/>
]]>

nnxcoder
Offline
Joined: 2008-02-02
Points: 0

That worked, thanks.