Skip to content

ign7/search-dropdown-component-livewire-v3

Repository files navigation

Laravel Logo

Build Status Total Downloads Latest Stable Version License

search-dropdown

Como Usar ?

Exemplo <livewire:search-dropdown :modelClassName="'App\Models\User'" :column="'name'" :search_mode="'colaborador'"/>

Passe a rota do seu modelo dentro da variavel :modelClassName :column="'nome_coluna_selecionada'" :search_mode="'(tag_identificacao) '"

public $search_id, $search_mode;

protected $listeners = [
    'search_id' => 'setIdModel',
];


public function setIdModel($search_id, $search_mode)
{
    $this->search_mode = $search_mode;
    if ($this->search_mode == 'veiculo')
        dump($this->search_mode);
    $this->search_id = $search_id;
}

About

search-dropdown-component-livewire-v3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages