1.12.27 • Published 7 years ago

bootstrap-select-ajax v1.12.27

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

bootstrap-select-ajax

Notice: This package is forked from silviomoreto/bootstrap-select. I just modify a little code for ajax(at line 1426 in js/boostrap-select-ajax.js).And i add a stamp.

Install

npm install bootstrap-select-ajax

HTML

<select class="ajax-search" ajax-url="your ajax api" ajax-params="{#pnType#: #onePart#, #fromSys#: #scmship#}" ajax-option-name="name" ajax-option-value="age" default-data="{#name#: #xiaoming#, #age#: 28}"></select>

Attribute description

Attributetypedescription
ajax-search-keystringsearch key
ajax-urlstringrequest url
ajax-paramslike jsonuse # instead ", request other params
ajax-option-namestringoption's name
ajax-option-valuevalueoption's value
default-datalike jsonuse # instead " ,corresponding ajax-option-name and ajax-option-value

How to use

1.npm install

2.gulp

3.open http://localhost:8080 in your chrome brower

4.you will see demo

1.12.27

7 years ago

1.12.26

7 years ago

1.12.25

7 years ago

1.12.24

7 years ago

1.12.23

7 years ago

1.12.22

7 years ago

1.12.21

7 years ago

1.12.2

7 years ago