How to use the material-components-web.menuSurface function in material-components-web

To help you get started, we’ve selected a few material-components-web 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 ngageoint / mage-server / public / app / mage / navbar / preferences-button.component.js View on Github external
var MDCMenuSurface = require('material-components-web').menuSurface.MDCMenuSurface;

module.exports = {
  template: require('./preferences-button.component.html'),
  bindings: {
    drawer: '<'
  },
  controller: PreferencesButtonController
};

PreferencesButtonController.$inject = ['$element', 'LocalStorageService'];

function PreferencesButtonController($element, LocalStorageService) {

  this.preferences = {
    timeZone: LocalStorageService.getTimeZoneView(),
    timeFormat: LocalStorageService.getTimeFormat(),
github ngageoint / mage-server / public / app / mage / navbar / navbar.component.js View on Github external
var MDCMenuSurface = require('material-components-web').menuSurface.MDCMenuSurface;

module.exports = {
  template: require('./navbar.component.html'),
  bindings: {
    myself: '<'
  },
  controller: NavbarController
};

NavbarController.$inject = ['$element', '$location', 'UserService'];

function NavbarController($element, $location, UserService) {
  var pollingMenu;
  this.location = $location;

  this.$postLink = function() {