Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 891 Bytes

README.mediawiki

File metadata and controls

24 lines (18 loc) · 891 Bytes

Table of Contents

picklist

a picklist in angular js

requirement

angularjs and bootstrap.css

Usage

download

  1. add picklist.js after angular.js. Make your module depends on fxpicklist
  2. <picklist name="pktest" size="20" data-picklist="" data-pick-model="tselected" data-pick-options="v.name for v in toptions"></picklist>
    1. data-pick-options has the same syntax as ngOptions for select element. The return value from the expression has to be an array. Object is not supported right now
    2. name: the name the form control field. A subform with this name will be attached under parent form
    3. size: how tall the picklist
    4. data-pick-model: model to be bound

Example

Example in Plunker

test

run mvn test

License

MIT