mirror of
https://github.com/open-webui/docs
synced 2025-06-15 02:50:42 +00:00
doc: toggle filter
This commit is contained in:
parent
d845b844aa
commit
6b82c1f1e6
@ -96,7 +96,7 @@ class Filter:
|
|||||||
{
|
{
|
||||||
"type": "status",
|
"type": "status",
|
||||||
"data": {
|
"data": {
|
||||||
"description": "Toggled!!",
|
"description": "Toggled!",
|
||||||
"done": True,
|
"done": True,
|
||||||
"hidden": False,
|
"hidden": False,
|
||||||
},
|
},
|
||||||
@ -108,7 +108,9 @@ class Filter:
|
|||||||
#### 🖼️ What’s happening?
|
#### 🖼️ What’s happening?
|
||||||
- **toggle = True** creates a switch UI in Open WebUI—users can manually enable or disable the filter in real time.
|
- **toggle = True** creates a switch UI in Open WebUI—users can manually enable or disable the filter in real time.
|
||||||
- **icon** (with a Data URI) will show up as a little image next to the filter’s name. You can use any SVG as long as it’s Data URI encoded!
|
- **icon** (with a Data URI) will show up as a little image next to the filter’s name. You can use any SVG as long as it’s Data URI encoded!
|
||||||
- **The `inlet` function** uses the `__event_emitter__` special argument to broadcast feedback/status to the UI, such as a little toast/notification that reads "Toggled!!"
|
- **The `inlet` function** uses the `__event_emitter__` special argument to broadcast feedback/status to the UI, such as a little toast/notification that reads "Toggled!"
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
You can use these mechanisms to make your filters dynamic, interactive, and visually unique within Open WebUI’s plugin ecosystem.
|
You can use these mechanisms to make your filters dynamic, interactive, and visually unique within Open WebUI’s plugin ecosystem.
|
||||||
|
|
||||||
|
BIN
static/images/features/plugin/functions/toggle-filter.png
Normal file
BIN
static/images/features/plugin/functions/toggle-filter.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
Loading…
Reference in New Issue
Block a user