UNPKG

@vertigis/viewer-spec

Version:

VertiGIS Viewer Specification

28 lines (27 loc) 1.08 kB
import type { Action } from "@vertigis/arcgis-extensions/support/Action"; import type { FeatureDetailsModelProperties as CommonFeatureDetailsModelProperties } from "../common/FeatureDetailsModelProperties.js"; import type { ComponentModelProperties } from "./ComponentModelProperties.js"; /** * Properties for a feature-summary component. */ export interface FeatureSummaryModelProperties extends CommonFeatureDetailsModelProperties, ComponentModelProperties { /** * A command or set of commands to execute when a feature is added into the * collection. */ onFeatureAdd?: Action; /** * A command or set of commands to execute when a feature is removed from * the collection. */ onFeatureRemove?: Action; /** * A command or set of commands to execute when the summary is clicked. */ onFeatureClick?: Action; /** * A command or set of commands to execute when a related record is clicked. * The related Feature is passed in as the argument for the command(s). */ onRelatedRecordClick?: Action; }