YOUSEFUL / DELPHI / COMPONENTS

TAtlasKanbanCard

One card of a Kanban board: its id, title and detail text.

Record Unit Atlas.Kanban · Product Atlas UI

Description

Returned by TAtlasKanbanModel.Card as a copy: changing a field of the record does not change the board. To change a card, remove it with RemoveCard, add it again with AddCard and put it back with MoveCard and an index (the Kanban model console sample project does this), or load an edited board document with LoadJSON.

Members

MemberKindWhat it does
IDfieldThe card's id, unique across all columns of the board.
TitlefieldThe text the board shows in bold.
DetailfieldThe text the board shows below the title.

Fields

ID field

ID, Title, Detail: string;

The card's id, unique across all columns of the board. Used by MoveCard, RemoveCard, SelectCard and BeforeMove.

Title field

ID, Title, Detail: string;

The text the board shows in bold. Never empty.

Detail field

ID, Title, Detail: string;

The text the board shows below the title. May be empty.

Examples

List every card with its column

Walks the columns and cards in board order and prints one line per card.

pascal
uses System.SysUtils, Atlas.Kanban;

procedure ListCards(Model: TAtlasKanbanModel);
var
  C, I: Integer;
  Card: TAtlasKanbanCard;
begin
  for C := 0 to Model.ColumnCount - 1 do
    for I := 0 to Model.CardCount(C) - 1 do
    begin
      Card := Model.Card(C, I);
      Writeln(Model.ColumnTitle(C), ' / ', Card.ID, ': ', Card.Title, ' (', Card.Detail, ')');
    end;
end;

TAtlasKanbanModel

Also in Atlas UI

TAtlasKanbanModel · TAtlasKanban · TAtlasSyntaxMemo · TAtlasWebUpdater