| Page 1 of 1 | [ 4 posts ] |
Khoa Bui
|
Do these features exist in the upcoming DataTable:
- Specify column width. - Set table message where there is no data. Because an empty table with only header look too bad, a message on table body will be good. Thanks. |
Alberto SantiniYUI Contributor
|
Hello Khoa.
Did you give a look at width attribute in the column definition? http://yuilibrary.com/yui/docs/api/clas ... attr_width You may read the following post "YUI 3.4 - Datatable - Message on no results.": viewtopic.php?f=92&t=8713 Hope that helps, IceBox |
|
datatable-column-widths modules adds support for specifying column widths, though it does so in an HTML table-esque way. It assigns a style width to the corresponding <col> element, but table dimensional calculations are not technically bound to this dimension. If content in a cell is wider than the configured width, the column will grow to accommodate. Similarly, if the table is assigned a width that will not account for all columns at their assigned widths, the column widths can be adjusted down to fit.
The API docs for the module talk about setting absolute widths: http://stage.yuilibrary.com/yui/docs/ap ... idths.html The table message API has not been implemented yet for 3.5.0, but it will be. I'll likely be adding it next week. Please try out 3.5.0pr2. DataTable is in there, and I'm updating the docs for it daily. http://www.yuiblog.com/blog/2012/01/30/yui-3-5-0-pr2/ If you want to be even more up to date with DataTable, I'm pushing weekly builds to the gallery in the gallery-datatable-350-preview module. http://yuilibrary.com/gallery/show/data ... 50-preview And I'm usually hanging out in #yui on freenode on weekdays, so feel free to drop in and ask me any questions, give feedback, or make requests. |
Khoa Bui
|
Thank you, I'll try your suggestion and follow up the DataTable progress.
By the way, Alberto, the link you give me is about my workaround for table message |
| Page 1 of 1 | [ 4 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group