Kolumntyp plusgiro i tabell

Innehåll

Använd plusgiro (text:plusgiro) för inmatning och visning av plusgiro i en tabell. Plusgiro följer samma validering, formatering och parsning som det specialiserade inmatningsfältet plusgiro.

import { defineTableColumns } from "@fkui/vue";

const columns = defineTableColumns<Record<string, string>>([
    {
        type: "text:plusgiro",
        header: "Plusgiro",
        key: "plusgiro",
        editable: true,
    },
]);

Parametrar

description?: string | Readonly<Ref<string | null>>; Optional
Format description (shown in header)
enabled?: MaybeRef<boolean>; Optional
When enabled, the column is rendered. Set to false to hide the column and its cells. Default: true.
header: string | Readonly<Ref<string>>;
Column header
size?: TableColumnSize | Readonly<Ref<TableColumnSize | null>>; Optional

Column size, can be one of:

  • "grow": the column occupies as much space as it can.
  • "shrink": the column occupies as little space as it can.

Default: "grow".

sort?: boolean; Optional
‐
visible?: (this: void, row: T) => boolean; Optional

Show cell content.

A callback that can be used for hiding specific cells in the column.

Default () => true.

width?: TableColumnWidth; Optional

Used to set a more specific width than size can provide. Write like: "20%"

"%" The column takes up the percent given of the grid. It can both grow and shrink.

"px" "rem" "ch" Should be used with caution, since they´re not as responsive as size or "%". The column will grow if no other column is allowed to grow and the table can be wider.

align?: "left" | "right"; Optional
Set the alignment of the cells. Default: "left"
attributes?: Record<string, string | number | boolean | undefined> | ((this: void, row: T) => Record<string, string | number | boolean | undefined>); Optional
Arbitrary attributes passed to input field
editable?: boolean | ((this: void, row: T) => boolean); Optional
When enabled, the cells are editable. Default: false
formatter?(this: void, value: string): string | undefined; Optional
‐
key?: K; Optional
‐
label?(this: void, row: T): string; Optional
Screenreader text for input field
parser?(this: void, value: string): string | undefined; Optional
‐
tnum?: boolean; Optional
When enabled, the cells are rendered with tabular numbers
type: InputTypeText;
Column type (text or a specialized field such as text:date or text:number)
update?(this: void, row: T, newValue: string, oldValue: string): void; Optional
‐
validation?: ValidatorConfigs; Optional
‐
value?(this: void, row: T): string; Optional
‐

Sök

Esc för att stänga Pil upp/ner för att navigera Enter för att välja

Välj version

Var god vänta, laddar versionsdata...