How to use the material-components-web.select 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 / filter / event.filter.component.js View on Github external
const MDCSelect = require('material-components-web').select.MDCSelect;
module.exports = {
  template: require('./event.filter.html'),
  bindings: {
    events: '<',
    onEventChosen: '&'
  },
  controller: EventFilterController
};



EventFilterController.$inject = ['$element'];

function EventFilterController($element) {
  console.log('events pictker', this.events);
  this.$onChanges = function() {
github ngageoint / mage-server / public / app / filter / filter.js View on Github external
var moment = require('moment')
  , MDCDialog = require('material-components-web').dialog.MDCDialog
  , MDCSelect = require('material-components-web').select.MDCSelect;

module.exports = {
  template: require('./filter.html'),
  bindings: {
    open: '<',
    events: '<',
    onFilterClose: '&'
  },
  controller: FilterController
};

FilterController.$inject = ['FilterService', '$element', '$timeout'];

function FilterController(FilterService, $element, $timeout) {
  this.filterPanel;
github ngageoint / mage-server / public / app / observation / form / dropdown.edit.js View on Github external
var MDCSelect = require('material-components-web').select.MDCSelect;

module.exports = {
  template: require('./dropdown.edit.html'),
  bindings: {
    field: '<',
    onFieldChanged: '&'
  },
  controller: ['$timeout', '$element', function($timeout, $element) {

    this.$postLink = function() {
      this.initializeDropDown();
    }
    
    this.initializeDropDown = function() {
      $timeout(function() {
        if (!this.select && this.field)
github ngageoint / mage-server / public / app / export / export.js View on Github external
var $ = require('jquery')
  , MDCDialog = require('material-components-web').dialog.MDCDialog
  , MDCSelect = require('material-components-web').select.MDCSelect
  , MDCCheckbox = require('material-components-web').checkbox.MDCCheckbox
  , MDCFormField = require('material-components-web').formField.MDCFormField
  , moment = require('moment');

  module.exports = {
    template: require('./export.html'),
    bindings: {
      open: '<',
      events: '<',
      onExportClose: '&'
    },
    controller: ExportController
  };

ExportController.$inject = ['LocalStorageService', 'FilterService', '$timeout', '$element'];
github ngageoint / mage-server / public / app / material-components / multiselect.component.js View on Github external
var MDCSelect = require('material-components-web').select.MDCSelect;

module.exports = {
  template: require('./multiselect.component.html'),
  bindings: {
    options: '<',
    initialValues: '<',
    fieldLabel: '@',
    idProperty: '@',
    displayProperty: '@',
    width: '@',
    onSelect: '&'
  },
  controller: MultiselectController
};

MultiselectController.$inject = ['$element', '$timeout'];
github ngageoint / mage-server / public / app / mage / feed / user-feed.component.js View on Github external
var _ = require('underscore')
  , moment = require('moment')
  , MDCSelect = require('material-components-web').select.MDCSelect;

module.exports = {
  template: require('./user-feed.component.html'),
  controller: UserFeedController
};

UserFeedController.$inject = ['$element', '$timeout', 'EventService', '$filter', 'FilterService'];

function UserFeedController($element, $timeout, EventService, $filter, FilterService) {
  let userSelectMdc;

  this.currentUserPage = 0;
  this.usersChanged = 0;
  this.userPages = null;
  this.followUserId = null;
  var usersPerPage = 50;
github ngageoint / mage-server / public / app / mage / feed / observation-feed.component.js View on Github external
var _ = require('underscore')
  , moment = require('moment')
  , MDCSelect = require('material-components-web').select.MDCSelect
  , MDCChipSet = require('material-components-web').chips.MDCChipSet;

module.exports = {
  template: require('./observation-feed.component.html'),
  controller: ObservationFeedController,
  bindings: {
    onCreateNewObservation: '&'
  }
};

ObservationFeedController.$inject = ['$element', '$timeout', 'EventService', '$filter', 'FilterService'];

function ObservationFeedController($element, $timeout, EventService, $filter, FilterService) {

  let observationSelectMdc;