drafted materio_sapi search block vue integration
This commit is contained in:
@@ -30,12 +30,19 @@ class MaterioSapiSearchForm extends FormBase {
|
||||
'#weight' => '0',
|
||||
'#attributes' => [
|
||||
"placeholder" => $this->t('Search'),
|
||||
"@keyup" => "keyup",
|
||||
"@keyup.enter" => "submit",
|
||||
"v-model" => "typed"
|
||||
|
||||
],
|
||||
'#autocomplete_route_name' => 'materio_sapi.search_autocomplete',
|
||||
];
|
||||
$form['submit'] = [
|
||||
'#type' => 'submit',
|
||||
'#value' => $this->t('Search'),
|
||||
'#attributes' => [
|
||||
'@click.prevent' => "submit",
|
||||
]
|
||||
];
|
||||
|
||||
return $form;
|
||||
|
Reference in New Issue
Block a user