PageLocalState

oxygen.ui.web.PageLocalState
abstract class PageLocalState[S](val name: String)(initial: => S)

Global state that is scoped to a single page instance.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object PageLocal

Members list

Value members

Concrete methods

def attach[Env, Action](f: WidgetState[S] => Stateful[Env, Action, S]): Stateless[Env, Action]
def detach[Env, Action, InnerStateGet, InnerStateSet <: InnerStateGet](f: WidgetState[S] => PWidget[Env, Action, InnerStateGet, InnerStateSet]): PWidget[Env, Action, InnerStateGet, InnerStateSet]
final def get(pageInstance: Untyped): UIO[S]
final def set(pageInstance: Untyped)(value: S): UIO[Unit]
final def toState(using pageInstance: Untyped): WidgetState[S]
final def update(pageInstance: Untyped)(f: S => S): UIO[Unit]

Concrete fields

final val name: String