How to use the uikit.switcher function in uikit

To help you get started, we’ve selected a few uikit 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 vuikit / vuikit / src / lib / Switcher.vue View on Github external
ready () {
    const vm = this
    // in our impelmentation the switcher
    // and connect change sides
    UI.switcher(this.nav, UI.Utils.options({
      connect: this.$el,
      animation: this.animation,
      swiping: this.swiping
    }))
    // listen to nav changes
    .on('show.uk.switcher', function (event, area) {
      vm.$emit('change')
    })
  }
}