How to use the @material/menu/foundation.MDCMenuFoundation.strings function in @material/menu

To help you get started, we’ve selected a few @material/menu 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 pgbross / vue-material-adapter / packages / mcwv-menu / mdc-menu.0.vue View on Github external
notifySelected: evtData => {
        const evt = {
          index: evtData.index,
          item: this.items[evtData.index],
        };
        this.$emit('change', false);
        this.$emit('select', evt);
        emitCustomEvent(
          this.$el,
          MDCMenuFoundation.strings.SELECTED_EVENT,
          evt,
        );
      },
      notifyCancel: () => {
github pgbross / vue-material-adapter / packages / mcwv-menu / mdc-menu.js View on Github external
notifySelected: evtData => {
        emitCustomEvent(this.$el, MDCMenuFoundation.strings.SELECTED_EVENT, {
          index: evtData.index,
          item: this.items[evtData.index],
        });

        this.$emit('select', {
          index: evtData.index,
          item: this.items[evtData.index],
        });
      },
    });
github pgbross / vue-material-adapter / packages / mcwv-menu / mdc-menu.0.vue View on Github external
notifyCancel: () => {
        this.$emit('change', false);
        this.$emit('cancel');
        emitCustomEvent(this.$el, MDCMenuFoundation.strings.CANCEL_EVENT, {});
      },
      saveFocus: () => {