.catch(e=> { console.log(e); MsgBox.alert({ title: 'Error', message: e.toString() }) });
<Button mod="primary" onClick={() => { MsgBox.alert('Primary') }}>Primary</Button>
onClick={() => { MsgBox.alert('Danger') }}>
<Button onClick={() => { MsgBox.alert('Regular')}}>Regular</Button>
<Button disabled onClick={() => { MsgBox.alert('Disabled') }}>Disabled</Button>
.then((btn) => { if (btn == 'yes') MsgBox.alert(`Here it is.`) });
onClick={() => { MsgBox.alert({message: 'This is an alert!', title: 'Title'}) }}
<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!'); }