Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Kanban

Since 0.1.0-alpha.24
Shows cards in columns, such as tasks by status or deals by stage, and lets people move them between columns.

IzzyBlazor.Kanban<TItem> in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly and its doc comments.

Properties (33)

@bind-ItemsIEnumerable<TItem>? requiredAdded in 0.1.0-alpha.24

Every card, in every column; each column shows its own in this order.

ItemKeyFunc<TItem, string>? requiredAdded in 0.1.0-alpha.24

Each card's key: what posts and what keeps its elements when it moves.

ColumnOfFunc<TItem, string>? requiredAdded in 0.1.0-alpha.24

The column a card is in, matching a KanbanColumn<T>'s Value, such as t => t.Status. A card whose column the board doesn't have isn't shown.

EditDialogFormRenderFragment<KanbanEditFormContext<TItem>>?Added in 0.1.0-alpha.24

Your own form in the card's dialog, in place of the generated one, for the fields your cards have. The board opens the dialog as before (a card, its menu's Edit, a column's add button) and closes it; the form, its model and its [SupplyParameterFromForm] are yours. The context has the card (none for a new one) and its column; call context.CloseAsync() when it has saved, and put autofocus on its first field.

ReadOnlybool = falseAdded in 0.1.0-alpha.24

Shows the board without letting anyone change it, such as to someone who may only look: cards don't move, and there's no form, add button or column menu. Their links stay.

Searchablebool = falseAdded in 0.1.0-alpha.24

Puts a search box above the board that shows only the cards matching what's typed, in their text and description or in SearchBy. On a static page the search is in the page's address (?q=…) and applies on Enter.

SearchLabelstring? = "Search"Added in 0.1.0-alpha.24

The search box's label and placeholder. Defaults to "Search".

SearchByFunc<TItem, string?>?Added in 0.1.0-alpha.24

What a card is searched by, such as d => $"{d.Name} {d.Company}", in place of its text and description.

SortByFunc<TItem, IComparable?>?Added in 0.1.0-alpha.24

Sorts each column's cards, such as t => t.Due, in place of the order they're given in. A card moved to a column takes its sorted place there.

SortDescendingbool = falseAdded in 0.1.0-alpha.24

With SortBy, sorts from last to first.

QueryPrefixstring = ""Added in 0.1.0-alpha.24

Sets this board's posts and its keys in the page's address apart, so several can share a page: QueryPrefix="orders-" uses ?orders-card=42. None by default (?card=…).

ColumnsRenderFragment?Added in 0.1.0-alpha.24

The KanbanColumn<T>s, in the order shown.

LaneOfFunc<TItem, string>?Added in 0.1.0-alpha.24

The lane a card is in, matching a KanbanLane's Value, such as t => t.Team. With it, the board has a row for each lane in Lanes, across every column, and a card moves between lanes as it does between columns.

LanesRenderFragment?Added in 0.1.0-alpha.24

The KanbanLanes, in the order shown, on a board with a LaneOf.

CardTemplateRenderFragment<TItem>?Added in 0.1.0-alpha.24

A card's content. Without it, ItemText and ItemDescription draw the card.

ItemTextFunc<TItem, string?>? (computed)Added in 0.1.0-alpha.24

The default card's text. Defaults to the card's string form.

ItemDescriptionFunc<TItem, string?>?Added in 0.1.0-alpha.24

The default card's muted second line.

ItemLabelFunc<TItem, string>? (computed)Added in 0.1.0-alpha.24

Names a card for screen readers: in its link, its ⋯ button and the announcement of a move. Defaults to ItemText, then the key; set it when CardTemplate draws the card.

ItemHrefFunc<TItem, string?>?Added in 0.1.0-alpha.24

Makes each card a link to this address; the whole card is clickable.

ItemCurrentFunc<TItem, bool>?Added in 0.1.0-alpha.24

Marks the card the page is showing, such as the one open beside the board.

ItemDisabledFunc<TItem, bool>?Added in 0.1.0-alpha.24

Dims a card and keeps it where it is: it has no link and doesn't move.

ItemAccentFunc<TItem, Accent?>?Added in 0.1.0-alpha.24

A colored line down a card's edge, such as its priority's. Color only: put the meaning in the card's text too.

ItemMenuRenderFragment<TItem>?Added in 0.1.0-alpha.24

MenuItems for each card's ⋯ menu, above its moves.

ColumnSummaryFunc<IReadOnlyList<TItem>, string?>?Added in 0.1.0-alpha.24

Text under each column's header, from the column's cards, such as their total: cards => cards.Sum(d => d.Value).ToString("C0").

ColumnWidthLength = 17remAdded in 0.1.0-alpha.24

The narrowest a column gets before the board scrolls sideways. Defaults to 17rem.

MaxHeightLength?Added in 0.1.0-alpha.24

The tallest a column's cards get before they scroll under its header, such as Length.Vh(60). Without it, each column is as tall as its cards.

Collapsiblebool = falseAdded in 0.1.0-alpha.24

Gives each column a button that collapses it to a strip with its title and count.

AddHrefFunc<string, string?>?Added in 0.1.0-alpha.24

