Skip to content

filterFields beta ​

Function of @v12-engine/editor

ts
export declare function filterFields(root: Element, query: string): number;

Shows only the rows under root the words typed are all in (FIELD_ROWS), and what holds them (FIELD_HOLDERS): the others are marked hidden (data-filtered-out). A group or a fold whose own name has them shows all of it. When no row has the words as typed, the rows that nearly have them (a typo: brigtness shows Brightness; the kit's search). Nothing typed shows everything again. Gives back how many rows show