[ 4 posts ]

Khoa Bui

  • Username: khoaminhbui
  • Joined: Tue Aug 09, 2011 6:11 am
  • Posts: 127
  • Location: Vietnam
  • Twitter: khoaminhbui
  • IRC: k_bui
  • Offline
  • Profile
Tags:

YUI 3.5 DataTable feature?

Post Posted: Fri Feb 03, 2012 8:28 am
+0-
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 Santini

YUI Contributor

  • Offline
  • Profile

Re: YUI 3.5 DataTable feature?

Post Posted: Fri Feb 03, 2012 10:25 am
+0-
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

Luke Smith

YUI Contributor

  • Username: lsmith
  • Joined: Thu Aug 28, 2008 7:50 am
  • Posts: 507
  • Location: Sunnyvale
  • Twitter: ls_n
  • GitHub: lsmith
  • Gists: lsmith
  • IRC: ls_n
  • YUI Developer
  • Offline
  • Profile

Re: YUI 3.5 DataTable feature?

Post Posted: Sat Feb 04, 2012 1:41 am
+0-
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

  • Username: khoaminhbui
  • Joined: Tue Aug 09, 2011 6:11 am
  • Posts: 127
  • Location: Vietnam
  • Twitter: khoaminhbui
  • IRC: k_bui
  • Offline
  • Profile
Tags:

Re: YUI 3.5 DataTable feature?

Post Posted: Sat Feb 04, 2012 8:46 am
+0-
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 :).
  [ 4 posts ]
Display posts from previous:  Sort by  
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