a11yAccordion icon indicating copy to clipboard operation
a11yAccordion copied to clipboard

add functionality to be able to disable rows programmatically

Open anvk opened this issue 11 years ago • 2 comments

Need to add some CSS and JS functionality in order to be able to disable some of the rows.

anvk avatar Jul 19 '13 01:07 anvk

Could you explain this situation? I am assuming we wouldn't be able to expand the disabled rows.

How would the disabled rows behave on search?

sdaityari avatar Nov 18 '13 20:11 sdaityari

Well you can think of multiple ways of disabling rows.

a) if there is a specific class on the accordeon row then the row will appear disabled and won't respond to click events b) maybe using code?

var accordeon = a11yAccordeon(/* options */);
accordeon.disableRow(index);
accordeon.enableRow(index);

this feature is search agnostic. Search only shows/hides relative data no matter if it is disabled or not

anvk avatar Nov 19 '13 03:11 anvk