Select Atmira
//how to use //inject in angular.module('app', ['atmira-ui-select']) //inject in view.html //inject <script src="./bower_components/atmira-ui-select/dist/atmiraSelect.js"></script> into index.html //inject into index.html placeholder -- string -- to show the placeholder value. list -- object -- list of elements to show in the dropdown. ng-model -- string -- save the value in variable to show it in the select box.
!important Add class to set width property in CSS.
Example Array with atribute property
#!javascript
<at-select property="description">
var tipoDocumentoArray = [
{
description: 'DNI',
codigo: '0'
},
{
description: 'PASAPORTE',
codigo: '1'
},
{
description: 'DOCUMENTO EXTRANJERO',
codigo: '2'
},
];
Example Array without atribute property
#!javascript
var tipoDocumentoArray = [
'OTROS PF',
'OTROS PJ',
'DNI',
'CI',
'TR',
'PASAPORTE',
'CI PAIS OR',
'DOC.ID.EXT.',
'T.ID.DIPLO',
'MENOR'
];
list = ng-repeat
at-width = (style= width: ?px)
if at-width is empty, at-width = (style= width: auto;)