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.
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. |
| 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 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 |
|---|---|
| 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 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. |