Class BasemapLayerListViewModel

AMD:
ESM:
Class: esri/widgets/BasemapLayerList/BasemapLayerListViewModel
new BasemapLayerListViewModel(properties)
Parameter:
properties Object
optional

See the properties for a list of all the properties that may be passed into the constructor.

Property Overview

Any properties can be set, retrieved or listened to. See the Working with Properties topic.
Show inherited properties Hide inherited properties
Name Type Summary Class
Collection<ListItem>more details

A collection of ListItems representing the baseLayers.

more detailsBasemapLayerListViewModel
ListItemCreatedHandlermore details

Specifies a function that accesses each ListItem.

more detailsBasemapLayerListViewModel
Stringmore details

The current basemap's title.

more detailsBasemapLayerListViewModel
Stringmore details

The name of the class.

more detailsAccessor
Collection<ListItem>more details

A collection of ListItems representing the referenceLayers.

more detailsBasemapLayerListViewModel
ListItemCreatedHandlermore details

Specifies a function that accesses each ListItem representing reference layers.

more detailsBasemapLayerListViewModel
Stringmore details

The view model's state.

more detailsBasemapLayerListViewModel
MapView|SceneViewmore details

A reference to the MapView or SceneView.

more detailsBasemapLayerListViewModel

Property Details

baseItems Collection<ListItem>readonly

A collection of ListItems representing the baseLayers.

baseListItemCreatedFunction ListItemCreatedHandler

Specifies a function that accesses each ListItem. Each list item can be modified according to its modifiable properties. Actions can be added to list items using the actionsSections property of the ListItem.

basemapTitle String

The current basemap's title.

declaredClass Stringreadonly inherited

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

referenceItems Collection<ListItem>readonly

A collection of ListItems representing the referenceLayers.

referenceListItemCreatedFunction ListItemCreatedHandler

Specifies a function that accesses each ListItem representing reference layers.

state Stringreadonly

The view model's state.

Possible Values:"ready"|"loading"|"disabled"

Default Value:disabled

A reference to the MapView or SceneView. Set this to link the widget to a specific view.

Method Overview

Name Return Type Summary Class
more details

Triggers the trigger-action event and executes the given action or action toggle.

more detailsBasemapLayerListViewModel

Method Details

triggerAction(action, item)

Triggers the trigger-action event and executes the given action or action toggle.

Parameters:

The action to execute.

item ListItem

An item associated with the action.

e">BasemapLayerListViewModel

Method Details

triggerAction(action, item)

Triggers the trigger-action event and executes the given action or action toggle.

Parameters:

The action to execute.

item ListItem

An item associated with the action.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.