Annotation Interface FileList
Renders a user-editable list of file (or directory) pickers
The annotated field must be String[] or a List<String> with each entry holding one path
This is the list counterpart of File
Rows can be added and removed and dragged into a different order
The property value is the list of paths in display order
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionLabel of the button that appends a new entrybooleanDeprecated.OneConfig auto-translates addText values that are translation keys so pass the key directlybooleanDeprecated.OneConfig auto-translates category values that are translation keys so pass the key directlybooleanDeprecated.OneConfig auto-translates description values that are translation keys so pass the key directlybooleanSelect directories instead of filesA human-readable description for thetypes()filter such as"Images"booleanintMaximum number of entries the user may add and0means unlimitedbooleanDeprecated.OneConfig auto-translates placeholder values that are translation keys so pass the key directlybooleanAllow the user to drag entries to reorder thembooleanDeprecated.translation keys will be translated by defaultbooleanDeprecated.OneConfig auto-translates title values that are translation keys so pass the key directlyString[]The file extensions to filter the dialog by such as{".png", ".jpg"}
-
Element Details
-
title
String title -
titleTranslation
Deprecated.OneConfig auto-translates title values that are translation keys so pass the key directly- Default:
false
-
description
String description- Default:
""
-
descriptionTranslation
Deprecated.OneConfig auto-translates description values that are translation keys so pass the key directly- Default:
false
-
icon
String icon- Default:
""
-
category
String category- Default:
"General"
-
categoryTranslation
Deprecated.OneConfig auto-translates category values that are translation keys so pass the key directly- Default:
false
-
subcategory
String subcategory- Default:
"General"
-
subcategoryTranslation
Deprecated.translation keys will be translated by default- Default:
false
-
types
String[] typesThe file extensions to filter the dialog by such as{".png", ".jpg"}Entries may be written as
".png"or"png"or"*.png"and they are all normalised to the*.extformTinyFdApiexpectsLeave empty to allow any file
- Default:
{}
-
filterName
String filterNameA human-readable description for thetypes()filter such as"Images"- Default:
""
-
directory
boolean directorySelect directories instead of filesWhen
truethetypes()value is ignored- Default:
false
-
placeholder
- Default:
"oneconfig.filepicker.placeholder"
-
placeholderTranslation
Deprecated.OneConfig auto-translates placeholder values that are translation keys so pass the key directly- Default:
false
-
maxEntries
int maxEntriesMaximum number of entries the user may add and0means unlimited- Default:
0
-
reorderable
boolean reorderableAllow the user to drag entries to reorder them- Default:
true
-
addText
String addTextLabel of the button that appends a new entry- Default:
"Add"
-
addTextTranslation
Deprecated.OneConfig auto-translates addText values that are translation keys so pass the key directly- Default:
false
-
fullWidth
boolean fullWidth- Default:
false
-