[ 2 posts ]

Bren Joh

  • Username: Johbremat
  • Joined: Thu Sep 29, 2011 4:39 pm
  • Posts: 3
  • Offline
  • Profile

YUI 3.4 - Datatable - Message on no results.

Post Posted: Thu Sep 29, 2011 4:53 pm
+0-
Am I incorrect in believe a message of "No results" or "No records found" was default behaviour in YUI 2.x?

Not getting as much in YUI 3.4, and cannot locate a suitable function regarding.

Khoa Bui

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

Re: YUI 3.4 - Datatable - Message on no results.

Post Posted: Tue Oct 04, 2011 10:02 am
+0-
I run into this situation previously, and found no such support for message.

If you inspect the datatable, you will see and tbody tag with class 'yui3-datatable-msg' that right above the tbody for table content. This tbody is aimed to display table message but still not implemented.
And in the datatable-base.js, you will see there is a corresponding _msgNode.

Based on these facts and learning from the source how 'caption' attribute is made available, I decided to implement a custom attribute 'message' for datatable, then I can call
Code:
aDatatable.set('message', 'Entry not found');

to set the message
  [ 2 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
cron