Auto-generated admin panel for node.js with react BaseProperty

Class

BaseProperty(options)

Represents Resource Property

Constructor

# new BaseProperty(options)

Parameters:
Name Type Attributes Default Description
options object
path string

property path: usually it its key but when property is for an object the path can be divided to parts by dots: i.e. 'address.street'

type PropertyType <optional>
'string'
isId boolean <optional>
false

true when field should be treated as an ID

isSortable boolean <optional>
true

if property should be sortable

View Source adminjs/src/backend/adapters/property/base-property.ts, line 26

Classes

BaseProperty

Methods

Type Definitions

object

# PropertyType

Properties:
Name Type Description
string string

default property type

float string

type of floating point numbers

number string

regular number

boolean string

boolean value

date string

date

datetime string

date with time

mixed string

type representing an object

reference string

many to one reference

richtext string

wysiwig editor

textarea string

resizable textarea input

password string

password field

View Source adminjs/src/backend/adapters/property/base-property.ts, line 3