FilterDatasetViewSelector
components/filter/DatasetViewSelector.vue
Headless-UI listbox for switching the active dataset view (org context) — trigger row plus a dropdown of named options with a checkmark on the current selection and an optional "Manage" row at the bottom.
Dataset View:
Scenarios
Disabled — "Not Applicable"
Dataset View:
Not Applicable
With Manage row
Dataset View:
Not Applicable
components/filter/DatasetViewSelector.vue
Usage
<FilterDatasetViewSelector
modelValue = "undefined"
:options = "[]"
:disabled = "true"
:canManage = "false"
/>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| modelValue | String | undefined | Selected option's id. undefined represents "All"/no-context. |
| options | Array | [] | { id, name }[] — id undefined represents the "All"/no-context option. |
| disabled | Boolean | true | Shows a "Not Applicable" row instead of the trigger. |
| canManage | Boolean | false | Shows the "Manage" row at the bottom of the dropdown. |
Events
| Event | Description |
|---|---|
| update:modelValue | Fired with the newly selected option's id. |
| manage | Fired when the "Manage" row is clicked — consumer handles navigation. |
Slots
| Slot | Description |
|---|---|
| icon | Optional icon shown beside the trigger label and the disabled state (no default — app.qpoint.io's dataset-view glyph is app-local). |