Griddle icon indicating copy to clipboard operation
Griddle copied to clipboard

Question: Passing Additional HTML attributes to <td> and <th> elements

Open cycomachead opened this issue 6 years ago • 1 comments

Forgive me if I missed this, but I can't seem to find a way to pass additional attributes to the td and th elements that are rendered. I'd like to be able to pass ARIA attributes to improve accessibility of tables.

cycomachead avatar Oct 27 '17 22:10 cycomachead

Keys from the extraData <ColumnDefinition> prop are passed through to Cell and TableHeadingCell (example). To render them as ARIA attributes you would simply override those components (inline or via plugin).

Would be neat to have a Storybook example to demonstrate this, if you care to contribute. (Or we can write up an example if you can be more specific.)

dahlbyk avatar Oct 28 '17 13:10 dahlbyk