/kx-dashboards-knowledge:kx-flex-panelfrom kx-dashboards-knowledge
Creates pinned header, footer, or sidebar layouts with a flexible main content area for KX Dashboards. Use for fixed-plus-fill layouts.
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.
key: "FlexPanel" · definitionId: "1011"
Also read kx-dashboard-core for envelope, screen/widget wrapper, data sources, and ViewState.
Use FlexPanel when the user asks for a pinned/fixed header, footer, or sidebar. For all other layouts use Panel (definitionId: "50").
widgets[0], main content is always widgets[1] — this applies to every orientation without exception.horizontalbottom is counter-intuitive — the footer is widgets[0] even though it renders at the bottom of the screen. The layout value controls screen position, not array order."row": null, "column": null on every child layout — but rowSpan/colSpan are still required.minSize is pixels, not grid units. Typical: 60–120 header, 40–60 footer, 200–280 sidebar.widgets[0] → fixed region Text, Dropdown, Button, SelectionControls,
NavigationMenu, DatePicker, Breadcrumbs,
PlayBack, DataFilter, TreeView
widgets[1] → main content Datagrid, ChartGL, Datatable, PieJS,
Heatmap, Panel, Tabs, nested FlexPanel
The layout option only sets where the fixed region appears on screen:
layout | Fixed region renders at |
|---|---|
"horizontaltop" | Top (header) |
"horizontalbottom" | Bottom (footer) — widgets[0] is still first in array |
"verticalleft" | Left sidebar |
"verticalright" | Right sidebar |
{
"id": "<flexpanel-uuid>",
"key": "FlexPanel",
"containerId": null,
"components": [],
"definitionId": "1011",
"hasOnSettingsChange": true,
"options": {
"version": "4.7.7",
"Basics": {
"Name": "",
"layout": "horizontaltop", // horizontaltop | horizontalbottom | verticalleft | verticalright
"minSize": 80, // pixel height (horizontal) or width (vertical) of fixed region
"maxSize": 0 // 0 = no cap; fixed region stays at minSize
},
"Style": { "advanced": "" }
},
"widgets": [
{
// ── widgets[0]: FIXED REGION (header / footer / sidebar) ──────────
"id": "<fixed-widget-uuid>",
"layout": { "row": null, "column": null, "rowSpan": 3, "colSpan": 36 },
"component": {
// Text, Dropdown, Button, SelectionControls, NavigationMenu, DatePicker …
// See kx-text, kx-dropdown, kx-selectioncontrols, etc.
}
},
{
// ── widgets[1]: MAIN CONTENT (fills remaining space) ──────────────
"id": "<main-widget-uuid>",
"layout": { "row": null, "column": null, "rowSpan": 21, "colSpan": 36 },
"component": {
// Datagrid, ChartGL, Panel, Tabs, nested FlexPanel …
// See kx-datagrid, kx-chartgl, kx-tabs, etc.
}
}
]
}
horizontalbottom)The footer is widgets[0] even though it appears at the bottom. The Datagrid fills the space above.
widgets array Screen rendering
──────────── ─────────────────────────────────────
[0] footer → ┌───────────────────────────────────┐
│ Datagrid / ChartGL / Panel │ ← widgets[1]
[1] main content → ├───────────────────────────────────┤
│ Text / PlayBack / Button │ ← widgets[0] pinned here
└───────────────────────────────────┘
For a footer showing a scalar stat (e.g. total row count), use a Text component bound to a dedicated scalar query — never Dropdown. See kx-text for the {{this.0.total}} template pattern.
Put the fixed header in the outer widgets[0] and a second FlexPanel in the outer widgets[1]. The inner FlexPanel handles the sidebar + content split.
┌───────────────────────────────┐
│ Fixed header │ ← outer widgets[0] (horizontaltop)
├──────────┬────────────────────┤
│ Fixed │ │
│ sidebar │ Main content │ ← outer widgets[1] = inner FlexPanel (verticalleft)
└──────────┴────────────────────┘
// outer FlexPanel
"widgets": [
{ "layout": { "row": null, "column": null, "rowSpan": 3, "colSpan": 36 },
"component": { /* header: Text, Dropdown, etc. */ } },
{ "layout": { "row": null, "column": null, "rowSpan": 21, "colSpan": 36 },
"component": {
"key": "FlexPanel", "definitionId": "1011",
"options": { "version": "4.7.7",
"Basics": { "layout": "verticalleft", "minSize": 250, "maxSize": 0 },
"Style": { "advanced": "" } },
// inner FlexPanel
"widgets": [
{ "layout": { "row": null, "column": null, "rowSpan": 21, "colSpan": 8 },
"component": { /* sidebar: Dropdown, DataFilter, NavigationMenu, etc. */ } },
{ "layout": { "row": null, "column": null, "rowSpan": 21, "colSpan": 28 },
"component": { /* main content: Datagrid, ChartGL, Panel, etc. */ } }
]
}
}
]
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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