定制 trafficsland/dependent-dropdown 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

trafficsland/dependent-dropdown

Composer 安装命令:

composer require trafficsland/dependent-dropdown

包简介

A multi level dependent dropdown JQuery plugin that allows nested dependencies.

README 文档

README

Features

  • Apply the plugin on a select element and set dependency to one or more other input / select elements (including dependency nesting).
  • Automatically convert select inputs with class depdrop to dependent dropdowns. The plugin supports HTML5 data attributes to configure the dependent dropdown options.
  • Automatically initialize dependent dropdowns based on preselected values (useful for update scenario).
  • Supports both select input with basic options and select with optgroups.
  • Automatically lock/disable the dependent dropdown until dependent results are available.
  • The plugin uses ajax call to the server to render the list of dependent options.
  • Allows a loading indicator to be displayed in dependent select until the results are fetched from the server.
  • Configure your own loading progress text to be displayed for each dependent dropdown before the results are fetched from the server.
  • Display a placeholder label with an empty value. For optgroups automatically disable this option.
  • Triggers JQuery events for advanced development. Events currently available are depdrop.init, depdrop.change, depdrop.beforeChange,depdrop.afterChange, and depdrop.error.
  • Size of the entire plugin is less than 4KB (about 3KB for the minified JS and 1KB for the minified CSS).
  • Ability to configure HTML attributes of each option element via ajax response (for example dynamically disabling some dropdown options or adding styles).

Installation

Using Bower

You can use the bower package manager to install. Run:

bower install dependent-dropdown

Using Composer

You can use the composer package manager to install. Either run:

$ php composer.phar require trafficsland/dependent-dropdown "@dev"

or add:

"trafficsland/dependent-dropdown": "@dev"

to your composer.json file

License

dependent-dropdown is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.

统计信息

  • 总下载量: 73
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-02-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固