Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

domiSchenk/ionic-Select-Control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS PROJECT IS DEPRECATED

Component is not maintained anymore!

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published