Skip to content

refactor: add pagination example (refs SFKUI-7692)#1088

Merged
jensviklander merged 6 commits intomainfrom
pagination-example
Mar 11, 2026
Merged

refactor: add pagination example (refs SFKUI-7692)#1088
jensviklander merged 6 commits intomainfrom
pagination-example

Conversation

@jensviklander
Copy link
Contributor

No description provided.

@github-actions
Copy link

CHANGELOG

No commits contributing to a release was found, no changelog entries will be added for this Pull Request.

If this PR should be included in a release amend the commit message(s) to use:

  • fix: for a patch version or
  • feat: for minor version.

Read more about the release process (swedish).

@github-actions
Copy link

github-actions bot commented Mar 10, 2026

Artifact sizes

No artifact size changes in this build.

@github-actions
Copy link

github-actions bot commented Mar 10, 2026

Förhandsgranskning 🐛 🔍

Dokumentation och exampel applikationer finns att förhandsgranska på:

Sida URL
Dokumentation https://Forsakringskassan.github.io/designsystem/pr-preview/pr-1088/
Vue Sandbox https://Forsakringskassan.github.io/designsystem/pr-preview/pr-1088/vue-sandbox
Applikationsmall https://Forsakringskassan.github.io/designsystem/pr-preview/pr-1088/examples/page-layout

Senast uppdaterad 2026-03-11 14:01 UTC i gh-pages.

key: "name",
editable: true,
label: (row) => `Namn för rad ${row.id}`,
value(row) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value och update behöver inte specificeras när key redan används.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coderabbitai autofix stacked pr

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
cat packages/vue-labs/src/components/FTable/examples/FTablePaginationExample.vue

Length of output: 5296


@dvitamin, here is the fix — removing the redundant value and update callbacks from the two columns that already specify a key:

  • Remove value and update from the name column (already has key: "name")
  • Remove value from the receivedAt column (already has key: "receivedAt")

💡 Use @coderabbitai plan to create a plan for code changes

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

CodeRabbit could not initialize plan tracking. Please try again later.

rows.value = rows.value.filter((row) => !selectedRows.value.includes(row));
}

function asRows(value: Row[]): Row[] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Denna känns lite tråkig att behöva, konstigt typningen inte följer med.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bra att du såg den, tror faktiskt att det går bra att städa bort den. Är gammalt skräp från när jag försökte få till pagineringen där den tappade typningen, men borde fungera utan den nu 👍

@jensviklander jensviklander merged commit aa5937d into main Mar 11, 2026
28 checks passed
@jensviklander jensviklander deleted the pagination-example branch March 11, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants