import type { Command } from "../Command.js"; import { CommandRegistry } from "../CommandRegistry.js"; import type { Event } from "../Event.js"; import { EventRegistry } from "../EventRegistry.js"; import type { HasLayers, ModelRef } from "../common.js"; /** * Arguments for the "attribute-table" commands. Web only. */ export interface AttributeTableArgs extends HasLayers { /** * The attribute table component that will be targeted. If not specified, * all active attribute table components in the layout will be targeted. */ attributeTable?: ModelRef; } export declare class AttributeTableCommands extends CommandRegistry { protected readonly _prefix = "attribute-table"; /** * Displays the attribute table interface for a given layer or set of * layers. Each layer will be displayed in a separate tab. The supplied * layers will replace the layers currently displayed in the table. Web * only. * * **Example:** Displaying the attribute table for a layer. * * ``` * { * "layers": "item://layer-extension/your-layerExtension-id" * } * ``` * * **Example:** Displaying the attribute table for more than one layer. * * ``` * { * "layers": [ * "item://layer-extension/your-layerExtension-id", * "item://table-extension/your-tableExtension-id" * ] * } * ``` * * @webOnly */ get display(): Command; /** * Displays the attribute table interface for a given layer or set of * layers. Each layer will be displayed in a separate tab. The supplied * layers will be appended to the currently present layers in the attribute * table. If there are no layers in the table, then this command behaves as * if the "display" command was used. Web only. * * **Example:** Adding a layer to the attribute table. * * ``` * { * "layers": "item://layer-extension/your-layerExtension-id" * } * ``` * * **Example:** Adding more than one layer to the attribute table. * * ``` * { * "layers": [ * "item://layer-extension/your-layerExtension-id", * "item://table-extension/your-tableExtension-id" * ] * } * ``` * * @webOnly */ get add(): Command; /** * Remove one or more layers from the attribute table. Web only. * * **Example:** Removing a layer from the attribute table. * * ``` * { * "layers": "item://layer-extension/your-layerExtension-id" * } * ``` * * **Example:** Removing more than one layer from the attribute table. * * ``` * { * "layers": [ * "item://layer-extension/your-layerExtension-id", * "item://table-extension/your-tableExtension-id" * ] * } * ``` * * @webOnly */ get remove(): Command; } export declare class AttributeTableEvents extends EventRegistry { protected readonly _prefix = "attribute-table"; /** * Raised when features are displayed in the attribute table. Web only. * * @webOnly */ get displayed(): Event; }