React-Bootstrap Multiple Modal -
i using react-bootstrap in project. need open multiple dialog. there way achieve this?
note: there answers bootstrap here not work in react-bootstrap. thanks.
it depends on want achieve. have multiple react bootstrap modal dialogs , have embedded dialogs, modal dialog shows popup error message. can define state variable, this:
this.state = {showmodal1:true, showmodal2:false,...}
in render function can this:
render() { return( <div> <modal show={this.state.showmodal1}> modal 1 text comes here </modal> <modal show={this.state.showmodal2}> modal 2 text comes here </modal> </div> ); }
in code above, if both showmodal1 , showmodal2 true, both modal dialogs , second above first one.
Comments
Post a Comment