Skip to content

Index

MaterialDesignJsVeiwRenderer / view.utils.extensions

Package view.utils.extensions

Functions

addClasses
fun <E>E.addClasses(classes:Set<String>):Unit
Adds a set of classes to an HTMLElement.

applyCss
fun <E>E.applyCss(init:ElementCss.() ->Unit):Unit
Applies css on the element.

children
fun <E>E.children():List<<ERROR CLASS>>
Returns a list of child nodes of an HTMLElement

filterChildrenBy
fun <E>E.filterChildrenBy(condition: (<ERROR CLASS>) ->Boolean):List<<ERROR CLASS>>
Returns the DOM elements, corresponding to views, that meet a certain condition.

viewChildren
fun <E>E.viewChildren():List<<ERROR CLASS>>
Returns all child DOM elements that correspond to a view.