Class: FormElement
Extended by
CheckboxFormElementCheckboxesFormElementColorPickerFormElementDateFormElementDistanceFormElementEmptyFormElementFormElementWithOptionsIdFormElementImagesFormElementLocationFormElementModalFormElementPostFormElementRadioFormElementRegionsFormElementSaveFormElementSearchFormElementSelectFormElementStatusFormElementTextFormElementTextareaFormElementTitleFormElement
Implements
Constructors
Constructor
new FormElement(
options,
formBuilder,
external): FormElement;
Parameters
| Parameter | Type |
|---|---|
options | SchemaField |
formBuilder | FormBuilder |
external | { [key: string]: any; } |
Returns
FormElement
Methods
addSelect2()
addSelect2(): void;
Returns
void
destroy()
destroy(): void;
Returns
void
Implementation of
destroyEditor()
destroyEditor(): void;
Returns
void
Implementation of
FormElementInterface.destroyEditor
getData()
getData(): object;
Returns
object
name
name: string;
value
value: any;
Implementation of
getDataForTemplate()
getDataForTemplate(): object;
Returns
object
Implementation of
FormElementInterface.getDataForTemplate
getEditor()
getEditor(): HTMLElement;
Returns
HTMLElement
Implementation of
FormElementInterface.getEditor
getOptions()
getOptions(): Promise<FormElementOptions[]>;
Returns
Promise<FormElementOptions[]>
getSchema()
getSchema(): object;
Returns
object
Implementation of
FormElementInterface.getSchema
getSchemaFieldOptionsList()
getSchemaFieldOptionsList(): any[];
Returns
any[]
getValue()
getValue(): any;
Returns
any
Implementation of
hide()
hide(): void;
Returns
void
Implementation of
init()
init(): void;
Returns
void
Implementation of
initEditor()
initEditor(): void;
Returns
void
Implementation of
FormElementInterface.initEditor
redraw()
redraw(): void;
Returns
void
Implementation of
redrawEditor()
redrawEditor(): void;
Returns
void
setDomElements()
setDomElements(): void;
Returns
void
Implementation of
FormElementInterface.setDomElements
setEditorEventHandlers()
setEditorEventHandlers(): void;
Returns
void
Implementation of
FormElementInterface.setEditorEventHandlers
setEventHandlers()
setEventHandlers(): void;
Returns
void
Implementation of
FormElementInterface.setEventHandlers
setExternal()
setExternal(params): void;
Parameters
| Parameter | Type |
|---|---|
params | any |
Returns
void
Implementation of
FormElementInterface.setExternal
setInputValue()
setInputValue(value): void;
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
void
Implementation of
FormElementInterface.setInputValue
setOptions()
setOptions(options?): any[];
Parameters
| Parameter | Type |
|---|---|
options? | FormElementOptions[] |
Returns
any[]
setValue()
setValue(value, updateInput): void;
Parameters
| Parameter | Type | Default value |
|---|---|---|
value | any | undefined |
updateInput | boolean | true |
Returns
void
Implementation of
show()
show(): void;
Returns
void
Implementation of
triggerChanged()
triggerChanged(): void;
Returns
void
update()
update(prop, value): void;
Parameters
| Parameter | Type |
|---|---|
prop | any |
value | any |
Returns
void
Properties
auto_increment?
optional auto_increment: boolean;
db_type
db_type: string;
Implementation of
domElements
domElements: object;
Index Signature
[key: string]: HTMLElement
edit?
optional edit: HTMLElement;
main?
optional main: HTMLElement;
Implementation of
FormElementInterface.domElements
editMode
editMode: boolean;
Implementation of
events
events: Events;
Implementation of
external
external: object;
Index Signature
[key: string]: any
Implementation of
filtersMode
filtersMode: boolean;
Implementation of
FormElementInterface.filtersMode
formBuilder
formBuilder: FormBuilder;
Implementation of
FormElementInterface.formBuilder
help?
optional help: string;
Implementation of
hiddenOnTable?
optional hiddenOnTable: boolean;
inputs
inputs: object;
Index Signature
[key: string]:
| HTMLSelectElement
| HTMLInputElement
| HTMLTextAreaElement
| HTMLButtonElement
| RadioNodeList
Implementation of
label
label: string;
Implementation of
mapIsGeo
mapIsGeo: boolean;
Implementation of
name
name: string;
Implementation of
nameChanged
nameChanged: boolean;
Implementation of
FormElementInterface.nameChanged
namespace
namespace: string;
Implementation of
FormElementInterface.namespace
not_null?
optional not_null: boolean;
options?
optional options: FormElementOptions[];
Implementation of
optionsDict?
optional optionsDict: object;
Index Signature
[key: string]: any
Implementation of
FormElementInterface.optionsDict
parameterName?
optional parameterName: string;
Implementation of
FormElementInterface.parameterName
parameterNameShort?
optional parameterNameShort: string;
Implementation of
FormElementInterface.parameterNameShort
placeholder?
optional placeholder: string;
Implementation of
FormElementInterface.placeholder
protected?
optional protected: boolean;
Implementation of
FormElementInterface.protected
readonly?
optional readonly: boolean;
Implementation of
renamable?
optional renamable: boolean;
searchable?
optional searchable: boolean;
Implementation of
FormElementInterface.searchable
showIf?
optional showIf: Record<string, any>;
templates
templates: object;
Index Signature
[key: string]: (data) => string
edit()?
optional edit: (data) => string;
Parameters
| Parameter | Type |
|---|---|
data | Record<string, any> |
Returns
string
main()?
optional main: (data) => string;
Parameters
| Parameter | Type |
|---|---|
data | Record<string, any> |
Returns
string
Implementation of
FormElementInterface.templates
type
type: string;
Implementation of
typeLabel
typeLabel: string;
value
value: any;
Implementation of
visible?
optional visible: boolean;