/kx-dashboards-knowledge:kx-datepickerfrom kx-dashboards-knowledge
Creates date/time pickers for KX Dashboards (date, datetime, timestamp, timespan, month) bound to a ViewState, with mode auto-detected from the ViewState type.
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.
Read when SKILL.md points to them.
Also read kx-dashboard-core for: envelope, screen/widget wrapper, data sources, ViewState, binding patterns, actions, notifications, and the pre-flight checklist.
key: "BasicComponents" · definitionId: "15" · ComponentName: "DatePicker" · version: "v2.10.0"
This skill uses progressive disclosure: the hazards, workflow, and output checklist are here; the bulky JSON schema, picker-mode/field tables, ViewState declarations, and worked examples live in reference/. Read only the reference file relevant to your current step.
| File | Read it when you need… |
|---|---|
| reference/component-schema.md | The raw component JSON — full Basics schema, the picker-mode table, the Basics field reference, the ViewState declarations for each mode, and the complete DatePicker component object. |
| reference/examples.md | Copy-ready worked patterns — simple picker, full linked picker→datagrid, exact-vs-range query filters, LAD default, timespan input, and DefaultDate offset expressions. |
SelectedDate must be a ViewState binding — { "_dashboardsType": "viewstate", "value": "<vsName>" }. The type of that ViewState controls which picker is rendered (date, datetime, timestamp, timespan, month). A bare string will not work._type — the picker mode is inferred from it. Use "date", "datetime", "timestamp", "timespan", or "month"._default. The ViewState _default is the reliable way to set an initial date — it works regardless of whether a Data source is bound and fires before any query executes. Never use "_default": "": a null ViewState does not count as a "change" on the null → first-value transition, so dependent queries that use it as a parameter will not execute until the user picks a second date. Set a known-good date string (e.g. "2020-01-02"), or the string "LAD" when a data source is bound, so the query has a value to run with on initial load.DefaultDate (LAD/FAD expressions) only activates when Data is bound. These expressions are resolved against the available dates returned by the data source. Without a Data binding, DefaultDate has no effect — set the initial value via the ViewState _default instead.Data source must return kdb+ temporal types — use select distinct Date from <table> (not select Date) to avoid duplicate entries in the picker calendar. The source should return a single column of date, datetime, timestamp, month, or timespan values."AvailableDates" and "AvailableDates " are different keys. The Data binding on the component must exactly match the key declared in the data block, including any trailing spaces. Always verify both sides match.definitionId is "15" — not "33" (TextInput) or "17" (Text).width and labelWidth are in pixels — both are required for correct rendering; omitting them leaves the layout unsized.value uses <%vsName%> syntax — the ViewState reference in _queryParams must be written as "<%vsName%>" (plain angle brackets). Do not HTML-encode the brackets._type (see the picker-mode table in reference/component-schema.md).SelectedDate with the correct _type and a non-null _default (see Hazards #2, #3 and the ViewState declarations in reference/component-schema.md).Data source returning a select distinct temporal column, and set DefaultDate (e.g. "LAD"). Otherwise leave Data: "" and rely on the ViewState _default (Hazards #4, #5).Basics (SelectedDate, Data, DefaultDate, Label, width, labelWidth). Full shape in reference/component-schema.md.<%vsName%> query param, and bind the target widget to that source, not to the picker directly (Hazard #9; see the linked pattern in reference/examples.md).reference/examples.md when a pattern matches.Before returning the JSON, verify:
SelectedDate is a ViewState binding — never a plain string._type matching the intended picker mode._default (a date string, or "LAD" when a data source is bound) — never "".DefaultDate (LAD/FAD) is only used when a Data source is bound; otherwise omit it and rely on _default.Data is bound, its key exactly matches the data source key in the data block (including trailing whitespace).select distinct on a single temporal column.definitionId is the string "15".width and labelWidth are present and in pixels."<%vsName%>" (plain angle brackets, not HTML-encoded).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