TaskBoard
Description
A board for managing tasks
TaskBoard provides a Trello-like interface with draggable columns and cards. Use it for Kanban boards and task management.
Sample
API reference
public class TaskBoard : IComponent, IHasMarginPaddingA kanban-style board with named columns and draggable cards.
- Namespace
- Tesserae
- Implements
- IComponent, IHasMarginPadding
Constructors
| Name | Description |
|---|---|
| TaskBoard | Initializes a new instance of this class. |
Properties
| Name | Description |
|---|---|
| Margin | Gets or sets the CSS margin of the component. |
| Padding | Gets or sets the CSS padding of the component. |
public string Margin { get ; set ; }Gets or sets the CSS margin of the component.
Methods
| Name | Description |
|---|---|
| AddColumn | Adds the given column to the component. |
| Columns | Defines the columns of the grid (track sizes). |
| ReadOnly | Configures the read only on the component. |
| ReorderColumns | Whether the columns themselves can be dragged into another order (on by default). Turn it off for a board whose columns are a fixed workflow; the cards still move between them. |
| StretchColumns | Makes the columns share the board's width instead of each being 300px wide, down to 220px each before the board scrolls - so a board with a handful of columns shows all of them. Has no effect in RowMode. |
| OnColumnDrop | Registers a callback invoked when the column drop event fires. |
| OnColumnUpdate | Registers a callback invoked when the column update event fires. |
| RowMode | Configures the row mode on the component. |
| Render | Renders the component's root HTML element. |
public TaskBoard AddColumn(TaskBoardColumn column)Adds the given column to the component.
public TaskBoard Columns(params TaskBoardColumn[] columns)Defines the columns of the grid (track sizes).
public TaskBoard ReadOnly(bool isReadOnly = true)Configures the read only on the component.
public TaskBoard ReorderColumns(bool reorderColumns = true)Whether the columns themselves can be dragged into another order (on by default). Turn it off for a board whose columns are a fixed workflow; the cards still move between them.
public TaskBoard StretchColumns(bool stretchColumns = true)Makes the columns share the board's width instead of each being 300px wide, down to 220px each before the board scrolls - so a board with a handful of columns shows all of them. Has no effect in RowMode.
public TaskBoard OnColumnDrop(Action<SortableEvent> onColumnDrop)Registers a callback invoked when the column drop event fires.
public TaskBoard OnColumnUpdate(Action<SortableEvent> onColumnUpdate)Registers a callback invoked when the column update event fires.
public TaskBoard RowMode(bool isRowMode = true)Configures the row mode on the component.
public class TaskBoardColumn : IComponent- Namespace
- Tesserae
- Implements
- IComponent
Constructors
| Name | Description |
|---|---|
| TaskBoardColumn | Initializes a new instance of this class. |
Properties
| Name | Description |
|---|---|
| IsReadOnly | Returns a value indicating whether the component is read only. |
Methods
| Name | Description |
|---|---|
| AcceptDrops | Whether a card dragged from another column of the same group may be dropped here. A column that refuses drops still lets its own cards be reordered and dragged out, unless they are Locked. |
| HeaderCommands | Places components on the right of the column's header, beside its title - a count, a badge, an add button. Replaces whatever was there. |
| OnCardDrop | Registers a callback invoked when the card drop event fires. |
| OnCardAdd | Registers a callback invoked when the card add event fires. |
| OnCardRemove | Registers a callback invoked when the card remove event fires. |
| OnCardUpdate | Registers a callback invoked when the card update event fires. |
| Cards | Configures the component to cards. |
| AddCard | Adds the given card to the component. |
| Render | Renders the component's root HTML element. |
public TaskBoardColumn AcceptDrops(bool acceptDrops = true)Whether a card dragged from another column of the same group may be dropped here. A column that refuses drops still lets its own cards be reordered and dragged out, unless they are Locked.
public TaskBoardColumn HeaderCommands(params IComponent[] commands)Places components on the right of the column's header, beside its title - a count, a badge, an add button. Replaces whatever was there.
public TaskBoardColumn OnCardDrop(Action<SortableEvent> onCardDrop)Registers a callback invoked when the card drop event fires.
public TaskBoardColumn OnCardAdd(Action<SortableEvent> onCardAdd)Registers a callback invoked when the card add event fires.
public TaskBoardColumn OnCardRemove(Action<SortableEvent> onCardRemove)Registers a callback invoked when the card remove event fires.
public TaskBoardColumn OnCardUpdate(Action<SortableEvent> onCardUpdate)Registers a callback invoked when the card update event fires.
public TaskBoardColumn Cards(params TaskBoardCard[] cards)Configures the component to cards.
public TaskBoardColumn AddCard(TaskBoardCard card)Adds the given card to the component.
public class TaskBoardCard : IComponent- Namespace
- Tesserae
- Implements
- IComponent
Constructors
| Name | Description |
|---|---|
| TaskBoardCard | Initializes a new instance of this class. |
Properties
| Name | Description |
|---|---|
| IsLocked | Returns whether the card is Locked. |
Methods
| Name | Description |
|---|---|
| Locked | Keeps the card where it is: it cannot be dragged to another place or column, while its own content stays clickable. The other cards of its column can still be dragged around it. |
| Header | Configures the component to header. |
| Footer | Configures the component to footer. |
| Render | Renders the component's root HTML element. |
public TaskBoardCard Locked(bool isLocked = true)Keeps the card where it is: it cannot be dragged to another place or column, while its own content stays clickable. The other cards of its column can still be dragged around it.
public TaskBoardCard Header(IComponent headerContent)Configures the component to header.