/kx-dashboards-knowledge:kx-selectioncontrolsfrom kx-dashboards-knowledge
Provides configuration guidance for KX Dashboards SelectionControls component: radio buttons (single select) and checkboxes (multi-select) with ViewState binding, data source support, and layout options.
Ships in kx-dashboards-knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Also read kx-dashboard-core for: envelope, screen/widget wrapper, data sources, ViewState, binding patterns, actions, notifications, and the pre-flight checklist.
SelectedValue must be a ViewState binding — { "_dashboardsType": "viewstate", "value": "<vsName>" }. A bare string will not publish the selection.MultiSelect: false = radio buttons (single value); MultiSelect: true = checkboxes (multiple values) — declare the ViewState as _type: "symbol" for radio, _type: "list" for checkboxes.ItemActionEvent must be "None" when UseDataSource: true — setting it to "Always" with a data source causes actions to fire on every data update, not just user interaction.UseDataSource: true requires Data and DataSourceMapping — both Value and Text columns must be specified in DataSourceMapping. When false, use the static Items array instead.DoubleClick is only relevant when MultiSelect: true — it is hidden in the properties panel for single-select mode.definitionId is "34" — not "33" (TextInput) or "16" (Dropdown).key: "BasicComponents" · definitionId: "34" · ComponentName: "SelectionControls" · version: "v2.9.0"
Radio buttons (single select) or checkboxes (multi-select). Items can be static or driven from a data source.
{
"ComponentName": "SelectionControls",
"Name": "",
"Data": "",
"SelectedValue": { "_dashboardsType": "viewstate", "value": "<viewStateName>" },
"DataSourceMapping": { "Value": "<value-col>", "Text": "<display-col>" },
"Items": [
{ "Value": "optionA", "Text": "Option A" },
{ "Value": "optionB", "Text": "Option B" }
],
"Theme": "Dark",
"Label": "select:",
"LabelWidth": 75,
"MultiSelect": false,
"DoubleClick": false,
"UseDataSource": false,
"AcceptEmptyValues": false,
"ForceSelectedValue": false,
"ItemActionEvent": "None",
"ItemsLayout": "Horizontal",
"horizontal": "Center",
"vertical": "Middle"
}
| Field | Values / Notes |
|---|---|
SelectedValue | Required. ViewState binding — receives selected value(s). Use _type: "symbol" for radio, _type: "list" for checkboxes. |
MultiSelect | false = radio buttons (single value, default); true = checkboxes (multiple values). |
UseDataSource | true = populate items from Data + DataSourceMapping; false = use static Items array. |
ItemActionEvent | "None" (default) — only SelectedValue updates. "Always" — fires Actions on every selection. "Index" / "Value" — fires when index or value changes. Keep "None" when UseDataSource: true. |
ForceSelectedValue | true — auto-select first item on load or when current selection is no longer in the list. |
AcceptEmptyValues | true — allows an empty/null selection. |
ItemsLayout | "Horizontal" (default) | "Vertical" |
DoubleClick | true — require double-click to select (only meaningful when MultiSelect: true). |
Label | Text shown before the items. |
LabelWidth | Width of the label in pixels. |
Theme | "Dark" (default) | "Light" — visual theme for the control. |
horizontal | Horizontal alignment of the items within the tile: "Left" | "Center" (default) | "Right". |
vertical | Vertical alignment of the items within the tile: "Top" | "Middle" (default) | "Bottom". |
"selectedTheme": { "_viewType": true, "_type": "symbol", "_default": "Dark" }
"selectedFilters": { "_viewType": true, "_type": "list", "_default": [] }
"Style": {
"advanced": "",
"labelTemplate": ""
}
labelTemplate is a Handlebars template applied to each item's display label. Reference item columns via {{col}}.
{
"id": "<uuid>",
"key": "BasicComponents",
"containerId": null,
"components": [],
"widgets": [],
"definitionId": "34",
"hasOnSettingsChange": true,
"options": {
"version": "v2.9.0",
"dropdownPossibleValues": [],
"Basics": {
"ComponentName": "SelectionControls",
"Name": "",
"Data": "",
"SelectedValue": { "_dashboardsType": "viewstate", "value": "chartTheme" },
"DataSourceMapping": { "Value": "", "Text": "" },
"Items": [
{ "Value": "Dark", "Text": "Dark" },
{ "Value": "Light", "Text": "Light" }
],
"Theme": "Dark",
"Label": "Theme:",
"LabelWidth": 75,
"MultiSelect": false,
"DoubleClick": false,
"UseDataSource": false,
"AcceptEmptyValues": false,
"ForceSelectedValue": false,
"ItemActionEvent": "None",
"ItemsLayout": "Horizontal",
"horizontal": "Center",
"vertical": "Middle"
},
"Actions": [],
"Style": { "advanced": "", "labelTemplate": "" },
"Alignment": {
"paddingLeft": 0, "paddingRight": 0, "paddingTop": 0, "paddingBottom": 0,
"innerPaddingLeft": 0, "innerPaddingRight": 0, "innerPaddingTop": 0, "innerPaddingBottom": 0,
"titlePaddingLeft": 0, "titlePaddingRight": 0, "titlePaddingTop": 7, "titlePaddingBottom": 7
},
"format": {
"titleFontSize": 16, "titleHorizontal": "Center", "titleShadow": false,
"tileBorderWidth": 0, "tileBorderRounding": 0,
"tileBorderColor": "#000000", "tileBackgroundColor": "#000000",
"tileTransparentBackground": true, "tileShadow": false
}
}
}
// ViewState
"dashTheme": { "_viewType": true, "_type": "symbol", "_default": "Dark" }
// Basics
{
"ComponentName": "SelectionControls",
"SelectedValue": { "_dashboardsType": "viewstate", "value": "dashTheme" },
"Items": [
{ "Value": "Dark", "Text": "Dark" },
{ "Value": "Light", "Text": "Light" }
],
"MultiSelect": false,
"ItemsLayout": "Horizontal",
"ForceSelectedValue": true
}
// ViewState
"selectedSyms": { "_viewType": true, "_type": "list", "_default": [] }
// Data source returns a table with sym column
"symList": {
"_dataType": "query", "_dataSource": "kdb",
"_connection": "<connection-name>",
"_queryString": "select distinct sym from trade",
"_autoExecute": true, "_autoExec": true
}
// Basics
{
"ComponentName": "SelectionControls",
"UseDataSource": true,
"Data": { "_dashboardsType": "data", "value": "symList" },
"DataSourceMapping": { "Value": "sym", "Text": "sym" },
"SelectedValue": { "_dashboardsType": "viewstate", "value": "selectedSyms" },
"MultiSelect": true,
"ItemActionEvent": "None",
"Items": []
}
"Actions": [
{
"_Type": "query",
"Trigger": "Click",
"DataSource": { "_dashboardsType": "data", "value": "tradeData" }
}
]
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kxsystems/kx-skills --plugin kx-dashboards-knowledge32 skills in this plugin
/kx-accordionUse this when the user wants collapsible or expandable sections in a KX Dashboards layout. Use it for section-based content organization; use kx-tabs for tabbed switching and kx-flex-panel for non-collapsible flexible layout containers./kx-actionsUse this alongside a component skill when adding KX Dashboards interactions such as clicks, hovers, row selection, navigation, or data-source re-execution. It defines how actions are attached and triggered, not the base component itself./kx-basiccomponents-containersUse this for KX Dashboards layout containers and navigation primitives such as panels, navigation menus, and overlay drawers. Use it for structural layout needs; use kx-tabs for tabbed switching, kx-accordion for collapsible sections, and kx-flex-panel for fixed-plus-flex layouts.Other plugins' skills for the same job