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: unknown): any; } & IStateTreeNode<AnyConfigurationSchemaType>)[]

getter: rows

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

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: unknown): any; } & IStateTreeNode<AnyConfigurationSchemaType>; ... 4 more ...; readonly metadata: Record<...>; }[]

FacetedModel - Actions

action: setFilter

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

action: setPanelWidth

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

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

action: setWidths

// type signature
setWidths: (args: Record<string, number>) => void