Current section

Files

Jump to
noora docs components filtervalue.md
Raw

docs/components/filtervalue.md

<!-- Generated by scripts/generate-web-components.js. Do not edit directly. -->
# FilterValue
Describes one initially active filter.
```html
<noora-filter-value name="status" operator="==" value="active"></noora-filter-value>
```
## Attributes
| Attribute | Type or allowed values | Default | Description |
| --- | --- | --- | --- |
| `name` | `string` | `""` | Sets the filter identifier. |
| `label` | `string` | None | Sets the filter label. |
| `type` | `option`, `text`, `number`, `percentage`, `list` | None | Overrides the matching definition's value type. |
| `operator` | `==`, `!=`, `=~`, `!=~`, `<`, `>`, `<=`, `>=` | None | Sets the active comparison operator. |
| `value` | `string` | `""` | Sets the active value. |
| `display-value` | `string` | None | Sets a human-readable value. |
## Value
Describe an initially active filter.
```html
<noora-filter-value name="status" operator="==" value="active"></noora-filter-value>
```