Search Input
Last updated on
31 May 2023
Properties:
- Type (
typestring). Common for all elements and defines the type of element. - Widget (
widgetstring). At the moment there are only 2 options:default- plain text field,autocomplete- text field with autocomplete (requires search_api_autocomplete module) - Placeholder (
placeholderstring). Text that is used in the placeholder. - Weight (
weightinteger). The order of the element inside region.
Example object representation:
{
"id": "021b5989-314d-45bc-a6bd-bbf28b483d4e",
"type": "search_input",
"weight": "-10",
"widget": "autocomplete",
"settings": {
"placeholder": "Search for contents"
}
}
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion
Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.