EFilePicker File picker
Examples
Open a file
Save file
Select multiple files
Filter file types
Disable selection
Properties
accessibleNamestringName read by assistive technologies; provide a readable name for controls without text.
placeholderTextappendComponentComponentComponent slot for custom input append area or list end; null uses the default content. See this page’s examples for delegate context.
Show default value
ETextButton { minHeight: 0 implicitWidth: 34 iconSource: EIcons.ELLIPSIS objectName: "filePickerBrowse" height: control.height accessibleName: EControlConfig.textFor(control, "PickerBrowse", ELocale.texts) onClicked: control.open() }clearIconintIcon used by the component.
EIcons.*
0 (no icon)
EIcons.CIRCLE_XMARKclearableboolShow a clear action; ratings may be cleared by clicking the current score again.
truedialogTitlestringNative dialog title and input placeholder.
Show default value
EControlConfig.textFor(control, mode === "save" ? "PickerSaveFile" : mode === "folder" ? "PickerSelectFolder" : "SelectFiles", ELocale.texts)enabledboolAllow interaction; false disables the control.
truefolderurlInitial folder URL for the dialog.
""fontfontFont settings for the family, size and text style.
Common fields:
family, pixelSize, pointSize
bold, italic, weight
underline, strikeout
letterSpacing, wordSpacing
application fontformattervarFormatting callback converting a value to displayed text.
nullheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightmodestringSelection mode: open an existing file, save to a location, or choose a folder.
open / save / folder
"open"multipleboolAllow multiple files in open mode; save and folder modes remain single selection.
falsenameFiltersvarNative file dialog filters, such as Text files (*.txt).
["All files (*)"]parservarInput parser converting displayed text to the underlying value.
nullpasswordVisibleboolDisplay the password as plain text.
falseprefixComponentComponentComponent slot for custom prefix; null uses the default content. See this page’s examples for delegate context.
nullprefixIconintIcon used by the component.
EIcons.*
0 (no icon)
Inherited defaultprependComponentComponentComponent slot for custom input prepend area; null uses the default content. See this page’s examples for delegate context.
nullshowPasswordboolEnable password entry and visibility switching.
falseshowWordLimitboolShow the current character count and length limit.
falsesizeintText size.
EStyle.SmallEStyle.MediumEStyle.Large
EControlConfig.sizeFor(control)styleTypeintSemantic color style.
EStyle.DefaultEStyle.PrimaryEStyle.SuccessEStyle.InfoEStyle.WarningEStyle.Danger
EStyle.PrimarysuffixComponentComponentComponent slot for custom suffix; null uses the default content. See this page’s examples for delegate context.
nullsuffixIconintIcon used by the component.
EIcons.*
0 (no icon)
Inherited defaulttextColorcolorText color.
Show default value
EPaletteManager.StatePalette.defaultTextColor( EPaletteManager.createStateObject(this, EStyle.TextColor) .setDark(ETheme.dark) .setEnabled(control.enabled) )validateEventboolRequest enclosing-form validation when the value changes.
truevalidationMessagestringValidation message or externally supplied error text.
""validationStateintInput validation state.
EValidationState.NoneEValidationState.SuccessEValidationState.WarningEValidationState.Error
EValidationState.NonevaluevarCurrent selection: a file URL, or an array of file URLs in multiple mode.
""visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthdialogvarRead onlyLazily created native dialog; null before creation.
Fields:
alignCenter, draggable, overflow
Computed at runtimehasValidationErrorboolRead onlyWhether validation state is Error.
Computed at runtimelastErrorstringRead onlyReason code of the last rejected selection; empty after success or clearing.
Computed at runtimepopupVisibleboolRead onlyWhether the native selection dialog is visible.
Computed at runtimeselectedUrlsvarRead onlyCurrent selection normalized to an array of URLs.
Computed at runtimewordCountintRead onlyCurrent input character count.
Computed at runtimeshowPasswordStrengthboolShow strength and rule checks while a password input is focused.
falsepasswordRulesvarPassword rules with label and minLength or pattern.
Show default value
[ {label: ELocale.texts.PasswordLength, minLength: 8}, {label: ELocale.texts.PasswordUppercase, pattern: /[A-Z]/}, {label: ELocale.texts.PasswordLowercase, pattern: /[a-z]/}, {label: ELocale.texts.PasswordNumber, pattern: /[0-9]/}, {label: ELocale.texts.PasswordSymbol, pattern: /[^A-Za-z0-9]/} ]passwordStrengthrealRead onlyFraction of passed password rules, from 0 to 1.
Show default value
passwordRequirements.length ? passwordRequirements.filter(function(rule) { return rule.passed }).length / passwordRequirements.length : 0passwordRequirementsvarRead onlyRule results with label and passed fields.
Show default value
Array.isArray(passwordRules) ? passwordRules.map(function(rule) { let passed = false try { if (rule && rule.minLength !== undefined) passed = text.length >= Number(rule.minLength) else if (rule && rule.pattern) { const expression = new RegExp(rule.pattern) passed = expression.test(text) } } catch (error) { passed = false } return {label: rule && rule.label ? String(rule.label) : "", passed: passed} }) : []Signals
cleared()Emitted after the contents are cleared with the clear action.
formatFailed(string message)Emitted when input formatting fails; message explains why.
rejected()Emitted when the user cancels file selection.
picked(var value)Emitted after choosing a value; value is the chosen value.
selectionRejected(string reason)Emitted when selected paths violate the constraints; reason explains why.
Methods
close()Close the component panel or popup.
clear()Clear the current contents or selection.
open()Open the component panel or popup.