@arcgis/map-components
Version:
ArcGIS Map Components
30 lines (28 loc) • 1.54 kB
TypeScript
/// <reference types="../../index.d.ts" />
import { default as SearchViewModel } from '@arcgis/core/widgets/Search/SearchViewModel.js';
import { ArcgisSearch } from '../arcgis-search/customElement.js';
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
/**
* The Search Result Renderer renders the Search component results and allows expanding a DOM element to show alternative matches.
* These alternative matches appear in the Show more results link.
*
* [Read more...](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-search-result-renderer/)
*/
export declare class ArcgisSearchResultRenderer extends LitElement {
messages?: ArcgisSearch["messages"];
/**
* If true, the component will not be destroyed automatically when it is
* disconnected from the document. This is useful when you want to move the
* component to a different place on the page, or temporarily hide it. If this
* is set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-search-result-renderer/#destroy) method when you are done to
* prevent memory leaks.
*
* @default false
*/
autoDestroyDisabled: boolean;
viewModel?: SearchViewModel;
/** Permanently destroy the component. */
destroy(): Promise<void>;
/** Emitted when the component associated with a map or scene view is is ready to be interacted with. */
readonly arcgisReady: TargetedEvent<this, void>;
}