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

Easing
Link copied to clipboard
enum Easing : Enum<Easing>

Functions

animate
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.

fadeIn
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.

fadeOut
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.

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

Returns JQuery element bound to the current component.

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

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

hideAnim
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.

jqueryEvent
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.

showAnim
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.

slideDown
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.

slideUp
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.