ContentArea (extends KompElement)
A responsive input that resizes to it's content, and adheres to explicit sizing.
Example
Syntax
new ContentArea({
value: "Initial Value"
})
Options
types | description | arguments | |
---|---|---|---|
content
|
String, HTMLElement, Array, Object |
content to append to element. Passed to Dolla's |
|
value
|
similar to input.value |
||
dump
|
Function |
transform textContent to value on change |
value |
load
|
Function |
transform value for input's content |
value |
onchange
|
Function |
callback called when change event is fired |
value, valueWas |
Events
arguments | description | |
---|---|---|
beforeRemove
|
[] |
called before element is removed |
afterRemove
|
[] |
called after element is removed |
beforeConnect
|
[] |
called before element is connected |
afterConnect
|
[] |
called before element is connected |
beforeDisconnect
|
[] |
called before element is disconnected |
afterDisconnect
|
[] |
called before element is disconnected |
change
|
newValue, oldValue |
fired on focusout when value has changed |