How to use the material-components-web.menu.MDCSimpleMenu 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 chriscamicas / girr / client / src / components / Bottombar.vue View on Github external
mounted () {
    this.menu = new menu.MDCSimpleMenu(this.$el.querySelector('.bottombar-menu'))
    // Add event listener to some button to toggle the menu on and off.
    this.$el.querySelector('.toggle-menu').addEventListener('click', (event) => {
      event.stopPropagation()
      event.preventDefault()
      this.scenesMenu.open = false
      this.menu.open = !this.menu.open
    })

    this.scenesMenu = new menu.MDCSimpleMenu(this.$el.querySelector('.scenes-menu'))
    // Add event listener to some button to toggle the menu on and off.
    this.$el.querySelector('.toggle-scenes-menu').addEventListener('click', (event) => {
      event.stopPropagation()
      event.preventDefault()
      this.menu.open = false
      this.scenesMenu.open = !this.scenesMenu.open
    })
  },
  methods: {
github chriscamicas / girr / client / src / components / Episode / EpisodeCard.vue View on Github external
mounted () {
    this.menu = new menu.MDCSimpleMenu(this.$el.querySelector('.mdc-simple-menu'))
    // Add event listener to some button to toggle the menu on and off.
    this.$el.querySelector('.toggle-menu').addEventListener('click', (event) => {
      event.preventDefault()
      this.menu.open = !this.menu.open
    })
  },
  methods: {
github chriscamicas / girr / client / src / components / Bottombar.vue View on Github external
mounted () {
    this.menu = new menu.MDCSimpleMenu(this.$el.querySelector('.bottombar-menu'))
    // Add event listener to some button to toggle the menu on and off.
    this.$el.querySelector('.toggle-menu').addEventListener('click', (event) => {
      event.stopPropagation()
      event.preventDefault()
      this.scenesMenu.open = false
      this.menu.open = !this.menu.open
    })

    this.scenesMenu = new menu.MDCSimpleMenu(this.$el.querySelector('.scenes-menu'))
    // Add event listener to some button to toggle the menu on and off.
    this.$el.querySelector('.toggle-scenes-menu').addEventListener('click', (event) => {
      event.stopPropagation()
      event.preventDefault()
      this.menu.open = false
      this.scenesMenu.open = !this.scenesMenu.open
    })
github chriscamicas / girr / client / src / components / Episode / Episode.vue View on Github external
mounted () {
    this.menu = new menu.MDCSimpleMenu(this.$el.querySelector('.mdc-toolbar__section .mdc-simple-menu'))
    // Add event listener to some button to toggle the menu on and off.
    this.$el.querySelector('.mdc-toolbar__section  .toggle-menu').addEventListener('click', (event) => {
      event.preventDefault()
      this.menu.open = !this.menu.open
    })
  },
  watch: {
github chriscamicas / girr / client / src / components / Program / ProgramCard.vue View on Github external
mounted () {
    this.menu = new menu.MDCSimpleMenu(this.$el.querySelector('.mdc-simple-menu'))
    // Add event listener to some button to toggle the menu on and off.
    this.$el.querySelector('.toggle-menu').addEventListener('click', (event) => {
      event.preventDefault()
      this.menu.open = !this.menu.open
    })
  },
  methods: {