コード例 #1
0
 .catch(e=> {
     console.log(e);
     MsgBox.alert({
         title: 'Error',
         message: e.toString()
     })
 });
コード例 #2
0
ファイル: MsgBoxes.js プロジェクト: shameed/cxjs
 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.`)
         });
 }}
コード例 #3
0
ファイル: Buttons.js プロジェクト: shameed/cxjs
 onClick={() => {
     MsgBox.alert('Danger')
 }}>
コード例 #4
0
ファイル: Buttons.js プロジェクト: shameed/cxjs
 <Button mod="primary" onClick={() => { MsgBox.alert('Primary') }}>Primary</Button>
コード例 #5
0
ファイル: Buttons.js プロジェクト: shameed/cxjs
 <Button disabled onClick={() => { MsgBox.alert('Disabled') }}>Disabled</Button>
コード例 #6
0
ファイル: Buttons.js プロジェクト: shameed/cxjs
 <Button onClick={() => { MsgBox.alert('Regular')}}>Regular</Button>
コード例 #7
0
ファイル: MsgBoxes.js プロジェクト: shameed/cxjs
 .then((btn) => {
     if (btn == 'yes')
         MsgBox.alert(`Here it is.`)
 });
コード例 #8
0
ファイル: MsgBoxes.js プロジェクト: shameed/cxjs
 onClick={() => {
     MsgBox.alert({message: 'This is an alert!', title: 'Title'})
 }}
コード例 #9
0
ファイル: index.js プロジェクト: shameed/cxjs
 <Button onClick={()=>{MsgBox.yesNo('Would you like to close this window?')}}>Confirm</Button>
コード例 #10
0
ファイル: index.js プロジェクト: shameed/cxjs
 <Button onClick={()=>{MsgBox.alert('This is a very important message.')}}>Alert</Button>
コード例 #11
0
ファイル: Boxes.js プロジェクト: shameed/cxjs
 onDrop={(e, {store}) => {
    MsgBox.alert(`Dropped at #${store.get('$index') + 1}.`);
 }}
コード例 #12
0
ファイル: Controllers.js プロジェクト: shameed/cxjs
 sayHello() {
     MsgBox.alert('Hello!');
 }