How to use the onsenui.notification function in onsenui

To help you get started, we’ve selected a few onsenui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github puku0x / ngx-onsenui-ngrx-todo / src / app / todo / components / page2 / page2.component.ts View on Github external
tap(() => {
          ons.notification.toast({
            message: 'Failed to delete',
            timeout: 2000
          });
        })
      );
github OnsenUI / OnsenUI / bindings / react / examples / components / Dialog.js View on Github external
showAlert2() {
    ons.notification.alert({
      message: 'You pressed "ok"'
    });
  }
github OnsenUI / OnsenUI / bindings / react / examples / components / BackButton.js View on Github external
handleClick() {
    ons.notification.confirm('Do you really want to go back?')
      .then(
        (response) => {
          if (response === 1) {
            this.props.navigator.popPage();
          }
        }
      );
  }
github OnsenUI / react-onsenui-kitchensink / components / Dialogs.js View on Github external
Show dialog ({this.state.dialogOpen ? 'open' : 'closed'})
            ,
            
              Popovers
            
          ]}
          renderHeader={() => Dialogs}
          renderRow={(row) => row}
        />

        
              Alert dialog
            ,
            
              Confirmation dialog
            ,
github Rudy-Zidan / inferno-mobile / src / App.js View on Github external
handleClick () {
    ons.notification.alert('Hello World');
  }
github OnsenUI / OnsenUI / bindings / angular2 / src / ons / notification.ts View on Github external
import * as ons from 'onsenui';

/**
 * @object onsNotification
 */
export const onsNotification = ons.notification;
github puku0x / ngx-onsenui-ngrx-todo / src / app / todo / components / page3 / page3.component.ts View on Github external
tap(() => {
          ons.notification.toast({
            message: 'Failed to save',
            timeout: 2000
          });
        })
      );
github OnsenUI / react-onsenui-kitchensink / components / Dialogs.js View on Github external
onClick={ons.notification.alert.bind(null, 'Hello, world!')}>
              Alert dialog
            ,
            
              Confirmation dialog
            ,
            
              Prompt dialog
            
          ]}
          renderHeader={() => Notifications}
          renderRow={(row) => row}
        />

        <dialog>
          <p style="{{textAlign:">I am a dialog!</p>
          <p style="{{textAlign:">
            <button disabled="{!this.state.dialogOpen}">Close me!</button></p></dialog>