Annotation Interface File
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDeprecated.booleanDeprecated.OneConfig auto-translates category values that are translation keys so pass the key directlyDeprecated.booleanDeprecated.OneConfig auto-translates description values that are translation keys so pass the key directlybooleanSelect a directory instead of a fileA human-readable description for thetypes()filter such as"Images"Deprecated.booleanDeprecated.OneConfig auto-translates placeholder values that are translation keys so pass the key directlyDeprecated.booleanDeprecated.translation keys will be translated by defaultDeprecated.booleanDeprecated.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
-
titleKey
Deprecated.- Default:
""
-
description
String description- Default:
""
-
descriptionTranslation
Deprecated.OneConfig auto-translates description values that are translation keys so pass the key directly- Default:
false
-
descriptionKey
Deprecated.- Default:
""
-
icon
String icon- Default:
""
-
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*.extform tinyfd expectsLeave empty to allow any file
- Default:
{}
-
filterName
String filterNameA human-readable description for thetypes()filter such as"Images"- Default:
""
-
directory
boolean directorySelect a directory instead of a fileWhen
truethetypes()value is ignored- Default:
false
-
category
String category- Default:
"General"
-
categoryKey
Deprecated.- Default:
""
-
categoryTranslation
Deprecated.OneConfig auto-translates category values that are translation keys so pass the key directly- Default:
false
-
subcategory
String subcategory- Default:
"General"
-
subcategoryKey
Deprecated.- Default:
""
-
subcategoryTranslation
Deprecated.translation keys will be translated by default- 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
-
placeholderKey
Deprecated.- Default:
""
-