YOUSEFUL / DELPHI / COMPONENTS
TAtlasKanbanCard
One card of a Kanban board: its id, title and detail text.
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
| Member | Kind | What it does |
|---|---|---|
ID | field | The card's id, unique across all columns of the board. |
Title | field | The text the board shows in bold. |
Detail | field | The 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.
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;
Related
Also in Atlas UI
TAtlasKanbanModel · TAtlasKanban · TAtlasSyntaxMemo · TAtlasWebUpdater