Puts an add button in each column's header that goes to this address, from the column's Value, such as the page that makes a card for that column.

EmptyTextstring? = "Drop items here"Added in 0.1.0-alpha.24

What an empty column says. Defaults to "Drop items here".

DragHandlebool = falseAdded in 0.1.0-alpha.24

Gives each card a handle to drag it by, in place of dragging from anywhere on it. The handle opens the menu of moves.

SizeControlSize = ControlSize.MdAdded in 0.1.0-alpha.24

The cards' spacing and text size. Defaults to ControlSize.Md.

Labelstring? = "Board"Added in 0.1.0-alpha.24

Names the board for screen readers. Defaults to "Board".

TitleLevelint = 3Added in 0.1.0-alpha.24

The heading level of the columns' titles, 2 to 6. Defaults to 3.

Events (9)

OnMoveEventCallback<KanbanMoveEventArgs<TItem>>Added in 0.1.0-alpha.24

Runs with each move, before the board changes, on a static page too (the board posts): set the card's column from ToColumn and save it here, or set Cancel to keep the card where it was.

OnSaveEventCallback<KanbanSave<TItem>>Added in 0.1.0-alpha.24

Saves a card from the board's form, new or changed, on a static page too (the form posts). With it, a card opens the form in a dialog (?card=42), its menu has Edit, and each column's header has an add button. The form has a title, the column and, with ItemDescription, a description: set them on the card from the save. save.AddError keeps the form open with a message.

OnDeleteEventCallback<KanbanDelete<TItem>>Added in 0.1.0-alpha.24

Deletes a card: with it, the generated form has a Delete button. Not with an EditDialogForm, whose form deletes.

OnColumnAddEventCallback<KanbanColumnChange>Added in 0.1.0-alpha.24

Runs when the user adds a column, on a static page too: with it, an Add column button after the columns opens a form for its title. Add the column to the list you render Columns from, with a Value of your own.

OnColumnRenameEventCallback<KanbanColumnChange>Added in 0.1.0-alpha.24

Runs when the user renames a column: with it, each column's ⋯ menu has Edit, which opens a form for its title.

OnColumnDeleteEventCallback<KanbanColumnDelete>Added in 0.1.0-alpha.24

Runs when the user deletes a column: with it, the column's form has a Delete button, which asks first. Its cards are yours to move or delete.

OnColumnMoveEventCallback<KanbanColumnMoveEventArgs>Added in 0.1.0-alpha.24

Runs when the user moves a column: with it, each column's ⋯ menu has Move left and Move right. Put the column at ToIndex in the list you render Columns from.

OnItemClickEventCallback<TItem>Added in 0.1.0-alpha.24Interactive only

Makes each card a button that runs this, on interactive pages. Cards with an ItemHref are links instead.

OnAddEventCallback<string>Added in 0.1.0-alpha.24Interactive only

Puts an add button in each column's header that runs this with the column's Value, on interactive pages.

Parts (2)

Components written inside Kanban, documented here with it.

KanbanColumn<TItem>

A column of a Kanban: the cards whose ColumnOf is its Value, under a header with its Title and how many cards it holds and, with the board's ColumnSummary, a figure from them below it.

Valuestring? requiredAdded in 0.1.0-alpha.24

The column's value: it shows the cards whose ColumnOf is this, and a card moved here takes it.

Titlestring? (computed)Added in 0.1.0-alpha.24

The column's title. Defaults to Value.

Limitint?Added in 0.1.0-alpha.24

How many cards the column should hold at most. The count shows it ("3 / 5") and changes color past it; cards still move in.

MinItemsint?Added in 0.1.0-alpha.24

How many cards the column should hold at least. The count changes color below it.

AcceptsFunc<TItem, bool>?Added in 0.1.0-alpha.24

Which cards may move here from other columns, such as t => t.Reviewed.

@bind-Collapsedbool = falseAdded in 0.1.0-alpha.24 @bind: Interactive only

With the board's Collapsible, whether the column is collapsed to a strip. Bind it on an interactive page to keep it; on a static page it lasts until the page is loaded again.

AccentAccent?Added in 0.1.0-alpha.24

A colored dot before the title. Color only: the title says what the column is.

KanbanLane

A lane of a Kanban<T>: a row across the board's columns holding the cards whose LaneOf is its Value, such as a team's or a priority's, under a header with its title and how many cards it holds. Put the lanes in the board's Lanes.

Valuestring? requiredAdded in 0.1.0-alpha.24

The lane's value: it shows the cards whose LaneOf is this, and a card moved here takes it.

Titlestring? (computed)Added in 0.1.0-alpha.24

The lane's title. Defaults to Value.

@bind-Collapsedbool = falseAdded in 0.1.0-alpha.24 @bind: Interactive only

With the board's Collapsible, whether the lane is collapsed to its header. Bind it on an interactive page to keep it.

Types (10)

Accent

class

The color of a control: buttons, badges, tags, banners, progress bars and menu items. Primary, Neutral and Danger are the roles; emphasis comes from the variant (solid, soft, outline, ghost, link), not from more colors. For one control in another color, use Of (any CSS color) or Token (a theme token); text on it is chosen for contrast.

