npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vuetify-responsive-menu

v0.1.2

Published

This components lets you to add a vuetify responsive menu to your project, without duplicating anything.

Downloads

13

Readme

Vuetify responsive menu

Has it ever happened that you need some of your menus to open as a popup on mobile? If so, you must put your data one into the menu and one into the popup and do a v-if to switch and your data code weather it is in two separate files or in one file, it will be duplicates. With vuetify-responsive-menu we are going to have a menu which can be switched automatically from Menu to Dialog and your code will not be duplicated.

Note: This component is using vuetify and there are still more to be done on it but for a start it should just work perfectly.

Installation

Install the package from npm

npm install vuetify-responsive-menu

Usage

You can instsall it with Vue.use like below:

//main.js or vuetifu.js
import VResponsiveMenu from 'vuetify-responsive-menu';

Vue.use(VResponsiveMenu);

OR just import inside one componenet you want to use it in and add it to the components option.

//YourComponent.vue
import VResponsiveMenu from 'vuetify-responsive-menu';

export default({
    components: {
        VResponsiveMenu
    }
})

Slots

  • activator: By adding your component to this style the responsive-menu will automatically becomes visible on clicking on that activator control.
  • default: This slot will hold the content of your menu to be shown inside a Menu or a Dialog.

Properties

You can modify the properties of the Menu and Dialog from this component just how they are with normal Menu and normal Dialog.

Note: if you want to modify the dialog properties you need to start the name of that property with dialog- and the same applies on Menu. Look at the below example.

//YourComponent.vue
//For example you want to give a fullscreen to your dialog and offset-y to your menu.
<v-responsive-menu
    dialog-fullscreen
    menu-offset-y></v-responsive-menu>

Now here goes some other properties which are important.

  • switchBreakpoint: If this is true the component will switch from menu to dialog, you can put a $vuetify.breakpoint here as value.
  • returnValue: This can be anything and it support sync. This is incase you want one specific value be returned to you by clicking on a button in dialog.

Methods

There are three accessible methods,

  1. Close, which basically will close the component
  2. Open, will open the component
  3. Save, will call this.$emit('update:returnValue', this.returnValue) to update your value.

Let me know if anything is wrong so we can improve it.