kvision / pl.treksoft.kvision.navbar

Package pl.treksoft.kvision.navbar

Bootstrap navbar components.

Types

(js)

Nav

The Bootstrap Nav container.

open class Nav : Div
(js)

Navbar

The Bootstrap Navbar container.

open class Navbar : SimplePanel
(js)

NavbarColor

Navbar colors.

enum class NavbarColor
(js)

NavbarExpand

Navbar responsive behavior.

enum class NavbarExpand
(js)

NavbarType

Navbar types.

enum class NavbarType
(js)

NavForm

The Bootstrap Nav form container.

open class NavForm : Tag

Functions

(js)

nav

DSL builder extension function.

fun Navbar.nav(rightAlign: Boolean = false, classes: Set<String> = setOf(), init: (Nav.() -> Unit)? = null): Nav
(js)

navbar

DSL builder extension function.

fun Container.navbar(label: String? = null, link: String? = null, type: NavbarType? = null, expand: NavbarExpand? = NavbarExpand.LG, nColor: NavbarColor = NavbarColor.LIGHT, bgColor: BsBgColor = BsBgColor.LIGHT, collapseOnClick: Boolean = false, classes: Set<String> = setOf(), init: (Navbar.() -> Unit)? = null): Navbar
(js)

navForm

DSL builder extension function.

fun Navbar.navForm(rightAlign: Boolean = false, classes: Set<String> = setOf(), init: (NavForm.() -> Unit)? = null): NavForm
(js)

navLink

DSL builder extension function for a link in a nav list.

fun Nav.navLink(label: String, url: String? = null, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: (Link.() -> Unit)? = null): Link
(js)

navLinkDisabled

DSL builder extension function for a disabled link in a nav list.

fun Nav.navLinkDisabled(label: String, icon: String? = null, image: ResString? = null, classes: Set<String> = setOf(), init: (Link.() -> Unit)? = null): Link
(js)

navText

fun Navbar.navText(label: String, classes: Set<String> = setOf()): Span