AppFrameComponent

open class AppFrameComponent : Component<Unit> , CloseButtonProperty

This class combines the configuration and the core rendering of the appFrame.

You can configure the content of the following sections

  • brand

  • header

  • actions

  • navigation

  • content

  • complementary (only rendered if defined)

  • tablist (only rendered if defined)

In addition to that you can define how the sidebarToggle on small screens is rendered. By default is a hamburger-button.

The rendering function is used by the component factory functions appFrame, so it is not meant to be called directly unless you plan to implement your own appFrame.

Constructors

AppFrameComponent
Link copied to clipboard
js
fun AppFrameComponent()

Types

Companion
Link copied to clipboard
js
object Companion

Functions

actions
Link copied to clipboard
js
fun actions(styling: Style<BoxParams>? = null, baseClass: StyleClass = StyleClass.None, id: String? = null, context: Tag<HTMLElement>.() -> Unit)
brand
Link copied to clipboard
js
fun brand(styling: Style<FlexParams>? = null, baseClass: StyleClass = StyleClass.None, id: String? = null, context: Tag<HTMLElement>.() -> Unit)
complementary
Link copied to clipboard
js
fun complementary(styling: Style<BoxParams>? = null, baseClass: StyleClass = StyleClass.None, id: String? = null, context: Tag<HTMLElement>.() -> Unit)
content
Link copied to clipboard
js
fun content(styling: Style<BoxParams>? = null, baseClass: StyleClass = StyleClass.None, id: String? = null, context: Tag<HTMLElement>.() -> Unit)
header
Link copied to clipboard
js
fun header(styling: Style<FlexParams>? = null, baseClass: StyleClass = StyleClass.None, id: String? = null, context: Tag<HTMLElement>.() -> Unit)
mobileSidebarWidth
Link copied to clipboard
js
fun mobileSidebarWidth(value: Int)
sets the min-with of mobile sidebar
fun mobileSidebarWidth(value: String)
sets the min-width of sidebar
navigation
Link copied to clipboard
js
fun navigation(styling: Style<BoxParams>? = null, baseClass: StyleClass = StyleClass.None, id: String? = null, context: Tag<HTMLElement>.() -> Unit)
render
Link copied to clipboard
js
open override fun render(context: RenderContext, styling: BoxParams.() -> Unit, baseClass: StyleClass, id: String?, prefix: String)
Central method that should do the actual rendering of a component.
sidebarWidth
Link copied to clipboard
js
fun sidebarWidth(value: Int)
sets the min-width of sidebar
fun sidebarWidth(value: String)
sets the min-width of sidebar
tablist
Link copied to clipboard
js
fun tablist(styling: Style<FlexParams>? = null, baseClass: StyleClass = StyleClass.None, id: String? = null, context: Tag<HTMLElement>.() -> Unit)

Properties

closeButtonIcon
Link copied to clipboard
js
open override val closeButtonIcon: ComponentProperty<Icons.() -> IconDefinition>
closeButtonPrefix
Link copied to clipboard
js
open override val closeButtonPrefix: String
closeButtonRendering
Link copied to clipboard
js
open override val closeButtonRendering: ComponentProperty<RenderContext.() -> DomListener<MouseEvent, HTMLElement>>
closeButtonStyle
Link copied to clipboard
js
open override val closeButtonStyle: ComponentProperty<Style<BasicParams>>
closeSidebar
Link copied to clipboard
js
val closeSidebar: SimpleHandler<Unit>
hasCloseButton
Link copied to clipboard
js
open override val hasCloseButton: ComponentProperty<Boolean>
sidebarToggle
Link copied to clipboard
js
val sidebarToggle: ComponentProperty<PushButtonComponent.() -> Unit>