All Projects β†’ guAnsunyata β†’ vue-nested-menu

guAnsunyata / vue-nested-menu

Licence: other
A simple hands-on mobile nested menu UI component with a smooth slide animation

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to vue-nested-menu

SwipeToActionLayout
Layout, which provides swipe to reveal behaviour 🎭
Stars: ✭ 85 (+150%)
Mutual labels:  menu
Unity-IMGUI-TreeView
Simple Tree View implementation for IMGUI (Editor GUI) in Unity. Includes a special type for working with asset paths, but base data structure and view can be easily extended to support anything.
Stars: ✭ 73 (+114.71%)
Mutual labels:  tree-structure
performant-array-to-tree
Converts an array of items with ids and parent ids to a nested tree in a performant O(n) way. Runs in browsers and Node.js.
Stars: ✭ 193 (+467.65%)
Mutual labels:  tree-structure
v-folder
A component of vue.js@2, for tree/directory/files selection or displaying.
Stars: ✭ 15 (-55.88%)
Mutual labels:  tree-structure
menutray
An application menu through a GTK+ tray status icon.
Stars: ✭ 62 (+82.35%)
Mutual labels:  menu
esx menu default
ESX Menu Style for FXSERVER gtaonline style
Stars: ✭ 30 (-11.76%)
Mutual labels:  menu
SliderMenu
A simple Menu inspired by SWRevealView Controller and Google Material Menu
Stars: ✭ 35 (+2.94%)
Mutual labels:  menu
SideMenuSwiftDemo
SideMenu in Swift with autolayout
Stars: ✭ 79 (+132.35%)
Mutual labels:  menu
treenet
Recursive Neural Networks for PyTorch
Stars: ✭ 29 (-14.71%)
Mutual labels:  tree-structure
fortran-octree
A Fortran octree implementation
Stars: ✭ 17 (-50%)
Mutual labels:  tree-structure
responsive-menus
Genesis Responsive Menus
Stars: ✭ 26 (-23.53%)
Mutual labels:  menu
django-cte-forest
django-cte-forest implements efficient adjacency list trees using Django and PostgreSQL Common Table Expressions (CTE).
Stars: ✭ 24 (-29.41%)
Mutual labels:  tree-structure
finch
πŸ–₯ Debug menu library for Android apps with supports network activity logging and many other useful features.
Stars: ✭ 42 (+23.53%)
Mutual labels:  menu
frangipanni
Program to convert lines of text into a tree structure.
Stars: ✭ 1,176 (+3358.82%)
Mutual labels:  tree-structure
TipMenu
δ»ΏQQι•ΏζŒ‰εΌΉε‡Ίε€εˆΆγ€εˆ ι™€γ€εˆ†δΊ«ζη€Ίε±‚
Stars: ✭ 20 (-41.18%)
Mutual labels:  menu
ember-right-click-menu
An easy and flexible addon to add context menus anywhere in your application
Stars: ✭ 14 (-58.82%)
Mutual labels:  menu
vue-burger-button
πŸ” vue-burger-button is a functional component, which is faster than a regular component, and is pretty small (JS min+gzip is lower than 700b and CSS min+gzip is lower than 400b).
Stars: ✭ 41 (+20.59%)
Mutual labels:  menu
nativescript-menu
A plugin that adds a pop-up menu to NativeScript
Stars: ✭ 17 (-50%)
Mutual labels:  menu
react-tree
Hierarchical tree component for React in Typescript
Stars: ✭ 174 (+411.76%)
Mutual labels:  tree-structure
clicky-menus
Simple click-triggered navigation submenus. Accessible and progressively enhanced.
Stars: ✭ 76 (+123.53%)
Mutual labels:  menu

vue-nested-menu Version

A simple hands-on mobile nested menu UI component with a smooth slide animation.

demo

Installation

Yarn / NPM

$ yarn add vue-nested-menu

main.js

import VueNestedMenu from 'vue-nested-menu';

Vue.use(VueNestedMenu);

Usage

Basic

index.html

<div id="app">
  <vue-nested-menu :source="menu"></vue-nested-menu>
</div>

main.js

import VueNestedMenu from 'vue-nested-menu';

Vue.use(VueNestedMenu)

new Vue({
  el: '#app',
  data: {
    menu: {
      title: '首頁',
      children: [
        {
          title: `Today's Deals`,
          link: `/today`,
          children: [],
        },
        {
          title: `Shop By Department`,
          children: [
            {
              title: `Amazon Music`,
              link: `/music`,
              children: [],
            },
            {
              title: `CDs and Vinyl`,
              link: `/cds`,
              children: [],
            },
          ],
        },
      ],
    },
  },
});

Single File Component

app.js

import VueNestedMenu from 'vue-nested-menu';

Vue.use(VueNestedMenu);

// ...

MyMenu.vue

<template>
  <vue-nested-menu :source="menu" />
</template>

<script>
export default {
  data() {
    return {
      menu: {
        // your menu data
      },
    };
  },
};
</script>

Styling

You can use following classes for your own customizations

default style

.Menu__header {
    display: flex;
    align-items: center;
    padding-left: 35px;
    height: 50px;
    color: #fff;
    font-size: 16px;
    background-color: #232f3e;
    cursor: pointer;

    .arrow {
        padding-top: 2px;
        fill: #fff;
        margin-right: 10px;
        width: 10px;
        height: 100%;
        display: flex;
        align-items: center;
    }
}

.Menu__list {
    list-style: none;
    padding-bottom: 2px;

    .separator {
        border-bottom: 1px solid #d5dbdb;
        padding: 2px 0 0 0;
        margin: 0;
    }
}

.Menu__item {
    color: #4a4a4a;
    padding-left: 35px;
    height: 45px;
    display: flex;
    align-items: center;
    cursor: pointer;

    a {
        color: #4a4a4a;
        text-decoration: none;
    }

    .arrow {
        padding-top: 2px;
        padding-left: 15px;
        display: flex;
        align-items: center;
        width: 10px;
        height: 100%;
    }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].