I am working with YUI 3.3 datatable in Liferay. I have a requirement where I need to modify the columns during runtime. i.e, I need to add few more new columns, or remove few columns from the current COLUMNSET ? How can this be achieved ?
Asked
Active
Viewed 126 times
1 Answers
0
As of YUI3.5, you have access to the Columns attribute:
http://yuilibrary.com/yui/docs/api/classes/DataTable.html#attr_columns
You may have to monkey patch the datatable to get access to the columns in 3.3: Can you monkey-patch methods of YUI modules?