Esempio n. 1
0
 .catch(e=> {
     console.log(e);
     MsgBox.alert({
         title: 'Error',
         message: e.toString()
     })
 });
Esempio n. 2
0
 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.`)
         });
 }}
Esempio n. 3
0
 onClick={() => {
     MsgBox.alert('Danger')
 }}>
Esempio n. 4
0
 <Button mod="primary" onClick={() => { MsgBox.alert('Primary') }}>Primary</Button>
Esempio n. 5
0
 <Button disabled onClick={() => { MsgBox.alert('Disabled') }}>Disabled</Button>
Esempio n. 6
0
 <Button onClick={() => { MsgBox.alert('Regular')}}>Regular</Button>
Esempio n. 7
0
 .then((btn) => {
     if (btn == 'yes')
         MsgBox.alert(`Here it is.`)
 });
Esempio n. 8
0
 onClick={() => {
     MsgBox.alert({message: 'This is an alert!', title: 'Title'})
 }}
Esempio n. 9
0
 <Button onClick={()=>{MsgBox.yesNo('Would you like to close this window?')}}>Confirm</Button>
Esempio n. 10
0
 <Button onClick={()=>{MsgBox.alert('This is a very important message.')}}>Alert</Button>
Esempio n. 11
0
 onDrop={(e, {store}) => {
    MsgBox.alert(`Dropped at #${store.get('$index') + 1}.`);
 }}
Esempio n. 12
0
 sayHello() {
     MsgBox.alert('Hello!');
 }