.catch(e=> { console.log(e); MsgBox.alert({ title: 'Error', message: e.toString() }) });
onClick={() => { MsgBox .yesNo({ message: 'Would you like to see another alert?', yesText: "Yes, please", noText: "No, thanks" }) .then((btn) => { if (btn == 'yes') MsgBox.alert(`Here it is.`) }); }}
onClick={() => { MsgBox.alert('Danger') }}>
<Button mod="primary" onClick={() => { MsgBox.alert('Primary') }}>Primary</Button>
<Button disabled onClick={() => { MsgBox.alert('Disabled') }}>Disabled</Button>
<Button onClick={() => { MsgBox.alert('Regular')}}>Regular</Button>
.then((btn) => { if (btn == 'yes') MsgBox.alert(`Here it is.`) });
onClick={() => { MsgBox.alert({message: 'This is an alert!', title: 'Title'}) }}
<Button onClick={()=>{MsgBox.yesNo('Would you like to close this window?')}}>Confirm</Button>
<Button onClick={()=>{MsgBox.alert('This is a very important message.')}}>Alert</Button>
onDrop={(e, {store}) => { MsgBox.alert(`Dropped at #${store.get('$index') + 1}.`); }}
sayHello() { MsgBox.alert('Hello!'); }