TaskBoard - Data Attributes

Reference stable TaskBoard data attributes and runtime state classes for styling and tests.

#Data Attributes

AttributeSurfaceUse
data-column-idColumn, swimlane cell, and column-header surfaces.Locate a workflow column or lane-specific drop surface.
data-task-idCard wrapper.Locate a card for tests, focus, drag, and scroll helpers.
data-swimlane-idSwimlane row and cell surfaces.Locate a swimlane row or cell.
data-print-targetRoot while printing.Target print-specific CSS.

#Runtime Classes

ClassMeaning
p-taskboard, p-taskboard-body, p-taskboard-columns, p-taskboard-swimlane-gridRoot and layout containers.
p-taskboard-disabled, p-taskboard-readonly, p-taskboard-dragging, p-taskboard-column-reorderingRoot interaction state.
p-taskboard-column-collapsed, p-taskboard-column-locked, p-taskboard-column-pinned, p-taskboard-column-draggingColumn state.
p-taskboard-column-wip-warning, p-taskboard-column-wip-exceededColumn WIP status.
p-taskboard-column-todo, p-taskboard-column-in-progress, p-taskboard-column-done, p-taskboard-column-blockedColumn status styling from statusType.
p-taskboard-drop-indicatorActive insertion marker.
p-taskboard-card-selected, p-taskboard-card-focused, p-taskboard-card-disabledCard interaction state.
p-taskboard-card-draggable, p-taskboard-card-dragging, p-taskboard-card-dragging-sourceCard drag capability and active drag state.
p-taskboard-density-compact, p-taskboard-density-standard, p-taskboard-density-comfortableDensity mode.
p-taskboard-rtl, p-taskboard-print-active, p-taskboard-printing, p-taskboard-print-ancestorDirection and print state.
p-taskboard-drag-preview, p-taskboard-drag-preview-badgeDrag overlay surfaces.

#Testing Notes

Prefer data attributes for locating columns, cards, and swimlane cells. A swimlane cell carries both data-column-id and data-swimlane-id, which is the stable selector shape for lane-relative drag and virtual-scroll checks. Use state classes when the test asserts behavior such as selected, dragging, collapsed, filtered, or print state. Avoid depending on copied UI-part class names unless the test belongs to the app-owned part.