How to use filters for interactivity in Datazone Intelligent Apps.
Type | Description |
---|---|
text | Free text input |
number | Numeric input |
dropdown | Select from a list of options |
date | Date picker |
components.filters
section of your YAML configuration. Key properties:
type
: The filter type (text
, number
, dropdown
, date
)name
: Unique filter nametitle
: Label shown to usersaffected_variable
: The variable this filter updatesdefault_value
: (Optional) Default valueoptions
: (For dropdown) Static or SQL-driven optionsplaceholder
: (Optional) Placeholder text{% if variable_name is defined %}
to check if a filter value existsWHERE 1=1
) to ensure valid SQL when no filters are applied