Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface widgetsSearch

Hierarchy

Index

Properties

activeMenu

activeMenu: "none" | "source" | "warning" | "suggestion"

The current active menu of the Search widget.

Read more...

Readonly activeSource

The source object currently selected.

Read more...

activeSourceIndex

activeSourceIndex: number

The selected source's index.

Read more...

allPlaceholder

allPlaceholder: string

String value used as a hint for input text when searching on multiple sources.

Read more...

Readonly allSources

The combined collection of defaultSources and sources.

Read more...

autoSelect

autoSelect: boolean

Indicates whether to automatically select and zoom to the first geocoded result.

Read more...

container

container: string | HTMLElement

The ID or node representing the DOM element containing the widget.

Read more...

declaredClass

declaredClass: string

Readonly defaultSources

A read-only property that is a Collection of LayerSearchSource and/or LocatorSearchSource.

Read more...

destroyed

destroyed: boolean

disabled

disabled: boolean

When true, the widget is visually withdrawn and cannot be interacted with.

Read more...

goToOverride

goToOverride: GoToOverride

This function provides the ability to override either the IMapView goTo() or SceneView goTo() methods.

Read more...

iconClass

iconClass: string

The widget's default CSS icon class.

Read more...

id

id: string

The unique ID assigned to the widget when the widget is created.

Read more...

includeDefaultSources

includeDefaultSources: boolean | Function

Indicates whether or not to include defaultSources in the Search UI.

Read more...

initialized

initialized: boolean

label

label: string

The widget's label.

Read more...

locationEnabled

locationEnabled: boolean

Enables location services within the widget.

Read more...

maxResults

maxResults: number

The maximum number of results returned by the widget if not specified by the source.

Read more...

maxSuggestions

maxSuggestions: number

The maximum number of suggestions returned by the widget if not specified by the source.

Read more...

minSuggestCharacters

minSuggestCharacters: number

The minimum number of characters needed for the search if not specified by the source.

Read more...

popupEnabled

popupEnabled: boolean

Indicates whether to display the Popup on feature click.

Read more...

popupTemplate

popupTemplate: PopupTemplate

A customized PopupTemplate for the selected feature.

Read more...

portal

portal: Portal

It is possible to search a specified portal instance's locator services Use this property to set this ArcGIS Portal instance to search.

Read more...

Readonly resultGraphic

resultGraphic: Graphic

The graphic used to highlight the resulting feature or location.

Read more...

resultGraphicEnabled

resultGraphicEnabled: boolean

Indicates if the resultGraphic will display at the location of the selected feature.

Read more...

Readonly results

results: any[]

An array of objects, each containing a SearchResult from the search.

Read more...

searchAllEnabled

searchAllEnabled: boolean

Indicates whether to display the option to search all sources.

Read more...

searchTerm

searchTerm: string

The value of the search box input text string.

Read more...

Readonly selectedResult

selectedResult: SearchResult

The result selected from a search.

Read more...

sources

The Search widget may be used to search features in a map/feature service feature layer(s), SceneLayers with an associated feature layer, BuildingComponentSublayer with an associated feature layer, GeoJSONLayer, CSVLayer or OGCFeatureLayer, or table, or geocode locations with a Locator.

Read more...

Readonly suggestions

suggestions: SuggestResult[]

An array of results from the suggest method.

Read more...

suggestionsEnabled

suggestionsEnabled: boolean

Enable suggestions for the widget.

Read more...

view

A reference to the MapView or SceneView.

Read more...

viewModel

viewModel: SearchViewModel

The view model for this widget.

Read more...

visible

visible: boolean

Indicates whether the widget is visible.

Read more...

Methods

Protected _get

  • _get(propertyName: string): any
  • _get<T>(propertyName: string): T
  • Parameters

    • propertyName: string

    Returns any

  • Type parameters

    • T

    Parameters

    • propertyName: string

    Returns T

Protected _set

  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns widgetsSearch

blur

  • blur(): void
  • Unfocuses the widget's text input.

    Read more...

    Returns void

classes

  • classes(...classNames: any[]): string
  • A utility method used for building the value for a widget's class property.

    Read more...

    Parameters

    • Rest ...classNames: any[]

    Returns string

clear

  • clear(): void
  • Clears the current searchTerm, search results, suggest results, graphic, and graphics layer.

    Read more...

    Returns void

destroy

  • destroy(): void
  • Destroys the widget instance.

    Read more...

    Returns void

emit

  • emit(type: string, event?: any): boolean
  • Emits an event on the instance.

    Read more...

    Parameters

    • type: string
    • Optional event: any

    Returns boolean

focus

  • focus(): void
  • Brings focus to the widget's text input.

    Read more...

    Returns void

get

  • get<T>(propertyName: string): T
  • get(propertyName: string): any
  • Type parameters

    • T

    Parameters

    • propertyName: string

    Returns T

  • Parameters

    • propertyName: string

    Returns any

hasEventListener

  • hasEventListener(type: string): boolean
  • Indicates whether there is an event listener on the instance that matches the provided event name.

    Read more...

    Parameters

    • type: string

    Returns boolean

isFulfilled

  • isFulfilled(): boolean
  • isFulfilled() may be used to verify if creating an instance of the class is fulfilled (either resolved or rejected).

    Read more...

    Returns boolean

isRejected

  • isRejected(): boolean
  • isRejected() may be used to verify if creating an instance of the class is rejected.

    Read more...

    Returns boolean

isResolved

  • isResolved(): boolean
  • isResolved() may be used to verify if creating an instance of the class is resolved.

    Read more...

    Returns boolean

Protected notifyChange

  • notifyChange(propertyName: string): void
  • Parameters

    • propertyName: string

    Returns void

on

  • Parameters

    Returns IHandle

  • Parameters

    Returns IHandle

  • Parameters

    Returns IHandle

  • Parameters

    Returns IHandle

  • Parameters

    Returns IHandle

  • Parameters

    Returns IHandle

  • Parameters

    Returns IHandle

  • Parameters

    Returns IHandle

own

  • Widget teardown helper.

    Read more...

    Parameters

    Returns void

postInitialize

  • postInitialize(): void
  • This method is primarily used by developers when implementing custom widgets. Executes after widget is ready for rendering.

    Read more...

    Returns void

render

  • render(): any
  • This method is primarily used by developers when implementing custom widgets. It must be implemented by subclasses for rendering.

    Read more...

    Returns any

renderNow

  • renderNow(): void
  • Renders widget to the DOM immediately.

    Read more...

    Returns void

scheduleRender

  • scheduleRender(): void
  • This method is primarily used by developers when implementing custom widgets. Schedules widget rendering.

    Read more...

    Returns void

search

  • Depending on the sources specified, search() queries the feature layer(s) and/or performs address matching using any specified Locator(s) and returns any applicable results.

    Read more...

    Parameters

    Returns Promise<SearchResponse>

set

  • Type parameters

    • T

    Parameters

    • propertyName: string
    • value: T

    Returns widgetsSearch

  • Parameters

    Returns widgetsSearch

suggest

  • Performs a suggest() request on the active Locator.

    Read more...

    Parameters

    • Optional value: string

    Returns Promise<SuggestResponse>

watch

  • Parameters

    • path: string | string[]
    • callback: WatchCallback
    • Optional sync: boolean

    Returns WatchHandle

when

  • when(callback?: Function, errback?: Function): Promise<any>
  • when() may be leveraged once an instance of the class is created.

    Read more...

    Parameters

    • Optional callback: Function
    • Optional errback: Function

    Returns Promise<any>

Generated using TypeDoc