ViewportPlugin

class ViewportPlugin(width: ViewportWidth, initialScale: Double) : KwebPlugin

Functions

appServerConfigurator
Link copied to clipboard
open fun appServerConfigurator(routeHandler: Routing)
Override this to add routes via KTor
decorate
Link copied to clipboard
open override fun decorate(doc: Document)
Override this to make changes to the initial HTML document
elementCreationHook
Link copied to clipboard
open fun elementCreationHook(element: Element)
Override this to execute code when a new element is created
executeAfterPageCreation
Link copied to clipboard
open fun executeAfterPageCreation(): String
Override this to provide JavaScript to be executed after page creation

Properties

dependsOn
Link copied to clipboard
val dependsOn: Set<KwebPlugin>
initialScale
Link copied to clipboard
val initialScale: Double = 1.0
width
Link copied to clipboard
val width: ViewportWidth