@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? ​
readonlyoptionalcolumns?: readonlyResultColumn[]
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? ​
readonlyoptionallimit?:number
Defined in: graphty-element/src/session/types.ts:196
The most records the page holds; Infinity reads to the end. Default 100.
matching? ​
readonlyoptionalmatching?: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.
session.data.nodePage({ matching: { text: "jav" }, limit: 30 }); // Javert, ...mode? ​
readonlyoptionalmode?:SelectionTextMode
text ​
readonlytext:string
offset? ​
readonlyoptionaloffset?: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? ​
readonlyoptionalscope?:ScopeInput
Defined in: graphty-element/src/session/types.ts:198
Which records: any scope, such as "selection" or { set: id }. Default "graph".
sort? ​
readonlyoptionalsort?: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.