drafted materio_sapi search block vue integration

This commit is contained in:
2019-05-31 15:01:54 +02:00
parent ea2fd59c63
commit a48b7262eb
29 changed files with 758 additions and 195 deletions

View File

@@ -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;