Skip to main content

cardListStart

Vue component rendered before the cards of each expanded card area - a column, a swimlane cell, or a stack group. Use it for per-area headers, notes, or summaries that scroll with the cards.

The rendered content isn't a card. It can't be dragged, it isn't counted, and double-clicking it doesn't add a card. It's absent from collapsed areas and from exports. A card dropped over it is inserted at the start of the area.

Usage​

cardListStart?: Component<CardListSlotProps>;

type CardListSlotProps = {
column: ColumnView;
swimlane?: SwimlaneView;
cards: KanbanCard[];
readonly: boolean;
};
FieldTypeDescription
columnColumnViewThe projected column the area belongs to
swimlaneSwimlaneViewThe swimlane of a swimlane cell or lane stack group; absent for an ordinary column (Pro)
cardsKanbanCard[]All filtered and sorted cards of the area, including cards outside the virtual range
readonlybooleanCurrent value of the readonly prop; the component should honor it

Example​

<script setup>
import { Kanban } from "@svar-ui/vue-kanban";
import ListStart from "./ListStart.vue";
</script>

<template>
<Kanban :cards="cards" :columns="columns" :cardListStart="ListStart" />
</template>
<!-- ListStart.vue -->
<script setup>
const props = defineProps({
column: { type: Object },
swimlane: { type: Object },
cards: { type: Array },
});
</script>

<template>
<div class="intro">
<strong
>{{ props.column.label
}}{{ props.swimlane ? ` / ${props.swimlane.label}` : "" }}</strong
>
<span>{{ props.cards.length }} cards</span>
</div>
</template>