From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- api/pl.treksoft.kvision.navbar/index.html | 77 ++++++++++++++++++++++++++++++- 1 file changed, 76 insertions(+), 1 deletion(-) (limited to 'api/pl.treksoft.kvision.navbar/index.html') diff --git a/api/pl.treksoft.kvision.navbar/index.html b/api/pl.treksoft.kvision.navbar/index.html index c567b7e3..aa0a0399 100644 --- a/api/pl.treksoft.kvision.navbar/index.html +++ b/api/pl.treksoft.kvision.navbar/index.html @@ -17,7 +17,7 @@

Nav

-open class Nav : Tag +open class Nav : Div

The Bootstrap Nav container.

@@ -32,6 +32,24 @@ +

NavbarColor

+ + +enum class NavbarColor +

Navbar colors.

+ + + + +

NavbarExpand

+ + +enum class NavbarExpand +

Navbar responsive behavior.

+ + + +

NavbarType

@@ -50,5 +68,62 @@ +

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, 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
-- cgit