How to use the @material/menu.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 fintechstudios / angularjs-mdc / src / mdc-menu / menu / component.js View on Github external
      notifySelected: (evtData) => this.emit(MDCMenuFoundation.strings.SELECTED_EVENT, {
        index: evtData.index,
        item: angular.element(this.items[evtData.index]).controller(MDCMenuItemController.name),
      }),
      notifyCancel: () => this.emit(MDCMenuFoundation.strings.CANCEL_EVENT, {}),
github fintechstudios / angularjs-mdc / src / mdc-menu / menu / component.js View on Github external
      notifyCancel: () => this.emit(MDCMenuFoundation.strings.CANCEL_EVENT, {}),
      saveFocus: () => {
github fintechstudios / angularjs-mdc / src / mdc-menu / item / component.js View on Github external
$onDestroy() {
    this.mdcMenuController.unlisten(MDCMenuFoundation.strings.SELECTED_EVENT, this.selectHandler);
    this.mdcMenuController.removeItem_(this);
  }
github fintechstudios / angularjs-mdc / src / experimental / mdc-tabs / tab.js View on Github external
setupMenu_(menu) {
    this.menuParent_ = this.tabBar.scroller ? this.tabBar.scroller.$element : this.tabBar.$element;
    menu.$element.detach();
    this.menuParent_.after(menu.$element);

    menu.listen(MDCMenuFoundation.strings.SELECTED_EVENT, ({detail: {item}}) => {
      if (this.tabBar.ngModel) {
        this.tabBar.value = item.getValue();
      } else {
        this.tabBar.activateTab(this);
      }
    });
  }
github fintechstudios / angularjs-mdc / src / mdc-menu / menu / component.js View on Github external
get itemsContainer_() {
    return this.root_.querySelector(MDCMenuFoundation.strings.ITEMS_SELECTOR);
  }