[MNT-22574] Conditional AI Search (#2339)

* [MNT-22574] Support rules for search forms

* * fix lints

* Patch version increment

Co-authored-by: dhrn <dharan.g@muraai.com>
This commit is contained in:
Popovics András
2021-11-04 15:09:18 +01:00
committed by GitHub
parent f89833461c
commit 46a179c75a
11 changed files with 55 additions and 11 deletions

View File

@@ -10,6 +10,7 @@ In this tutorial, we are going to implement the following features:
- [Add a new search form](#add-a-new-search-form)
- [Replace a search form](#replace-a-search-form)
- [Replace default search](#replace-default-search)
- [Adding rule to search form](#adding-rule-to-search-form)
### Extension Properties
@@ -80,3 +81,23 @@ To replace the default search with your configuration set to true the default fi
}
}
```
### Adding rule to search form
It support the visible rule to show the configuration
```json
{
"features": {
"search": [
{
"id": "app.search.custom_search",
"order": 200,
"name": "APP.SEARCH.MY_CUSTOM_SEARCH",
"rules": {
"visible": "<name of the rule>"
}
}
]
}
}
```