How to use the elm.so.Notify function in elm

To help you get started, we’ve selected a few elm 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 shr-project / enlightenment / PROTO / easyui / eui.js View on Github external
_createPopup: function() {
    EUI.window.elements.popup = elm.Notify({
      visible: false,
      orient: 'center',
      expand: 'both',
      fill: 'both',
      resize: true,
      allow_events: false,
      content: elm.Layout({
        expand: 'both',
        fill: 'both',
        resize: true,
        file: EUI.defaults._theme['popup'],
        content: {}
      })
    });
    this.popup = EUI.window.elements.popup;
  },
github shr-project / enlightenment / PROTO / easyui / eui.js View on Github external
willInitialize: function(url) {
    url = url || this.url || 'about:blank';
    this.title = url;

    var progress = elm.Notify({
      content: elm.ProgressBar({ value: 0.0 }),
      visible: false,
      align: {x: 1.0, y: 0.0} //top-right
    });

    var link_hover_notify = elm.Notify({
      content: elm.Label({}),
      visible: false,
      align: {x: 0.0, y: 1.0} //bottom-left
    });

    var web = elm.Web({
      expand: 'both',
      fill: 'both',
      history_enabled: true,
      uri: url,
github shr-project / enlightenment / PROTO / easyui / eui.js View on Github external
elm.addThemeExtension('./themes/default.edj');

  EUI.window = elm.realise(elm.Window({
    width: 320,
    height: 480,
    title:  app.title || EUI.defaults.title,
    on_delete: function() { EUI.__shutting_down = true },
    elements: {
      'background': elm.Background({
        expand: 'both',
        fill: 'both',
        resize: true,
      }),
      'popup': undefined,
      'notify': elm.Notify({
        visible: false,
        align: {x: 0.5, y: 0.5}, //center
        expand: 'both',
        fill: 'both',
        content: elm.ProgressBar({
          value: 0.0,
          style: 'wheel'
        })
      })
    }
  }));

  EUI.window.elements.app = app._getWrappedViewDescriptor();
  app._setRealizedApp(EUI.window.elements.app);
};
github shr-project / enlightenment / PROTO / easyui / eui.js View on Github external
willInitialize: function(url) {
    url = url || this.url || 'about:blank';
    this.title = url;

    var progress = elm.Notify({
      content: elm.ProgressBar({ value: 0.0 }),
      visible: false,
      align: {x: 1.0, y: 0.0} //top-right
    });

    var link_hover_notify = elm.Notify({
      content: elm.Label({}),
      visible: false,
      align: {x: 0.0, y: 1.0} //bottom-left
    });

    var web = elm.Web({
      expand: 'both',
      fill: 'both',
      history_enabled: true,
      uri: url,

      on_load_progress: function(progress) {
        if (progress < 1.0) {
          this.progress.visible = true;
          this.progress.content.value = progress;
        } else {