Protected ReadonlyhostProtected ReadonlyconfigProtected OptionalassetProtectedtriggerProtectedtriggerProtectedtriggerProtectedmenuProtectedfileProtectedselectedThe currently selected asset id, or an empty string when no image is set.
Sets the selected asset id without emitting a change event.
Releases all DOM/event resources owned by the control.
Provides or replaces the asset store used to enumerate and register images. Call this after construction when the store is not yet available, or when the active diagram changes.
Puts the trigger into a mixed-value state showing "Multiple" in muted italic. Pass false to clear the mixed state and restore normal display.
Protected ReadonlyonProtected ReadonlyonProtected ReadonlyonProtectedrebuildProtectedbuildProtectedbuildProtectedselectUpdates the selection, syncs the trigger, and optionally emits 'imagechange'.
ProtectedonHandles a local file being picked via the file input. Reads the file as a data URL, registers it in the store, then selects it.
ProtectedsyncUpdates the trigger button to reflect the current selection: shows a thumbnail when an image is selected, otherwise shows the placeholder label.
ProtectedopenProtectedcloseProtectedlooksProtectedlabelReturns a short human-readable label for an asset id. For data URIs it returns the id itself; for URLs it returns the URL.
A toolbar-ready dropdown control for selecting, browsing, and clearing image assets.
Dispatches an
'imagechange'CustomEvent whosedetailis the selected asset id string, or an empty string when the image is cleared.Example: