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
This package is auto-updated.
Last update: 2026-06-09 03:11:42 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'});