softselect

Select directive with Angular, Bootstrap and Font Awesome


Keywords
soft, select, angular, angularjs, softwillians
License
OSL-3.0
Install
bower install softselect

Documentation

#softselect

Único

<softselect ss-many="false" ss-data="vm.data" ss-field="vm.field" ss-model="vm.funcionario"></softselect>

Multiplo

<softselect ss-many="true" ss-data="vm.data" ss-field="vm.field" ss-model="vm.funcionarios"></softselect>

  function _gerarSelect() {

        vm.data = [
            {id: 1, nome: "Jack", cargo: "Programador", contato: {tipo: "residencial", telefone: "12 90101-0202"}},
            {id: 2, nome: "Nunes", cargo: "Programador", contato: {tipo: "residencial", telefone: "12 90101-0303"}},
            {id: 3, nome: "Peixoto", cargo: "Programador", contato: {tipo: "residencial", telefone: "12 90101-0404"}}
        ];

        vm.field = { value: 'id', text: 'nome', orderby: 'nome' };

        vm.funcionario = {};
        vm.funcionarios = [];
    }