Function: DayOfWeekColumn(config)
A Column for a day of week field. Stores a single day as a number (1-7) where 1=Monday, 2=Tuesday, ..., 7=Sunday.
Usage
const dayOfWeek = DayOfWeekColumn({
label: 'Day of Week',
default: 1, // Monday
})
const meetingDay = DayOfWeekColumn({
label: 'Meeting Day',
default: 5, // Friday
})
Parameters
config
C & DayOfWeekColumnType<Type, Default>
Properties:
-
active (optional):
booleanIndicates whether to display the field in list and forms -
array (optional):
booleanCreates another table to store the info that will be captured by this field -
attributes (optional):
Record<string, string | number | boolean>Pairs of any supported dictionary attributes (sys_schema_attribute) -
audit (optional):
booleanIndicates whether to track the creation, update, and deletion of all records in the table. -
default (optional):
Default | stringDefault value of the field when creating a record -
dependent (optional):
stringlimit the values available to select based on the value of the dependent field -
elementReference (optional):
booleanIndicates if the value of this field connotes the "element type" -
functionDefinition (optional):
stringDefinition of a function that the field performs -
help (optional):
stringHelp information for the field -
hint (optional):
stringDescribes field in more verbose form -
label (optional):
string | Documentation[]Unique label for the column that appears on list headers and form fields -
mandatory (optional):
booleanIndicates whether the field must contain a value to save a record -
maxLength (optional):
number | stringMaximum length of the field value -
plural (optional):
stringPlural form of the field name -
primary (optional):
booleanIndicates the primary key for a table -
readOnly (optional):
booleanIndicates whether you can edit the field value -
readOnlyOption (optional):
readOnlyOptionTypeSpecifies the read-only behavior for the field -
spellCheck (optional):
booleanEnables spell check for this field -
tableReference (optional):
booleanIndicates if the value of this field is a reference to another table in the schema -
textIndex (optional):
booleanEnables a natural language search on this field -
unique (optional):
booleanCreates a unique index on this field -
widget (optional):
stringStyle for the element type such as "radio" -
xmlView (optional):
booleanDisplays the field value as XML