SecuredContent

dev.cheleb.ziotapir.laminar.SecuredContent
trait SecuredContent[UserToken <: WithToken](using session: Session[UserToken])

A trait to define secured content for Laminar applications.

Type parameters

UserToken

the type of the user token, which should extend dev.cheleb.ziojwt.WithToken.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

protected def securedContent(userToken: UserToken): ReactiveHtmlElement[HTMLDivElement]

The secured content to show when the user is logged in.

The secured content to show when the user is logged in.

Should be overridden to provide custom content.

Value parameters

userToken

the user token

Attributes

Concrete methods

final def apply(): ReactiveHtmlElement[HTMLDivElement]

The main component that shows either the secured content or the not logged-in content.

The main component that shows either the secured content or the not logged-in content.

Attributes

protected def init: Unit

An initialization method that is called when the component is mounted.

An initialization method that is called when the component is mounted.

Can be overridden to provide custom initialization logic.

Attributes

protected def notlogged: ReactiveHtmlElement[HTMLElement]

The content to show when the user is not logged in.

The content to show when the user is not logged in.

Should be overridden to provide custom content.

Attributes