0

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 ?

Kiran Kulkarni
  • 1,434
  • 2
  • 18
  • 40

1 Answers1

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?

Community
  • 1
  • 1
PottyBert
  • 1,902
  • 1
  • 13
  • 14