0

How can I add a class to the caption element of the Yui datatable apart from the default class i.e. "yui3-datatable-caption"?

Thanks

Nidhi Kaushal
  • 299
  • 4
  • 15

1 Answers1

0

You could change the CAPTION_TEMPLATE property.

user32225
  • 854
  • 7
  • 7
  • Sorry for not mentioning earlier my Yui version is 3.1 – Nidhi Kaushal Dec 03 '13 at 13:20
  • I'm afraid that is possibly an earlier version of DataTable that was deprecated long ago. I doubt you will be able to find any support for that one. A generic alternative to your problem is to enclose the text for your caption in a tag with your desired className before setting it in the DataTable. – user32225 Dec 04 '13 at 14:25