You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ids can be used to store objects in a database. For example, there is currently no way to relate a database row in a Card table to a card on a Kanban board.
Changes Needed
Add id prop to and generate a new one (uuid) if missing
Card objects in the Svelte store will have a new id attribute (string) that can be specified via the cards that are passed on via a <Kanban> prop. Generate new ids (as uuids) when not user-specified.
The HTML elements for cards already have id attributes in the form of card-#-col-#. This can be reworked to look up the card (and hence its id) in the store since $column provides column-card lookup. Then use the card ids as HTML element ids.
Repeat 2 and 3 for columns
Pass board, column, and card ids in svelte component event data where applicable
The text was updated successfully, but these errors were encountered:
dev-guy
changed the title
Assign unique ids to columns and cards
Assign unique ids to columns and cards. Allow one page to have multiple boards.
Aug 29, 2023
dev-guy
changed the title
Assign unique ids to columns and cards. Allow one page to have multiple boards.
Assign unique ids to boards, columns, and cards
Aug 29, 2023
Blocks #66
Ids can be used to store objects in a database. For example, there is currently no way to relate a database row in a Card table to a card on a Kanban board.
Changes Needed
<Kanban>
prop. Generate new ids (as uuids) when not user-specified.The text was updated successfully, but these errors were encountered: