• Stars
    star
    297
  • Rank 140,075 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple, easily and diversity menu solution




SelectMenu




Simple, easily and diversity menu solution






Examples and Documentation

Explorer on

简体中文文档

The Vuejs version: v-selectmenu

Plugin Preview

Regular menu mode

SelectMenu1

Advanced menu mode

SelectMenu2

Advanced menu mode (multiple group data)

SelectMenu3

Key Features

  • a jQuery plugin
  • simple style interface, can adapt to most UI environments
  • quick search item by input autocomplete
  • multiple group data used tabs form to show
  • use keybord to quick navigate and selection
  • multiple select item in advanced menu mode
  • used static data type or dynamic data to be menu data source
  • used mouse right button click to called menu
  • i18n support
  • rich setting parameters
  • brower supper IE8+,chrome,firefox

License

MIT

Installation

Download SelectMenu plugin zip file by last release, or click me to download SelectMenu

or use NPM

npm i selectmenu

Usage

As you can see in the Demo Page, you will need to include:

  • jQuery library (1.6.0+), untest on jquery2.x & 3.x
  • The JavaScript file selectmenu.js (or its minified version selectmenu.min.js)
  • The css file selectmenu.css

Including files

<!-- jQuery library include -->
<script type="text/javascript" src="jquery.min.js" >< /script>

<link rel="stylesheet" href="selectmenu.css" type="text/css">
<script type="text/javascript" src="selectmenu.js" >< /script>

HTML element set

<!--
Set the trigger menu to open the object, where
only the most commonly used button as an example
-->
<button type="button" id="btnDemo">Select Menu</button>

Javascript init plugin

//defined data source
//data format:Array[{Object},{...}]
var data = [
  { id: 1, name: 'Chicago Bulls', desc: '芝加哥公牛' },
  { id: 2, name: 'Cleveland Cavaliers', desc: '克里夫兰骑士' },
  { id: 3, name: 'Detroit Pistons', desc: '底特律活塞' },
  { id: 4, name: 'Indiana Pacers', desc: '印第安纳步行者' }
]
//initialize selectmenu
$('#btnDemo').selectMenu({
  showField: 'desc',
  keyField: 'id',
  data: data
})

More Repositories

1

v-region

提供 5 种应用形式的 4 级行政区划选择器 A simple region cascade selector, provide 4 levels Chinese administrative division data
JavaScript
866
star
2

SelectPage

A simple style and powerful selector, including ajax remote data, autocomplete, pagination, tags, i18n and keyboard navigation features
JavaScript
731
star
3

v-uploader

A Vue2 plugin make files upload simple and easier, single file upload with image preview, multiple upload with drag and drop
Vue
238
star
4

v-selectpage

SelectPage for Vue2, list or table view of pagination, use tags for multiple selection, i18n and server side resources supports
JavaScript
236
star
5

v-selectmenu

SelectMenu for Vuejs, A simple, easier and highly customized menu solution
JavaScript
187
star
6

bDialog

Extend the Bootstrap Modal features, making dialog more functions and easier to use, dialog type including modal, alert, mask and toast types
JavaScript
175
star
7

v-dialogs

A simple and clean instructional dialog plugin for Vue2, dialog type including Modal, Alert, Mask and Toast
JavaScript
128
star
8

bTabs

A jQuery plugin open pages in tab, based on Bootstrap2,3
JavaScript
127
star
9

frontend-develops-skill-summary

Development experience with javascript, jQuery, Vuejs, Wechat MiniProgram and so on
122
star
10

bPage

Based on bootstrap style, static page jump can also be asynchronous page processing pagination plugin
JavaScript
102
star
11

v-page

A simple and useful pagination component for vue2 and vue3
JavaScript
90
star
12

v-suggest

A Vue2 plugin for input content suggestions, support using keyboard to navigate and quick pick, it make use experience like search engine input element
JavaScript
75
star
13

v-gallery

A Vue2 plugin for images show in gallery or carousel
Vue
62
star
14

vuepress-login

Add user authorization for VuePress
JavaScript
41
star
15

v-ztree

A simple tree for Vue2, support single or multiple(check) select tree, and support server side data
Vue
36
star
16

v-playback

A Vue2 plugin to make video play easier
Vue
18
star
17

v-dropdown

A dropdown container layer plugin for vue
JavaScript
15
star
18

vue-plugins

vue plugins development environment
JavaScript
11
star
19

v-tablegrid

A simpler to use and practical datatable
Vue
9
star
20

TerryZ.github.io

Main Page
HTML
5
star
21

grid-improve

grid-improve
HTML
1
star