Package io.kvision.core

KVision core classes. This includes base interfaces for all components, CSS enums (for colors, borders, backgrounds, fonts, text and position) and the main Widget class.

Types

Link copied to clipboard
enum Easing : Enum<Easing>

Functions

Link copied to clipboard
fun <ERROR CLASS>.animate(    duration: Int = 400,     easing: Easing = Easing.SWING,     complete: () -> Unit? = null,     styles: <ERROR CLASS>.() -> Unit)

Animate the widget changing CSS properties.

Link copied to clipboard
fun <ERROR CLASS>.fadeIn(    duration: Int = 400,     easing: Easing = Easing.SWING,     complete: () -> Unit? = null): <ERROR CLASS>

Shows current widget with fade in effect.

Link copied to clipboard
fun <ERROR CLASS>.fadeOut(    duration: Int = 400,     easing: Easing = Easing.SWING,     complete: () -> Unit? = null): <ERROR CLASS>

Hides current widget with fade out effect.

Link copied to clipboard
fun <ERROR CLASS>.getElementJQuery(): <ERROR CLASS>?

Returns JQuery element bound to the current component.

Link copied to clipboard
fun <ERROR CLASS>.getElementJQueryD(): dynamic

Returns JQuery element bound to the current component as a dynamic type.

Link copied to clipboard
fun <ERROR CLASS>.hideAnim(    duration: Int = 400,     easing: Easing = Easing.SWING,     complete: () -> Unit? = null): <ERROR CLASS>

Hides current widget with animation effect.

Link copied to clipboard
inline fun <T> <ERROR CLASS><T>.jqueryEvent(name: String, noinline handler: (<ERROR CLASS>) -> dynamic): <ERROR CLASS>

Helper function for defining jquery event types.

inline fun <T> <ERROR CLASS><T>.jqueryEvent(name: String, noinline handler: (<ERROR CLASS>, dynamic) -> dynamic): <ERROR CLASS>

Helper function for defining jquery event types with additional argument.

inline fun <T> <ERROR CLASS><T>.jqueryEvent(name: String, noinline handler: (<ERROR CLASS>, dynamic, dynamic) -> dynamic): <ERROR CLASS>
inline fun <T> <ERROR CLASS><T>.jqueryEvent(name: String, noinline handler: (<ERROR CLASS>, dynamic, dynamic, dynamic) -> dynamic): <ERROR CLASS>
inline fun <T> <ERROR CLASS><T>.jqueryEvent(name: String, noinline handler: (<ERROR CLASS>, dynamic, dynamic, dynamic, dynamic) -> dynamic): <ERROR CLASS>
inline fun <T> <ERROR CLASS><T>.jqueryEvent(name: String, noinline handler: (<ERROR CLASS>, dynamic, dynamic, dynamic, dynamic, dynamic) -> dynamic): <ERROR CLASS>
inline fun <T> <ERROR CLASS><T>.jqueryEvent(name: String, noinline handler: (<ERROR CLASS>, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic) -> dynamic): <ERROR CLASS>

Helper function for defining jquery event types with additional arguments.

Link copied to clipboard
fun <ERROR CLASS>.showAnim(    duration: Int = 400,     easing: Easing = Easing.SWING,     complete: () -> Unit? = null): <ERROR CLASS>

Shows current widget with animation effect.

Link copied to clipboard
fun <ERROR CLASS>.slideDown(    duration: Int = 400,     easing: Easing = Easing.SWING,     complete: () -> Unit? = null): <ERROR CLASS>

Shows current widget with slide down effect.

Link copied to clipboard
fun <ERROR CLASS>.slideUp(    duration: Int = 400,     easing: Easing = Easing.SWING,     complete: () -> Unit? = null): <ERROR CLASS>

Hides current widget with slide up effect.