import BuildingNumericFilterViewModel from "@arcgis/core/widgets/BuildingExplorer/BuildingNumericFilterViewModel.js";
Inheritance
BuildingNumericFilterViewModelAccessor
Subclasses
BuildingLevel, BuildingPhase
Since
ArcGIS Maps SDK for JavaScript 4.16

Base class for the level filter and the construction phase filter in the BuildingExplorerViewModel.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.
PropertyTypeClass
readonly number[]
readonly inherited
readonly
readonly
max
readonly
min
readonly

allowedValues

autocast Property
Type
readonly number[]

List of all the values which are allowed for the filter.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

The name of the class. The declared class name is formatted as esri.folder.className.

enabled

Property
Type
boolean

Whether the filter is enabled. If false, the filter's expression won't be used to filter a BuildingSceneLayer.

Default value
false

hasNext

readonly Property
Type
boolean

Whether the next value can be selected.

hasPrevious

readonly Property
Type
boolean

Whether the previous value can be selected.

max

readonly Property
Type
number | null | undefined

The maximum value allowed for the filter.

min

readonly Property
Type
number | null | undefined

The minimum value allowed for the filter.

value

Property
Type
number

The value which is currently set on the filter.

Methods

MethodSignatureClass
clear(): void
getValueLabel(value: number): string | null | undefined
next(): void
previous(): void
select(value: number): void

clear

Method
Signature
clear (): void

Removes the filter by setting enabled to false.

Returns
void

getValueLabel

Method
Signature
getValueLabel (value: number): string | null | undefined

If the field that is used for filtering has a coded value domain, the label for the value can be used to be displayed in a tooltip or in the widget UI. This method returns the label corresponding to a certain value.

Parameters

ParameterTypeDescriptionRequired
value

A filter value.

Returns
string | null | undefined

The label corresponding to the filter value.

next

Method
Signature
next (): void

Selects the next value, if available. If enabled is false, the first allowed value is selected.

Returns
void

previous

Method
Signature
previous (): void

Selects the previous value, if available. If enabled is false, the last allowed value is selected.

Returns
void

select

Method
Signature
select (value: number): void

Selects the specified value for the filter. In case the filter is disabled, this method also enables it by setting enabled to true.

Parameters

ParameterTypeDescriptionRequired
value

The value which is to be selected.

Returns
void