1 Star 0 Fork 0

Stan / fSelect

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

fSelect

A jQuery select box replacement library (live demo)

Usage

$('.your-select').fSelect();

Available options

$('.your-select').fSelect({
    placeholder: 'Select some options',
    numDisplayed: 3,
    overflowText: '{n} selected',
    noResultsText: 'No results found',
    searchText: 'Search',
    showSearch: true,
    showConfirm: true,
    activeRecall: function() {
        console.log('activeRecall');
        alert('activeRecall');

        return true;
    },
    
    inactiveRecall: function() {
        console.log('inactiveRecall');
        alert('inactiveRecall');

        return true;
    }
});
  • placeholder (str) - the default placeholder text
  • numDisplayed (int) - the number of values to show before switching to the overflowText
  • overflowText (str) - the text to show after exceeding the numDisplayed limit
  • noResultsText (str) - the text to show if no choices exist (or an empty string)
  • searchText (str) - the search box placeholder text
  • showSearch (bool) - show the search box?

Methods

$('.your-select').fSelect('reload');
$('.your-select').fSelect('destroy');

Single vs. multi-select

Add the multiple attribute to your <select> to enable multi-select:

<select class="your-select-box" multiple="multiple">

空文件

简介

下拉多选,增加输入框 展开 收起
JavaScript
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/sense7/fSelect.git
git@gitee.com:sense7/fSelect.git
sense7
fSelect
fSelect
master

搜索帮助