Package-level declarations

The top-level Kweb classes along with much of the Kweb DSL reside in this package.

Types

Link copied to clipboard
open class AElement(parent: Element, val preventDefault: Boolean = true) : Element
Link copied to clipboard
open class AttributeBuilder : MutableMap<String, JsonPrimitive>
Link copied to clipboard
Link copied to clipboard
open class BrElement(parent: Element) : Element
Link copied to clipboard
open class ButtonElement(val wrapped: Element) : Element
Link copied to clipboard
Link copied to clipboard
open class CanvasElement(parent: Element) : Element
Link copied to clipboard
typealias Cleaner = () -> Unit
Link copied to clipboard
class CookieReceiver(val receiver: WebBrowser)
Link copied to clipboard
data class DebugInfo(val js: String, val action: String, val throwable: Throwable)
Link copied to clipboard
open class DivElement(parent: Element) : Element
Link copied to clipboard
open class Element(val browser: WebBrowser, val creator: ElementCreator<*>?, val tag: String? = null, var id: String) : EventGenerator<Element>

Represents a DOM Element in a remote browser window.

Link copied to clipboard
open class ElementCreator<out PARENT_TYPE : Element>(val element: PARENT_TYPE, val parentCreator: ElementCreator<*>? = element.creator, val insertBefore: String? = null)

Responsible for creating new DOM elements, and cleaning up Cleaners, KVars, and other related objects when DOM elements are deleted.

Link copied to clipboard
open class FooterElement(parent: Element) : Element
Link copied to clipboard
open class FormElement(parent: Element) : Element
Link copied to clipboard
open class H1Element(parent: Element) : Element
Link copied to clipboard
open class H2Element(parent: Element) : Element
Link copied to clipboard
open class H3Element(parent: Element) : Element
Link copied to clipboard
open class H4Element(parent: Element) : Element
Link copied to clipboard
open class H5Element(parent: Element) : Element
Link copied to clipboard
open class IElement(parent: Element) : Element
Link copied to clipboard
open class ImageElement(parent: Element) : Element
Link copied to clipboard
open class InputElement(val element: Element, val initialValue: String? = null) : ValueElement
Link copied to clipboard
Link copied to clipboard
class Kweb : Closeable
Link copied to clipboard
open class LabelElement(wrapped: Element) : Element
Link copied to clipboard
open class LIElement(parent: Element) : Element
Link copied to clipboard
class LinkElement(parent: Element) : Element
Link copied to clipboard
Link copied to clipboard
open class MainElement(parent: Element) : Element
Link copied to clipboard
open class MetaElement(parent: Element) : Element
Link copied to clipboard
open class NavElement(parent: Element) : Element
Link copied to clipboard
open class OLElement(parent: Element) : Element
Link copied to clipboard
open class OptionElement(parent: Element) : Element
Link copied to clipboard
open class PElement(parent: Element) : Element
Link copied to clipboard
enum Scheme : Enum<Scheme>
Link copied to clipboard
open class SectionElement(parent: Element) : Element
Link copied to clipboard
class SelectElement(parent: Element, val initialValue: String? = null) : ValueElement

Link copied to clipboard
fun Map<String, JsonPrimitive>.set(key: String, value: JsonPrimitive): Map<String, JsonPrimitive>
Link copied to clipboard
fun ElementCreator<Element>.span(attributes: Map<String, JsonPrimitive> = emptyMap(), new: ElementCreator<SpanElement>.(SpanElement) -> Unit? = null): SpanElement
Link copied to clipboard
fun <T : Any> KVal<List<T>>.subList(fromIx: Int, toIx: Int): KVal<List<T>>
fun <T : Any> KVar<List<T>>.subList(fromIx: Int, toIx: Int): KVar<List<T>>
Link copied to clipboard
fun ElementCreator<Element>.table(attributes: Map<String, JsonPrimitive> = emptyMap(), new: ElementCreator<TableElement>.(TableElement) -> Unit? = null): TableElement
Link copied to clipboard
fun ElementCreator<Element>.tbody(attributes: Map<String, JsonPrimitive> = emptyMap(), new: ElementCreator<TbodyElement>.(TbodyElement) -> Unit? = null): TbodyElement
Link copied to clipboard
fun ElementCreator<Element>.td(attributes: Map<String, JsonPrimitive> = emptyMap(), new: ElementCreator<TdElement>.(TdElement) -> Unit? = null): TdElement
Link copied to clipboard
fun ElementCreator<Element>.textArea(attributes: Map<String, JsonPrimitive> = emptyMap(), new: ElementCreator<TextAreaElement>.(TextAreaElement) -> Unit? = null): TextAreaElement

https://www.w3schools.com/tags/tag_textarea.asp

fun ElementCreator<Element>.textArea(attributes: Map<String, JsonPrimitive> = emptyMap(), rows: Int? = null, cols: Int? = null, required: Boolean? = null, initialValue: String? = null, new: ElementCreator<TextAreaElement>.(TextAreaElement) -> Unit? = null): TextAreaElement
Link copied to clipboard
fun ElementCreator<Element>.tfoot(attributes: Map<String, JsonPrimitive> = emptyMap(), new: ElementCreator<TfootElement>.(TfootElement) -> Unit? = null): TfootElement
Link copied to clipboard
fun ElementCreator<Element>.th(attributes: Map<String, JsonPrimitive> = emptyMap(), new: ElementCreator<ThElement>.(ThElement) -> Unit? = null): ThElement
Link copied to clipboard
fun ElementCreator<Element>.thead(attributes: Map<String, JsonPrimitive> = emptyMap(), new: ElementCreator<TheadElement>.(TheadElement) -> Unit? = null): TheadElement
Link copied to clipboard
fun ElementCreator<HeadElement>.title(attributes: Map<String, JsonPrimitive> = emptyMap(), new: ElementCreator<TitleElement>.(TitleElement) -> Unit? = null): TitleElement
Link copied to clipboard
Link copied to clipboard
fun ElementCreator<Element>.tr(attributes: Map<String, JsonPrimitive> = emptyMap(), new: ElementCreator<TrElement>.(TrElement) -> Unit? = null): TrElement
Link copied to clipboard
fun ElementCreator<Element>.ul(attributes: Map<String, JsonPrimitive> = emptyMap(), new: ElementCreator<ULElement>.(ULElement) -> Unit? = null): ULElement
Link copied to clipboard
fun ElementCreator<HeadElement>.viewport(attributes: Map<String, JsonPrimitive> = emptyMap(), width: ViewportWidth = ViewportWidth.DeviceWidth, height: ViewportHeight = ViewportHeight.DeviceHeight, initialScale: Double = 1.0, minimumScale: Double = 0.1, maximumScale: Double = 10.0, userScalable: UserScalable = UserScalable.Yes, new: ElementCreator<MetaElement>.(MetaElement) -> Unit? = null): MetaElement

Viewport and related classes *