Is there any way to set id attribute to the panel?
Activity
benjycui commentedon May 12, 2017
Nope, just use:
benjycui commentedon May 12, 2017
@shepherdwind I am not sure if we can pass rest props to panel?
collapse/src/Panel.jsx
Lines 14 to 22 in f6ea09b
mikhailChibel commentedon May 12, 2017
@benjycui sure I can set id on the content of the panel. I would be nice to have an id of the panel itself, as it can simplify, for example, UI tests.
paranoidjk commentedon May 12, 2017
nope. There should never be a id api,but we may consider pass down rest props
shepherdwind commentedon May 12, 2017
Rest props pass to panel is ok. But, I think that React will throw error when pass an unknown prop to panel.
paranoidjk commentedon May 12, 2017
IMO, This is not our concern, we just need to make sure all api which shown in doc are handled, then rest props should be all html valiad.
mikhailChibel commentedon Jun 6, 2017
@benjycui Any hope on resolving this issue anytime soon?
benjycui commentedon Jun 6, 2017
ping @shepherdwind
feat: add prop id for Panel
shepherdwind commentedon Jun 6, 2017
Pass rest props to panel div will give it too much useless prop.
So, The only way is to add a prop id , see mr #72
shepherdwind commentedon Jun 19, 2017
1.7.6