Git Product home page Git Product logo

Comments (5)

TerryZ avatar TerryZ commented on August 16, 2024
  • 不管是单选还是多选模式,$('xxx').selectPageClear();的API都会清空所有选中项目,这个在 https://terryz.github.io/demo.html 的DEMO页面第1个演示项目的第二个按钮“清除所有选中项目”就是具体的实例

  • 实际向服务端提交数据的是一个hidden隐藏域,而它的name属性正是初始化input的name,输入框中的文本内容不会影响数据的正确性,另外设置noResultClean : true也可以达到无匹配项目自动清除手动输入的内容

from selectpage.

MonkSoul avatar MonkSoul commented on August 16, 2024

不好意思,可能第一个我说的不是很明白,我指的是内置的按钮删除,并非外部调用。和多选一样,有清除按钮。

第二点明白了,非常感谢。

from selectpage.

TerryZ avatar TerryZ commented on August 16, 2024

单选模式下,将输入框的文字全部清除,就是清除选中的功能

from selectpage.

MonkSoul avatar MonkSoul commented on August 16, 2024

如果输入框拥有readonly的话,目前无法清除数据。

from selectpage.

TerryZ avatar TerryZ commented on August 16, 2024

@MonkSoul 目前最新发布的v2.4版本已经增加了单选模式下选中了项目,自动出现清除的小图标,同时增加关闭分页栏,增加纯选择的模式

from selectpage.

Related Issues (20)

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.