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

Link copied to clipboard
fun AppFrameComponent()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun actions(    styling: Style<BoxParams>? = null,     baseClass: StyleClass = StyleClass.None,     id: String? = null,     context: Tag<HTMLElement>.() -> Unit)
Link copied to clipboard
fun brand(    styling: Style<FlexParams>? = null,     baseClass: StyleClass = StyleClass.None,     id: String? = null,     context: Tag<HTMLElement>.() -> Unit)
Link copied to clipboard
fun complementary(    styling: Style<BoxParams>? = null,     baseClass: StyleClass = StyleClass.None,     id: String? = null,     context: Tag<HTMLElement>.() -> Unit)
Link copied to clipboard
fun content(    styling: Style<BoxParams>? = null,     baseClass: StyleClass = StyleClass.None,     id: String? = null,     context: Tag<HTMLElement>.() -> Unit)
Link copied to clipboard
fun header(    styling: Style<FlexParams>? = null,     baseClass: StyleClass = StyleClass.None,     id: String? = null,     context: Tag<HTMLElement>.() -> Unit)
Link copied to clipboard
fun mobileSidebarWidth(value: Int)

sets the min-with of mobile sidebar

fun mobileSidebarWidth(value: String)

sets the min-width of sidebar

Link copied to clipboard
fun navigation(    styling: Style<BoxParams>? = null,     baseClass: StyleClass = StyleClass.None,     id: String? = null,     context: Tag<HTMLElement>.() -> Unit)
Link copied to clipboard
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.

Link copied to clipboard
fun sidebarWidth(value: Int)
fun sidebarWidth(value: String)

sets the min-width of sidebar

Link copied to clipboard
fun tablist(    styling: Style<FlexParams>? = null,     baseClass: StyleClass = StyleClass.None,     id: String? = null,     context: Tag<HTMLElement>.() -> Unit)

Properties

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