Giter VIP home page Giter VIP logo

minicascader's Introduction

miniCascader

Cascader级联选择器控件

Function List:

  1. 级联面板 - 支持多选 - 单选
  2. 支持回显已选中数据的完整路径 父级-父级-子级(可通过配置项 separator 自定义分隔符)
  3. 支持删除单个选中的数据项
  4. 支持一键删除所有选中数据项(可通过配置项 clearable 是否启用改功能)
  5. 接口: 一键获取所选中的所有文本数组
  6. 接口: 一键获取所选中的所有ID数组

使用方式

var cascader = new eo_cascader(tags, {
  elementID: 'cascader-wrap',
  multiple: true, // 是否多选
  // 非编辑页,checkedValue 传入 null
  // 编辑时 checkedValue 传入最后一级的 ID 即可
  checkedValue: [4, 7, 10, 11, 21, 31, 33] || null,
  separator: '-', // 分割符 山西-太原-小店区 || 山西/太原/小店区
  clearable: true // 是否可一键删除已选
})

minicascader's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.