Package kweb

Types

AElement
Link copied to clipboard
open class AElement(parent: Element) : Element
AttributeBuilder
Link copied to clipboard
open class AttributeBuilder : MutableMap<String, JsonPrimitive>
BootstrapJs
Link copied to clipboard
object BootstrapJs
BrElement
Link copied to clipboard
open class BrElement(parent: Element) : Element
ButtonElement
Link copied to clipboard
open class ButtonElement(wrapped: Element) : Element
ButtonType
Link copied to clipboard
enum ButtonType : Enum<ButtonType>
CanvasElement
Link copied to clipboard
open class CanvasElement(parent: Element) : Element
Cleaner
Link copied to clipboard
typealias Cleaner = () -> Unit
CookieReceiver
Link copied to clipboard
class CookieReceiver(receiver: WebBrowser)
DebugInfo
Link copied to clipboard
data class DebugInfo(js: String, action: String, throwable: Throwable)
DivElement
Link copied to clipboard
open class DivElement(parent: Element) : Element
Element
Link copied to clipboard
open class Element(browser: WebBrowser, creator: ElementCreator<*>?, tag: String?, id: String) : EventGenerator<Element>
Represents a DOM Element in a remote browser window.
ElementCreator
Link copied to clipboard
open class ElementCreator<out PARENT_TYPE : Element>(parent: PARENT_TYPE, parentCreator: ElementCreator<*>?, position: Int?)
Responsible for creating new DOM elements, and cleaning up Cleaners, KVars, and other related objects when DOM elements are deleted.
FormElement
Link copied to clipboard
open class FormElement(parent: Element) : Element
H1Element
Link copied to clipboard
open class H1Element(parent: Element) : Element
H2Element
Link copied to clipboard
open class H2Element(parent: Element) : Element
H3Element
Link copied to clipboard
open class H3Element(parent: Element) : Element
H4Element
Link copied to clipboard
open class H4Element(parent: Element) : Element
H5Element
Link copied to clipboard
open class H5Element(parent: Element) : Element
IElement
Link copied to clipboard
open class IElement(parent: Element) : Element
ImageElement
Link copied to clipboard
open class ImageElement(parent: Element) : Element
InputElement
Link copied to clipboard
open class InputElement(element: Element) : ValueElement
InputEventsReceiver
Link copied to clipboard
interface InputEventsReceiver
InputType
Link copied to clipboard
enum InputType : Enum<InputType>
Kweb
Link copied to clipboard
class Kweb : Closeable
LabelElement
Link copied to clipboard
open class LabelElement(wrapped: Element) : Element
LIElement
Link copied to clipboard
open class LIElement(parent: Element) : Element
MetaElement
Link copied to clipboard
open class MetaElement(parent: Element) : Element
NavElement
Link copied to clipboard
open class NavElement(parent: Element) : Element
OLElement
Link copied to clipboard
open class OLElement(parent: Element) : Element
OptionElement
Link copied to clipboard
open class OptionElement(parent: Element) : Element
PElement
Link copied to clipboard
open class PElement(parent: Element) : Element
Scheme
Link copied to clipboard
enum Scheme : Enum<Scheme>
SectionElement
Link copied to clipboard
open class SectionElement(parent: Element) : Element
SelectElement
Link copied to clipboard
class SelectElement(parent: Element) : ValueElement
// @sample select_sample
set
Link copied to clipboard
fun Map<String, JsonPrimitive>.set(key: String, value: JsonPrimitive): Map<String, JsonPrimitive>
span
Link copied to clipboard
fun ElementCreator<Element>.span(attributes: Map<String, JsonPrimitive> = emptyMap(), new: ElementCreator<SpanElement>.() -> Unit? = null): SpanElement
subList
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>>
table
Link copied to clipboard
fun ElementCreator<Element>.table(attributes: Map<String, JsonPrimitive> = attr): TableElement
Create tables// @sample table_example
tbody
Link copied to clipboard
fun ElementCreator<Element>.tbody(attributes: Map<String, JsonPrimitive> = attr): TbodyElement
td
Link copied to clipboard
fun ElementCreator<Element>.td(attributes: Map<String, JsonPrimitive> = attr): TdElement
textArea
Link copied to clipboard
fun ElementCreator<Element>.textArea(attributes: Map<String, JsonPrimitive> = emptyMap(), new: ElementCreator<TextAreaElement>.() -> Unit? = null): TextAreaElement
https://www.w3schools.com/tags/tag_textarea.
fun ElementCreator<Element>.textArea(attributes: Map<String, JsonPrimitive> = emptyMap(), rows: Int? = null, cols: Int? = null, required: Boolean? = null, new: ElementCreator<TextAreaElement>.() -> Unit? = null): TextAreaElement
th
Link copied to clipboard
fun ElementCreator<Element>.th(attributes: Map<String, JsonPrimitive> = attr): ThElement
thead
Link copied to clipboard
fun ElementCreator<Element>.thead(attributes: Map<String, JsonPrimitive> = attr): TheadElement
title
Link copied to clipboard
fun ElementCreator<HeadElement>.title(attributes: Map<String, JsonPrimitive> = emptyMap(), new: ElementCreator<TitleElement>.() -> Unit? = null): TitleElement
tmp
Link copied to clipboard
fun tmp()
tmp2
Link copied to clipboard
fun tmp2()
toInt
Link copied to clipboard
fun KVar<String>.toInt(): KVar<Int>
tr
Link copied to clipboard
fun ElementCreator<Element>.tr(attributes: Map<String, JsonPrimitive> = attr): TrElement
ul
Link copied to clipboard
fun ElementCreator<Element>.ul(attributes: Map<String, JsonPrimitive> = emptyMap(), new: ElementCreator<ULElement>.() -> Unit? = null): ULElement

Properties

attr
Link copied to clipboard
val attr: MutableMap<String, JsonPrimitive>
Created by ian on 1/14/17.
buildPageReplacementCode
Link copied to clipboard
const val buildPageReplacementCode: String
Use this if you are on Ktor and migrating out of the deprecated buildPage design
disabled
Link copied to clipboard
val Map<String, JsonPrimitive>.disabled: Map<String, JsonPrimitive>
path
Link copied to clipboard
val KVar<URL>.path: KVar<String>
pathQueryFragment
Link copied to clipboard
val KVar<URL>.pathQueryFragment: KVar<String>
Given the URI specification:URI = scheme:[//authority]path[?query][#fragment]The pqf refers to the path[?query][#fragment] and can be used to change the path, query, and/or fragment of the URL in one shot.
pathSegments
Link copied to clipboard
val KVar<URL>.pathSegments: KVar<List<String>>
query
Link copied to clipboard
val KVar<URL>.query: KVar<String?>