kvision / pl.treksoft.kvision.navbar

Package pl.treksoft.kvision.navbar

Bootstrap navbar components.

Types

Nav

open class Nav : Div

The Bootstrap Nav container.

Navbar

open class Navbar : SimplePanel

The Bootstrap Navbar container.

NavbarColor

enum class NavbarColor

Navbar colors.

NavbarExpand

enum class NavbarExpand

Navbar responsive behavior.

NavbarType

enum class NavbarType

Navbar types.

NavForm

open class NavForm : Tag

The Bootstrap Nav form container.

Functions

nav

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

DSL builder extension function.

navbar

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

DSL builder extension function.

navForm

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

DSL builder extension function.

navLink

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

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

navLinkDisabled

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

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

navText

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