|
@@ -6,8 +6,17 @@ class WBAccordion extends Component { |
|
|
this.state.domId = 'accordion-' + uuid.v4();
|
|
|
this.state.domId = 'accordion-' + uuid.v4();
|
|
|
this.state.headerDomIds = this.props.names.map(() => ('accordion-' + uuid.v4()));
|
|
|
this.state.headerDomIds = this.props.names.map(() => ('accordion-' + uuid.v4()));
|
|
|
this.state.collapseDomIds = 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 }) {
|
|
|
render({ children, names, cardHeaderClass }, { domId, headerDomIds, collapseDomIds }) {
|
|
|
return (
|
|
|
return (
|
|
|
<div class="accordion" id={ domId }>
|
|
|
<div class="accordion" id={ domId }>
|
|
|