Dynamic Select Box

$3.00

Dynamic Select Box is an IONIC plugin with multiple or single select functionality.

Features:
1. Open Select Box in modal.
2. Dynamic option to act as multiple sector or single selector.
3. Manage the click events item click.

Clear
SKU: N/A Category: Tags: ,

Description

Dynamic Select Box is an IONIC plugin with multiple or single select functionality.

Features:
1. Open Select Box in modal.
2. Dynamic option to act as multiple sector or single selector.
3. Manage the click events item click.

Usage:

First of all, download the files.

1. Include dynamic­select­box.css in your index.html:
<link href=”where­you­put­folder/dynamic­select­box/dist/dynamic­select­box.css”
rel=”stylesheet”>

2. Include dynamic­select­box.js in your index.html:
<script type=”text/javascript”
src=”where­you­put­folder/dynamic­select­box/dist/dynamic­select­box.js”></script>

3. Add the module dynamic­select­box to your application dependencies in your app.js :
angular.module(‘starter’, [‘ionic’, ‘dynamic­select­box’] )

4. Configure module:
App.config(function(selectboxProvider) { selectboxProvider.setTemplateUrl(‘where­you­put­folder/dynamic­select­box/dist/templates/item­template.html’);
selectboxProvider.setModalTemplateUrl(‘where­you­put­folder/dynamic­select­box/dist/templates/modal­template.html’);
});

And you’re ready to go.

Directive:

<select­box

header­text=”Header”
items=”data”
multiple=true
text­property=”value”
value­property=”id”
text=”Text default Select Box”
modal­template­url=”where­you­put­folder/dynamic­select­box/dist/templates/input­temp
late.html”
template­url=”bower_components/dynamic­multiselect/templates/dist/output­template.html”
note­text=”Note Text”
value­changed=”onValueChanged(value)”>
</select­box>

Example of template object and event handler of cart in controller :

$scope.data = [
{id: 1, value: “Item 1”},
{id: 2, value: “Item 2”},
{id: 3, value: “Item 3”},
{id: 4, value: “Item 4”},
{id: 5, value: “Item 5”},
{id: 6, value: “Item 6”},
{id: 7, value: “Item 7”},
{id: 8, value: “Item 8”}
];
$scope.onValueChanged = function(value){
console.log(value);
}

Attributes:

1. header­text
Type: String
Used to specify the text that is shown in the Modal’s header bar.

2. Items
Type: Array
A list of items that is bound to the select.

3. multiple
Type: Boolean
TRUE for for multiple select or FALSE for single select .

4. text­property
Type: String
Property description of item the array.

5. value­property
Type: String
Property id of item the array.

6. text
Type: String
Value default multiselect.

7. modal­template­url
Type: URL
An optional URL that can be used to customise the look and feel of the Modal

8. template­url
Type: URL
An optional URL that can be used to custom the look and feel of fancy­select
element.

9. note­text
Type: String
An optional note that can be displayed in the default Select Box element.

10. value­changed (Callback)
Parameters: value ­ The currently selected value or list of values
Raised when the current value changes.

}

If you are interested in full ‘E-Commerce Package’ or have any query Contact Us

Additional information

Version

0.0.1

Supported Version

Ionic Version 1.3x

License

Multiple Domain, Single Domain

Reviews

There are no reviews yet.

Be the first to review “Dynamic Select Box”

Your email address will not be published. Required fields are marked *