How to use the material-components-web.menuSurface.MDCMenuSurface 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 / material-components / typeahead.select.component.js View on Github external
initializeTypeahead() {
    this.idPropery = this.idProperty|| 'id';
    this.displayProperty = this.displayProperty || 'name';
    this._textField = new textField.MDCTextField(this._$element.find('.mdc-text-field')[0]);
    this._menu = new menuSurface.MDCMenuSurface(this._$element.find('.mdc-menu-surface')[0]);
    this._menu.hoistMenuToBody();
    this.initializeOptions();
  }