Methods
(inner) createPreGeneratedElements() → {void}
Creates the pre-generated elements
- Source:
Returns:
- Type
- void
(inner) initElement(el, elType) → {void}
Initializes a custom element
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | elment |
elType |
string | type of the custom element |
- Source:
Returns:
- Type
- void
(inner) initElements(parent) → {void}
Initializes all elements with data-is attribute
We do not use the custom element is="" feature - safari does not support it
Parameters:
Name | Type | Description |
---|---|---|
parent |
Element | root element to find custom elements |
- Source:
Returns:
- Type
- void
(inner) setInputClear(el) → {void}
Creates an input element with clear button
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | element |
- Source:
Returns:
- Type
- void
(inner) setInputPassword(el) → {void}
Creates an password input element with show button
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | element |
- Source:
Returns:
- Type
- void
(inner) setInputReset(el) → {void}
Creates an input element with reset to default button
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | element |
- Source:
Returns:
- Type
- void
(inner) setSelectNew(el) → {void}
Creates a combined select + input element from an input element
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | element |
- Source:
Returns:
- Type
- void
(inner) setSelectSearch(el) → {void}
Creates a searchable combined select + input element from an input element
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | element |
- Source:
Returns:
- Type
- void