REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 3.37 KB
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/backend/decorators/property/property-options.interface.ts
Text
Base64
import { PropertyType } from '../../adapters/property/base-property.js' /** * Options passed to a given property */ export default interface PropertyOptions { /** * if given property should be visible. It can be either boolean for all possible views, or * you can verify which view in particular should be hidden/shown. */ isVisible?: boolean | { show?: boolean; list?: boolean; edit?: boolean; filter?: boolean; }; /** * List of possible overridden components for given property. */ components?: { show?: string; list?: string; edit?: string; filter?: string; }; /** * Property type */ type?: PropertyType; /** * Indicates if property should be treated as an ID */ isId?: boolean; /** * One of given property should be treated as an "title property". Title property is "clickable" * when user sees the record in a list or show views. * * @deprecated Use ResourceOptions#titleProperty */ isTitle?: boolean; /** * Indicates if given property should be treated as array of elements. * @new In version 3.3 */ isArray?: boolean; /** * Indicates if array elements should be draggable when editing. * It is only usable if the property is an array. * @new In version 3.5 */ isDraggable?: boolean; /** * position of the field in a list, * title field (isTitle) gets position -1 by default other * fields gets position = 100. */ position?: number; /** * If options should be limited to finite set. After setting this * in the UI you will see select box instead of the input */ availableValues?: Array<{ value: string | number; label?: string; }>; /** * Custom properties passed to the frontend in {@link PropertyJSON} */ custom?: { [key: string]: any; }; /** * Additional props passed to the actual React component rendering given property in Edit * component. * * @new in version 3.3 */ props?: { [key: string]: any; }; /** * Whether given property should be editable or not. */ isDisabled?: boolean; /** * Whether given property should be sortable on list or not. */ isSortable?: boolean; /** * Whether given property should be marked as required. */ isRequired?: boolean; /** * Whether label should be hidden - false by default */ hideLabel?: boolean; /** * Name of the resource to which this property should be a reference. * If set - {@link PropertyOptions.type} always returns `reference` * @new In version 3.3 */ reference?: string; /** * Description of field. Shown as hoverable hint after label. * * To use translations provide it in locale with specified options key from resource * @example * ```js * new AdminJS({ * resources: [ * { * resource: myResource, * options: { * properties: { * myAwesomeProperty: { * description: "Plane description" || "awesomeHint", // <- message key in locale * }, * }, * }, * }, * ], * locale: { * translations: { * resources: { * myResource: { * messages: { * awesomeHint: "Locale description", * }, * }, * }, * }, * }, * }); * ``` * @new In version 5.6 */ description?: string; }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
utils
DIR
-
drwxr-xr-x
2026-02-28 00:32:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.ts
190 B
lrw-r--r--
2026-02-28 00:32:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
property-decorator.spec.ts
6.75 KB
lrw-r--r--
2026-02-28 00:32:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
property-decorator.ts
8.31 KB
lrw-r--r--
2026-02-28 00:32:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
property-options.interface.ts
3.37 KB
lrw-r--r--
2026-02-28 00:32:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).