IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Browse Source

A bit of debugging in WBAccordion.

master
parent
commit
6a5e0c498b
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      frontend/src/js/widget/wb-accordion.js

+ 9
- 0
frontend/src/js/widget/wb-accordion.js View File

@@ -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 }>


Loading…
Cancel
Save