Ga naar hoofdinhoud

CnDeckCardPicker

Multi-step modal for picking an existing Nextcloud Deck card to link to the parent OpenRegister object. Part of the Deck integration leaf.

Flow: 1. choose a board → 2. choose a stack → 3. choose a card → 4. confirm. Boards/stacks come from GET /api/integrations/deck/boards and …/boards/{id}/stacks. On confirm it emits link with { cardId }. To create a fresh card instead, use CnDeckCardCreate.

Props​

PropTypeDefaultDescription
openBooleanfalseControls modal visibility (v-model-style with update:open).

Events​

EventPayloadDescription
link{ cardId }Emitted on confirm with the chosen Deck card id.
update:openbooleanModal open-state change.

Usage​

<CnDeckCardPicker v-model:open="pickerOpen" @link="onLink" />

Additional props​

PropTypeDefaultDescription
apiBaseString—Base path for the Deck integration API.
dialogTitleString—Override for the modal title.
cardLoaderFunctionnullOptional custom loader for the step-3 card list (defaults to the Deck app endpoint).