Skip to content
import BuildingLevel from "@arcgis/core/widgets/BuildingExplorer/BuildingLevel.js";
Inheritance:
BuildingLevelBuildingNumericFilterViewModelAccessor
Since
ArcGIS Maps SDK for JavaScript 4.16

Provides information for the building level filter, such as the value selected by the user or the minimum and maximum allowed values.

See also

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.

allowedValues

autocast inherited 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

inherited 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

readonlyinherited Property
Type
boolean

Whether the next value can be selected.

hasPrevious

readonlyinherited Property
Type
boolean

Whether the previous value can be selected.

max

readonlyinherited Property
Type
number | null | undefined

The maximum value allowed for the filter.

min

readonlyinherited Property
Type
number | null | undefined

The minimum value allowed for the filter.

value

inherited Property
Type
number

The value which is currently set on the filter.

Methods

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

clear

inherited Method
Signature
clear (): void

Removes the filter by setting enabled to false.

Returns
void

getValueLabel

inherited 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

inherited Method
Signature
next (): void

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

Returns
void

previous

inherited Method
Signature
previous (): void

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

Returns
void

select

inherited 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