added image search button, added image loader to webpack

This commit is contained in:
2019-06-17 14:07:27 +02:00
parent 5d57f0e32a
commit 88dc7b7ea4
10 changed files with 117 additions and 18 deletions

View File

@@ -45,14 +45,24 @@ class MaterioSapiSearchForm extends FormBase {
"v-model" => "autocomplete"
],
];
$form['submit'] = [
'#type' => 'submit',
'#value' => $this->t('Search'),
'#attributes' => [
'@click.prevent' => "submit",
]
];
// $form['submit'] = [
// '#type' => 'submit',
// '#value' => $this->t('Search'),
// '#attributes' => [
// '@click.prevent' => "submit",
// ]
// ];
$form['submit'] = array(
'#type' => 'button',
// '#src' => '',//drupal_get_path('module', 'materio_search_api') . '/images/search.png',
'#value' => t('Search'),
// '#prefix' => '<div class="search-btn-wrapper">',
// '#suffix'=> '</div>',
'#attributes' => [
'title' => t('Search'),
'@click.prevent' => "submit",
]
);
return $form;
}