Skip to main content

<ui-file-save>

Renders a read-only path display next to a button. Clicking the button opens a native OS save-file dialog synchronously. If the user cancels, no event is emitted.

<ui-file-save id="output-file" label="Save..." filter="png,jpg" value=""></ui-file-save>

Attributes

AttributeRequiredDescription
idyesElement identifier
labelnoButton text (default "Save...")
filternoComma-separated file extensions to filter, e.g. "png,jpg" (default: all files)
valuenoInitial path shown in the display

Event

Emits input-changed with the chosen absolute file path as the value.