Skip to main content

FacetedModel

Note: this document is automatically generated from mobx-state-tree objects in our source code. See Core concepts and intro to pluggable elements for more info

Source file

plugins/data-management/src/HierarchicalTrackSelectorWidget/facetedModel.ts

FacetedModel - Properties

property: filterText

// type signature
IOptionalIType<ISimpleType<string>, [undefined]>
// code
filterText: types.optional(types.string, '')

property: showSparse

// type signature
IOptionalIType<ISimpleType<boolean>, [undefined]>
// code
showSparse: types.optional(types.boolean, () =>
JSON.parse(localStorageGetItem('facet-showSparse') || 'false'),
)

property: showFilters

// type signature
IOptionalIType<ISimpleType<boolean>, [undefined]>
// code
showFilters: types.optional(types.boolean, () =>
JSON.parse(localStorageGetItem('facet-showFilters') || 'true'),
)

property: showOptions

// type signature
IOptionalIType<ISimpleType<boolean>, [undefined]>
// code
showOptions: types.optional(types.boolean, () =>
JSON.parse(localStorageGetItem('facet-showTableOptions') || 'false'),
)

property: panelWidth

// type signature
IOptionalIType<ISimpleType<number>, [undefined]>
// code
panelWidth: types.optional(types.number, () =>
JSON.parse(localStorageGetItem('facet-panelWidth') || '400'),
)

FacetedModel - Getters

getter: allTrackConfigurations

// type
({ [x: string]: any; } & NonEmptyObject & { setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({ [x: string]: any; } & NonEmptyObject & ... & IStateTreeNode<...>); } & IStateTreeNode<...>)[]

getter: rows

// type
{ readonly id: string; readonly conf: { [x: string]: any; } & NonEmptyObject & { setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({ ...; } & ... 2 more ... & IStateTreeNode<...>); } & IStateTreeNode<...>; ... 4 more ...; readonly metadata: Record<string, unknown>; }[]

getter: filteredNonMetadataKeys

// type
string[] | readonly ["category", "adapter", "description"]

getter: metadataKeys

// type
any[]

getter: fields

// type
any[]

getter: filteredRows

// type
{ readonly id: string; readonly conf: { [x: string]: any; } & NonEmptyObject & { setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({ ...; } & ... 2 more ... & IStateTreeNode<...>); } & IStateTreeNode<...>; ... 4 more ...; readonly metadata: Record<string, unknown>; }[]

FacetedModel - Actions

action: setFilter

// type signature
setFilter: (key: string, value: string[]) => void

action: setPanelWidth

// type signature
setPanelWidth: (width: number) => number

action: setUseShoppingCart

// type signature
setUseShoppingCart: (f: boolean) => void

action: setFilterText

// type signature
setFilterText: (str: string) => void

action: setShowSparse

// type signature
setShowSparse: (f: boolean) => void

action: setShowOptions

// type signature
setShowOptions: (f: boolean) => void

action: setShowFilters

// type signature
setShowFilters: (f: boolean) => void

action: setVisible

// type signature
setVisible: (args: Record<string, boolean>) => void