Skip to content

@graphty/graphty-element / session / RecordPageOptions

Interface: RecordPageOptions ​

Defined in: graphty-element/src/session/types.ts:192

Which records a page holds, and from where in their order.

Extended by ​

Properties ​

columns? ​

readonly optional columns?: readonly ResultColumn[]

Defined in: graphty-element/src/session/types.ts:209

Run results to read for the page's records, returned as RecordPage.columns in the same order. The records themselves are unchanged.


limit? ​

readonly optional limit?: number

Defined in: graphty-element/src/session/types.ts:196

The most records the page holds; Infinity reads to the end. Default 100.


matching? ​

readonly optional matching?: object

Defined in: graphty-element/src/session/types.ts:221

Only the records that match a text, as selection.apply({ text, mode }) matches it: a node by its id and its attribute values, an edge by its id, its two endpoints' ids and its attribute values. With no mode the text may carry one as a prefix (exact:, regex:, <attribute>:); otherwise it is found anywhere, ignoring case. Combines with scope, sort and columns; total counts the matches. Selects nothing.

ts
session.data.nodePage({ matching: { text: "jav" }, limit: 30 }); // Javert, ...

mode? ​

readonly optional mode?: SelectionTextMode

text ​

readonly text: string


offset? ​

readonly optional offset?: number

Defined in: graphty-element/src/session/types.ts:194

The position of the page's first record in the ordered list. Default 0.


scope? ​

readonly optional scope?: ScopeInput

Defined in: graphty-element/src/session/types.ts:198

Which records: any scope, such as "selection" or { set: id }. Default "graph".


sort? ​

readonly optional sort?: ResultSort | RecordSort

Defined in: graphty-element/src/session/types.ts:204

The order. Absent, records come in the graph's own order: the order they were added, which an edit never changes -- a removed record leaves a gap that closes, an added one goes last. Records that sort equal keep that order too.