How to use the material-components-web.list 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 / polling-button.component.js View on Github external
var MDCList = require('material-components-web').list.MDCList;
var MDCMenu = require('material-components-web').menu.MDCMenu;

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

PollingButtonController.$inject = ['$element', '$timeout', 'PollingService'];

function PollingButtonController($element, $timeout, PollingService) {
  var pollingMenu;
  var pollingList;
  this.pollingIntervals = ['5000', '30000', '120000', '300000'];