Meta Element
Functions
addClasses
Link copied to clipboard
addEventListener
Link copied to clipboard
addImmediateEventCode
Link copied to clipboard
open override fun addImmediateEventCode(eventName: String, jsCode: String)
Content copied to clipboard
assertPluginLoaded
Link copied to clipboard
Requires that a specific plugin or plugins be loaded by listing them in the
plugins
parameter of the Kweb constructor.bind
Link copied to clipboard
callJsFunction
Link copied to clipboard
callJsFunctionWithResult
Link copied to clipboard
suspend fun <O> callJsFunctionWithResult(js: String, outputMapper: (JsonElement) -> O, vararg args: JsonElement): O?
Content copied to clipboard
classes
Link copied to clipboard
deactivate
Link copied to clipboard
delete
Link copied to clipboard
fun delete()
Content copied to clipboard
Remove this element by calling removeChild on its parent element.
deleteIfExists
Link copied to clipboard
fun deleteIfExists()
Content copied to clipboard
Remove this element by calling removeChild on its parent element if it exists.
removeAttribute
Link copied to clipboard
removeChildAt
Link copied to clipboard
removeChildren
Link copied to clipboard
removeChildrenBetweenSpans
Link copied to clipboard
fun removeChildrenBetweenSpans(startSpanId: String, endSpanId: String): Element
Content copied to clipboard
removeClasses
Link copied to clipboard
fun removeClasses(vararg classes: String, onlyIf: Boolean = true): Element
Content copied to clipboard
A convenience function to remove one or more classes from an existing class attribute.
setAttribute
Link copied to clipboard
Set an attribute to the value in a KVal, if the value changes the attribute value will be updated automatically.
fun setAttribute(name: String, value: JsonPrimitive, namespace: String? = null): Element
Content copied to clipboard
setAttributeRaw
Link copied to clipboard
setAttributes
Link copied to clipboard
setClasses
Link copied to clipboard
spellcheck
Link copied to clipboard
Properties
browser
Link copied to clipboard
creator
Link copied to clipboard
flags
Link copied to clipboard
on
Link copied to clipboard
onImmediate
Link copied to clipboard
read
Link copied to clipboard
Obtain an ElementReader that can be used to read various properties of this element.
style
Link copied to clipboard
Some convenience functions for modifying an element's style attribute.