added image search button, added image loader to webpack
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user