Type Definitions
-
ColumnDefinitionobject
-
Properties:
Name Type Description headerstring The header of the column
dataIndexstring The property of the data object where the data for this column can be found,
minWidthnumber The minimal width of the column,
maxWidthnumber The maximum width of the column
-
dialogActionCallback(selectedIds, documentsContext)
-
Dialog action function
Name Type Description selectedIdsArray.<string> The date as string of the clicked item
documentsContextdocuments.sdk.DocumentsContext The DocumentsContext instance
-
doubleClickFunction(event, dateString, documentsContext)
-
Double click function
Name Type Description eventobject Event
dateStringstring The date as string of the clicked item
documentsContextdocuments.sdk.DocumentsContext The DocumentsContext instance
-
DropzoneValueobject
-
Properties:
Name Type Description fileNamestring filename of the uploaded file
accessTokenstring token to access the file in the portal script
-
failedValidationHandlerFunction(validationResult)
-
The failed validation handler function
Name Type Description validationResultobject the object containing all informations about executed validatorFunction
Name Type Description resultObjectobject object containing one validation result for each field of the form
formJqueryObjectobject the jquery object of the entire form
documentsContextdocuments.sdk.DocumentsContext a reference to the documents.sdk.DocumentsContext
-
Fieldobject
-
The field object used by the validator function
Properties:
Name Type Description idstring input field id
typestring type of the input field
valuestring value of the input field
-
FullCalendarEventsobject
-
See the fullcalendar documentation for details https://fullcalendar.io/docs/event_data/Event_Object/
Properties:
Name Type Argument Description idstring | number A id for the event
startstring The date/time an event begins (A Moment-ish input, like an ISO8601 string).
endstring <optional>
The exclusive date/time an event ends (A Moment-ish input, like an ISO8601 string).
titlestring The text on an event's element
-
FullCalendarSourceobject
-
See the fullcalendar documentation for details https://fullcalendar.io/docs/event_data/Event_Source_Object/
Theeventproperty is filled by the definedeventLoaderProperties:
Name Type Description idstring A id for this event source
colorstring Sets every Event Object's color for this source.
textColorstring Sets every Event Object's textColor for this source.
-
GadgetConfigobject
-
Properties:
Name Type Description gadgetIdstring The unique id of the gadget
gadgetScriptstring The script where the gadgetAction is located in (must begin with "Gadget")
gadgetActionstring The name of the gadgetAction to be executed
gadgetParamsobject The params to be sent to the gadget
-
GadgetSettingobject
-
Properties:
Name Type Argument Description namestring The techincal name of the setting
defstring | number The default value to be used if no value is specified. If a number is specified the default value will be the value from the enum array with the given index.
typestring The type of the setting. (
string|boolean|number)enumArray.<string> | array.<Array.<string>> An Array of values i.e. ["A", "B"] that the user can choose from. Or an Array of key value pairs i.e. [[0, "A"], [1, "B"]]. The values must be of the type defined in type.
descstring <optional>
The description of this setting
-
TableDataColumnobject
-
Properties:
Name Type Default Description keystring column key (must match a database column name)
labelstring column key
dataTypestring STRING data type of this column (STRING, NUMBER, CUSTOM or CHECKBOX)
searchModestring default define how the search on this colum is processed. Possible values: default (columnName LIKE '%EXPR%'), exact (columnName = 'EXPR'), start (columnName LIKE 'EXPR%'), end (columnName LIKE '%EXPR')
searchableboolean true set to false to exclude this column from search
searchCaseSensitiveboolean false search this column case sensitive (database must support this)
-
TableDataMappingobject
-
Properties:
Name Type Description columnNamestring database column containing the value for the field
fieldNamestring the technical name of the field to fill with the given value
valueCallbackfunction optional callback function to manipulate the value from the database colum. function valueCallback(value, documentsContext, item, mappingConfig) {}
-
validationResultobject
-
The validation result
Properties:
Name Type Argument Description fieldField <optional>
information of the validated field (not available if result of otris.gadget.gui.Form#setFormValidator)
successfulboolean whether the validation was successful
errorMessagestring the error message displayed on failed validation
optionsobject <optional>
optional properties
-
validatorFunction(field, gadgetForm, options){validationResult}
-
The validator function
The field object contains a single field if this validator function is used by otris.gadget.gui.Element#setValidator
The field object contains multiple fields if this validator function is used by otris.gadget.gui.Form#setFormValidatorName Type Description fieldField | object single input field information or object containing mutliple field informations
gadgetFormGadgetForm reference to the GadgetForm
optionsobject options
Name Type Description documentsContextdocuments.sdk.DocumentsContext reference to the documents.sdk.DocumentsContext
Returns:
Type Description validationResult - validation result should be generated via GadgetForm