girolando / componente-animal
Componentes Girolando - Animal
1.3.4
2020-06-08 13:50 UTC
Requires
- php: >=5.6.0
- girolando/api-clientlayer: ^1.2
- girolando/base-component: 1.0.x
- girolando/repositories-pattern: ^1.0
- illuminate/routing: 5.1.x
- illuminate/support: 5.1.x
- yajra/laravel-datatables-oracle: ~5.0
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.18
- 1.2.17
- 1.2.16
- 1.2.15
- 1.2.14
- 1.2.13
- 1.2.12
- 1.2.11
- 1.2.10
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- dev-master / 1.0.x-dev
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- dev-dependabot/composer/symfony/http-foundation-2.7.51
This package is auto-updated.
Last update: 2024-11-08 23:37:32 UTC
README
Utilização
{!! ComponenteAnimal::init() !!} <!-- IMPORTANTE --> <button class="btnBuscaAnimal">Buscar Animal</button> <componente type="animal" name="codigoAnimal" dispatcher-button=".btnBuscaAnimal" /> <script> const componente = Componente.AnimalFactory.get('codigoAnimal'); componente.addEventListener(Componente.EVENTS.ON_FINISH, function(animal) { console.log('O animal selecionado foi: ', animal); }); </script>
Método findBy
const componente = Componente.AnimalFactory.get('nome-do-seu-componente'); const animalEspecifico = await componente.findBy({registroAnimal: '1010-AX'});