Search Input

Last updated on
31 May 2023

Properties:

  1. Type (type string). Common for all elements and defines the type of element.
  2. Widget (widget string). At the moment there are only 2 options: default - plain text field, autocomplete - text field with autocomplete (requires search_api_autocomplete module)
  3. Placeholder (placeholder string). Text that is used in the placeholder.
  4. Weight (weight integer). 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: