Skip to content

mlabarre/ionic-Select-Control

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ionic-Select-Control

Select Box created with Ionic modal and ionic-list

Usage

Include as a dependency in your angular module

angular.module('myApp', ['$selectBox'])
  <select-box ng-Selected-Value="selectedValue" 
          		ng-Selected-Id="selectedId" 
          		ng-Item-Name="name" 
          		ng-Item-Id="id" 
          		ng-title="Select something!" 
          		ng-data="obj" 
          		ng-placeholder="nothing selected!"></select-box>

Parameter

Name Description
ng-Selected-Value Selected value
ng-Selected-Id Index of selected value
ng-data Object passed to SelectBox
ng-Item-Name Variable name that contains the value of item
ng-Item-Id Variable name that contains the id of item
ng-placeholder Placholder when no value is selected
ng-title Title of SelectBox

Example of object passed

var obj = [
 {name: "Value1", id:"1"},
 {name: "Value2", id:"2"},
 {name: "Value3", id:"3"},
 {name: "Value4", id:"4"},
]

##Codepen http://codepen.io/domiSchenk/pen/cvDkt

About

Select Box created with Ionic modal and ionic-list

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 54.0%
  • JavaScript 46.0%