Accent members
MemberDescription
Primary

The brand color, for the main action.

Neutral

A quiet, gray action.

Danger

A destructive action, such as Delete.

Of(string css)

Any CSS color, such as "#0d9488". Text on it is black or white, whichever reads better.

Token(string name)

A theme token, such as "brand" for --ib-color-brand; text on it uses --ib-color-on-brand when the theme defines it.

From(Color color)

A Color as an accent, such as Color.Success.

ControlSize

enum

The height of interactive controls. Shared by buttons and form fields, so a button and an input of the same size line up in a row.

ControlSize values
ValueDescription
Sm

32px tall, small text.

Md

36px tall (the default).

Lg

44px tall, large text. For touch-first and marketing pages.

KanbanColumnChange

class

A column a user added or renamed on a Kanban<T>, for its OnColumnAdd and OnColumnRename. With an error added, the form stays open and shows it.

KanbanColumnChange members
MemberDescription
Column string?

The column's Value; null for a new column, whose value is yours to give.

Title string

The title the user typed.

AddError(string message)

Reports a problem, shown at the top of the form, which stays open.

KanbanColumnDelete

class

A column a user deleted on a Kanban<T>, for its OnColumnDelete. With an error added, the form stays open and shows it.

KanbanColumnDelete members
MemberDescription
Column string

The column's Value.

AddError(string message)

Reports why it can't be deleted (it still has cards, say), shown at the top of the form, which stays open.

KanbanColumnMoveEventArgs

class

A column a user moved on a Kanban<T>, for its OnColumnMove: put it at ToIndex in your list of columns.

KanbanColumnMoveEventArgs members
MemberDescription
Column string

The column's Value.

FromIndex int = 0

Its place before the move, from 0.

ToIndex int = 0

Its place after the move, from 0.

KanbanDelete

class

A delete from a Kanban<T>'s form, for its OnDelete. With an error added, the form stays open and shows it.

KanbanDelete members
MemberDescription
Item TItem

The card to delete.

AddError(string message)

Reports why it can't be deleted, shown at the top of the form, which stays open.

KanbanEditFormContext

class

What a Kanban's EditDialogForm gets.

KanbanEditFormContext members
MemberDescription
Item TItem

The card as the board has it, which isn't a copy, or the default for a new one.

IsNew bool

Whether it's a new card.

Column string

The card's column, or for a new card the column whose add button opened the form.

Lane string?

On a board with lanes, the card's lane, or the first lane for a new card.

CloseAsync()

Closes the dialog, once your form has saved.

KanbanMoveEventArgs

class

A card's move on a Kanban<T>, before the board changes.

KanbanMoveEventArgs members
MemberDescription
Item TItem

The card that moves.

Key string

Its key.

FromColumn string

The column it moves from: a KanbanColumn<T>'s Value.

ToColumn string

The column it moves to; the same as FromColumn when it only changes place.

FromLane string?

On a board with lanes, the lane it moves from: a KanbanLane's Value.

ToLane string?

On a board with lanes, the lane it moves to; the same as FromLane when it stays in its lane.

FromIndex int = 0

Its place before the move, from 0, among its column's cards (in its lane, on a board with lanes).

ToIndex int = 0

Its place after the move, from 0, among the cards of the column it moves to.

Cancel bool = false

Set to keep the card where it was, such as when saving the move failed.

KanbanSave

class

A save from a Kanban<T>'s form, for its OnSave: the form's values, and the card they're for (none for a new one). With no errors added, the form closes; with errors, it stays open and shows them.

KanbanSave members
MemberDescription
Item TItem

The card being edited, or the default for a new one.

IsNew bool

Whether it's a new card.

Fields KanbanEditFields

The form's values.

Title string

The title.

Description string?

The description, when the board has one.

Column string

The column: one of the board's, by its Value.

Lane string?

On a board with lanes, the lane: one of the board's, by its Value.

AddError(string message)

Reports a problem with the save, shown at the top of the form, which stays open.

Length

struct

A width, height or flex basis: a size token, a keyword, or a CSS length built with a factory such as Rem.

Length members
MemberDescription
Sm

640px (matches the sm breakpoint).

Md

768px (matches the md breakpoint).

Lg

1024px (matches the lg breakpoint).

Xl

1280px (matches the xl breakpoint).

Prose

A comfortable reading width, 68 characters.

Full

100% of the containing block.

Auto

auto.

FitContent

fit-content: as wide as the content, up to the available space.

MinContent

min-content.

MaxContent

max-content.

Px(double value)

Pixels.

Rem(double value)

Root ems (16px each by default).

Percent(double value)

Percent of the containing block.

Ch(double value)

Character widths, for text measures.

Vw(double value)

Percent of the viewport width.

Dvh(double value)

Percent of the dynamic viewport height (accounts for mobile browser bars).

Of(string css)

Any CSS length, such as calc(100% - 2rem). Checked for unsafe characters.

Css string

The CSS value this length renders as.

Connection lost

Rejoining the server…