Constructor
new QueryDataBlock(data)
Create QueryDataBlock.
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
Object | Defines QueryItem's data (data for a specific form section).
Properties
|
- Source:
Members
after
Sets dom which follows the query once rendered.
- Source:
after
Get after section dom.
- Source:
baseForm
Set baseForm DOM element.
- Source:
baseForm
Get this query item's base form DOM object.
- Source:
before
Sets dom which preceeds the query once rendered.
- Source:
before
Get before section dom.
- Source:
css
Get this query item's css.
- Source:
direction
Get this query item's direction. Applicable only for draggable queries.
- Source:
error
Get this query item's error.
- Source:
id
Get this query item's id.
- Source:
index
Set index.
- Source:
index
Get this query item's index.
- Source:
items
Get this query item's items.
- Source:
items
Takes an array of items (optionally) and generates an Array of Objects, each Object for one item (InputItemWrapper).
- Source:
- See:
-
- constructor for more information.
label
Get this query item's label.
- Source:
options
Takes an array of options (optionally) and generates an Array of Objects, each Object for one option (OptionItem).
- Source:
- See:
-
- constructor for more information.
options
Get this query item's options.
- Source:
optionsOrder
Get this query item's options order.
- Source:
properInputType
Get proper input type, filtered to a know types only in case unsupported type has been passed.
- Source:
required
Find out whether this query fille-in valueis required or if it is optional.
- Source:
sectionContainer
Set sectionContainer DOM element.
- Source:
sectionContainer
Get this query item's section DOM container.
- Source:
subtitle
Get this query item's subtitle.
- Source:
title
Get this query item's title.
- Source:
type
Get this query item's type.
- Source:
Methods
createCustomDomContent(elementopt, customClassopt) → {dom}
Returns a DOM with "dt-custom-form-content" class name, accepts HTML/text strings as well as DOM structures.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
element |
dom | string |
<optional> |
A dom object or a string - as text or HTML. |
customClass |
string |
<optional> |
Custom class name to be added to the final element. |
- Source:
Returns:
- An updated or newly created DOM object.
- Type
- dom
createUniqueId(idopt)
Creates a unique id for this QuerydataBlock, based on an uniqu InstanceID.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
id |
string |
<optional> |
A string to be connected with the unique instance number to create a unique id. |
- Source:
setProperInputType() → {QueryDataBlock}
Filters all unsupported input types, picks a default if a wrong input type has been passed.
- Source:
Returns:
- Returns this QueryDataBlock instance.
- Type
- QueryDataBlock