Wrapping YUI with WebClay
- Posted by jeremy (admin) Sep 18, 2009
- 1471 views
Euphoric suggested wrapping YUI in WebClay, so I began that process, however, I'm open for suggestions. I was able to easily create a WebClay tag for the basics of the DataTable, an example use is:
<%- yui:datatable name="a_cats" url="/aircraft/categories.wc?output=text" layout=!{ -- key, label, sortable - defaults to on, formatter - defaults to none { "id", "Id", 1, "YAHOO.widget.DataTable.formatNumber" }, { "name", "Name" } } %>
That creates a DataTable with keys, headers, formatting and it dynamically retrieves the data from the given URL. However, my problem is that YUI is so expansive in it's options I am not sure if it makes sense to wrap it. It would seem that you would have more work arounds in a wrapping then if you simply used to learn YUI itself.
Does anyone have experience with YUI and have any opinions on this matter?
Jeremy