Interface UseSelectionResultExperimental

Result of useSelection.

interface UseSelectionResult {
    selected: readonly SourceQualifiedFeatureSelectionTarget[];
    clear(): void;
    deselect(target: SourceQualifiedFeatureSelectionTarget): void;
    isSelected(target: SourceQualifiedFeatureSelectionTarget): boolean;
    select(target: SourceQualifiedFeatureSelectionTarget, options?: {
        additive?: boolean;
    }): void;
    toggle(target: SourceQualifiedFeatureSelectionTarget, options?: {
        additive?: boolean;
    }): void;
}

Properties

Source-qualified selected features, in selection order.

Methods