/kx-dashboards-knowledge:kx-textfrom kx-dashboards-knowledge
Generates KX Dashboards Text display components for static labels, headings, HTML markup, or dynamic single-value KPIs bound to data sources via Handlebars templates.
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.
definitionId is "17" — not "33" (TextInput). Text is a read-only display widget; it does not accept user input.Basics.HtmlText is rendered as HTML — plain strings are valid; use <p>, <h1>–<h6>, <strong>, <em>, inline styles, etc. for formatting.Basics.Template is a Handlebars template — references data source columns as {{this.0.columnName}} and ViewStates as {{vsName}}. When Template is non-empty it overrides HtmlText.AllowUnsafeContent: false by default — only set true when the template renders user-supplied or external HTML. Keep false for all static labels.Basics.FontSize is stored as a string in the default JSON (e.g. "13", not 13).Actions array — the Text component is display-only and fires no click actions.Template. Dropdown is an input control for user selection; it must never be used as a display widget for query results.key: "BasicComponents" · definitionId: "17" · ComponentName: "Text" · version: "v2.9.0"
A static or data-driven text display tile. Renders HTML markup or Handlebars-templated text.
{
"ComponentName": "Text",
"Name": "",
"HtmlText": "insert text here",
"Data": "",
"Template": "",
"Theme": "Dark",
"FontSize": "13",
"horizontal": "Center",
"vertical": "Middle",
"tooltip": "",
"AllowUnsafeContent": false,
"version": "v2.9.0"
}
| Field | Values / Notes |
|---|---|
HtmlText | Static text or HTML markup shown when Template is empty. Rendered directly as HTML. |
Data | Optional data source binding ({ "_dashboardsType": "data", "value": "<dsName>" }). When set, the component subscribes to row changes and the first row is exposed to Template. |
Template | Handlebars template string. References data columns via {{this.0.columnName}} and ViewStates via {{vsName}}. Overrides HtmlText when non-empty. |
FontSize | String (default "13"). Font size in px applied to the tile. |
horizontal | "Left" | "Center" (default) | "Right" — horizontal alignment of the content block. |
vertical | "Top" | "Middle" (default) | "Bottom" — vertical position of the content block. |
AllowUnsafeContent | true allows <script> and other unsafe HTML in template output. Keep false for static text. |
Theme | "Dark" | "Light" |
{
"id": "<uuid>",
"key": "BasicComponents",
"containerId": null,
"components": [],
"widgets": [],
"definitionId": "17",
"hasOnSettingsChange": true,
"options": {
"version": "v2.9.0",
"Basics": {
"ComponentName": "Text",
"Name": "",
"HtmlText": "insert text here",
"Data": "",
"Template": "",
"Theme": "Dark",
"FontSize": "13",
"horizontal": "Center",
"vertical": "Middle",
"tooltip": "",
"AllowUnsafeContent": false,
"version": "v2.9.0"
},
"Style": { "advanced": "" },
"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
}
}
}
"Basics": {
"ComponentName": "Text",
"HtmlText": "<h2 style=\"margin:0\">Portfolio Summary</h2>",
"horizontal": "Left",
"vertical": "Middle",
"FontSize": "16"
}
Bind Data to a source returning one row. The Handlebars context is the full row array from the data source, so use {{this.0.columnName}} to access the first row's column value:
"Basics": {
"ComponentName": "Text",
"Data": { "_dashboardsType": "data", "value": "<dataSource>" },
"Template": "Current price: <strong>{{this.0.price}}</strong>",
"HtmlText": ""
}
{{this.0.columnName}}—thisis the array of rows,this.0is the first row,.columnNameis the column. Always use this form when referencing data source columns. Do NOT use{{count this}}to count rows — run a dedicated scalar query (select total: count i from t) and reference{{this.0.total}}.
Template can reference ViewStates directly — no Data binding required:
"Basics": {
"ComponentName": "Text",
"Template": "Selected symbol: <strong>{{selectedSym}}</strong>",
"HtmlText": ""
}
The component calls subscribeTemplateViewStates internally and re-renders when selectedSym changes.
"Basics": {
"ComponentName": "Text",
"Data": { "_dashboardsType": "data", "value": "pnlData" },
"Template": "<p>Sym: <strong>{{selectedSym}}</strong></p><p>P&L: {{this.0.pnl}}</p>",
"HtmlText": "",
"AllowUnsafeContent": false
}
{{selectedSym}} resolves from a ViewState; {{this.0.pnl}} resolves from the first row of the pnlData data source.
Write the kdb+ query so it returns exactly one row with named columns, then reference each column in Template with {{this.0.columnName}}.
/ One-column scalar — total trade count today
select totalCount: count i from trade where date=.z.d
/ Multi-column scalar — count, last price, total volume for selected sym
{[s] select totalCount: count i, lastPrice: last price, totalVol: sum size
from trade where date=.z.d, sym=s}
// Data source — static (one-time) or polling (live refresh)
"tradeStats": {
"_dataType": "query", "_dataSource": "kdb",
"_connection": "<connection-name>",
"_queryString": "select totalCount: count i from trade where date=.z.d",
"_queryParams": [],
"_autoExecute": true, "_autoExec": true,
"_subscriptionType": "polling",
"_subscriptionInterval": 5
}
// Text component — single value
"Basics": {
"ComponentName": "Text",
"Data": { "_dashboardsType": "data", "value": "tradeStats" },
"Template": "<p style=\"font-size:28px;margin:0;font-weight:bold\">{{this.0.totalCount}}</p><p style=\"font-size:12px;margin:4px 0 0;opacity:0.7\">Trades Today</p>",
"HtmlText": "",
"horizontal": "Center",
"vertical": "Middle",
"AllowUnsafeContent": false
}
For a multi-column scalar, reference each column with this.0.columnName:
"Template": "<strong>{{this.0.lastPrice}}</strong> · {{this.0.totalCount}} trades · {{this.0.totalVol}} vol"
Keep the query lean —
select col: agg from tablereturns one row. The Text component takes the first row of the result set, so multi-row queries silently discard all rows after the first.
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./kx-breadcrumbsUse this when the user wants a KX Dashboards breadcrumb trail for hierarchical drilldown or drill-through navigation, especially with pivot grids or chart-based exploration. Use kx-tabs for tabbed navigation instead of breadcrumbs./kx-buttonUse this when the user wants a KX Dashboards button or clickable action trigger: labels, icons, tooltips, alignment, fixed width, disabled state, colours, and click actions. Use it for buttons and action triggers; use kx-textinput for free-text entry, kx-dropdown for selection lists, or kx-selectioncontrols for radio/checkbox choices./kx-chart3dUse this when the user wants a KX Dashboards 3D chart or 3D visualisation: scatter, line, bar, surface, or 4D color/size-encoded layers. Use it for 3D graphics; use kx-chartgl for standard 2D WebGL charts and kx-gauge for dial or bullet-style KPI charts.Other plugins' skills for the same job