|
|
@@ -6,8 +6,17 @@ class WBAccordion extends Component { |
|
|
|
this.state.domId = 'accordion-' + uuid.v4();
|
|
|
|
this.state.headerDomIds = this.props.names.map(() => ('accordion-' + uuid.v4()));
|
|
|
|
this.state.collapseDomIds = this.props.names.map(() => ('accordion-' + uuid.v4()));
|
|
|
|
// console.log('WBAccordion() : domId=' + this.state.domId);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* componentDidMount() {
|
|
|
|
console.log('WBAccordion.componentDidMount()');
|
|
|
|
}
|
|
|
|
|
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
|
console.log('WBAccordion.componentWillReceiveProps()');
|
|
|
|
} */
|
|
|
|
|
|
|
|
render({ children, names, cardHeaderClass }, { domId, headerDomIds, collapseDomIds }) {
|
|
|
|
return (
|
|
|
|
<div class="accordion" id={ domId }>
|
|
|
|