| Page 1 of 1 | [ 3 posts ] |
|
Hi everyone,
I'm starting try to upgrade a webapp from YUI2 to YUI3 and get a litle issue when trying to upgrade the datatables, the table data are stored local in HTML table format, looking for tutorials and examples I can upgrade it easy and displayed well but I got a litle problem... when I get the cell data with the schema i only get the text on that cell but I need the HTML tags like spans or divs in the cell that the Schema didn't load, u know how can retrieve it ? with YUI2 i get it without problems but in YUI3 I dont know to do that :S in var myTableData the is the rigth HTML code of the table. maybe trying change the locator: "td[1]" for other ... thanks and sorry for my crappy english. Code: fieldDefs[0] = {key: "proyecto", locator: "td[1]", allowHTML:true}; ... myDataSource.plug(Y.Plugin.DataSourceXMLSchema, { schema: { resultListLocator: "tr", resultFields: fieldDefs} }); colDefs[0] = { key: "proyecto", label: "Proyecto", allowHTML: true, nodeFormatter: function (o) { o.cell.set('innerHTML',o.value); } ... }; |
Alberto SantiniYUI Contributor
|
Hola Javier.
I think you may give a look at 'allowHTML': http://yuilibrary.com/yui/docs/datatable/#formatters Hope that helps, IceBox P.S.: Ops... I think I misunderstood the issue, because you are using that configuration. If you provide a jsfiddle snippet (or a public link), it would be better (for me). |
|
Ciao Alberto ^^,
txs for your Answer, but I think that the Xpath cant get InnerHTML in this case and tryed a lot of things but at the end we erased the HTML table and get the data for the YUI datatable using AJAX, looks better plus easy dynamic reload and edit Thanks |
| Page 1 of 1 | [ 3 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