ViewportPlugin

class ViewportPlugin(val width: ViewportWidth = DeviceWidth, val initialScale: Double = 1.0) : KwebPlugin(source)

Deprecated

Please use kweb.viewport extension function instead

Constructors

Link copied to clipboard
constructor(width: ViewportWidth = DeviceWidth, initialScale: Double = 1.0)

Properties

Link copied to clipboard
Link copied to clipboard
val initialScale: Double = 1.0
Link copied to clipboard

Functions

Link copied to clipboard
open fun appServerConfigurator(routeHandler: Routing)

Override this to add routes via KTor

Link copied to clipboard
open override fun decorate(doc: Document)

Override this to make changes to the initial HTML document

Link copied to clipboard
open fun elementCreationHook(element: Element)

Override this to execute code when a new element is created

Link copied to clipboard

Override this to provide JavaScript to be executed after page creation