Constructor
new Fields(data)
Parameters:
Name | Type | Description |
---|---|---|
data |
iFieldsConstructor |
Object with parameters. |
Extends
Methods
children()
Children See Box#children
comment(value) → {string|undefined}
Get/Set comment.
Parameters:
Name | Type | Description |
---|---|---|
value |
string | undefined |
String of comment |
- Overrides:
- Source:
data()
See Box#data
disabled(value) → {boolean|undefined}
Value "true" disable the Field.
Parameters:
Name | Type | Description |
---|---|---|
value |
boolean | undefined |
Boolean value disable or enable the Field |
- Overrides:
- Source:
dnd(If)
Drag and drop (dnd)
Parameters:
Name | Type | Description |
---|---|---|
If |
boolean |
true, elements possible to moved by mouse |
dndRemove(If)
Remove element by Drag and drop (dnd)
Parameters:
Name | Type | Description |
---|---|---|
If |
boolean |
true, elements possible to remove |
error(value) → {string|undefined}
Get/Set value of error message.
Parameters:
Name | Type | Description |
---|---|---|
value |
string | undefined |
String of placeholder |
- Overrides:
- Source:
find()
See Box#find
form()
See Box#form
get()
See Box#get
last()
See Box#last
layout()
See Box#layout
length()
See Box#length
move()
See Box#move
name(value) → {string|undefined}
Get/Set name of Field-element. Methods Box#data
and Box#form
looking for Fields
with defined this property only.
Parameters:
Name | Type | Description |
---|---|---|
value |
string | undefined |
String of placeholder |
- Overrides:
- Source:
placeholder(value) → {string|undefined}
Get/Set placeholder of element.
Parameters:
Name | Type | Description |
---|---|---|
value |
string | undefined |
String of placeholder |
- Overrides:
- Source:
pop()
See Box#pop
popup()
See Box#popup
push()
See Box#push
remove()
See Box#remove
shift()
See Box#shift
status(value) → {string|undefined}
Get/Set particular style of element.
Parameters:
Name | Type | Description |
---|---|---|
value |
string | undefined |
Available statuses: 'ok', 'error', 'accent', 'warn' |
- Overrides:
- Source:
title(value) → {string|undefined}
Get/Set title of element.
Parameters:
Name | Type | Description |
---|---|---|
value |
string | undefined |
String of title |
- Overrides:
- Source:
unshift()
See Box#unshift
valid() → {boolean}
Value "true" if value of field valid.
- Overrides:
- Source:
validator() → {iValidatorClass}
method .valid() use validator if he is defined. The logic of validation inside iValidation class.
- Overrides:
- Source:
value(value) → {string|undefined}
Get/Set value of Field-element.
Parameters:
Name | Type | Description |
---|---|---|
value |
string | undefined |
String of placeholder |
- Overrides:
- Source: