PWidget

oxygen.ui.web.PWidget
See thePWidget companion trait
object PWidget

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
PWidget.type

Members list

Type members

Classlikes

final case class AttachGlobalState[-Env, +Action, State](underlying: Stateful[Env, Action, State], globalState: GlobalState[State]) extends Stateless[Env, Action]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, Any, Nothing]
class Object
trait Matchable
class Any
Show all
final case class AttachPageLocalState[-Env, +Action, State](underlying: Stateful[Env, Action, State], pageLocalState: PageLocalState[State]) extends Stateless[Env, Action]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, Any, Nothing]
class Object
trait Matchable
class Any
Show all
final case class AttachWidgetState[-Env, +Action, State](underlying: Stateful[Env, Action, State], widgetState: WidgetState[State]) extends Stateless[Env, Action]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, Any, Nothing]
class Object
trait Matchable
class Any
Show all
final case class Canvas[-Env, +Action, -StateGet, +StateSet <: StateGet](draw: CanvasRenderingContext2D => Unit, children: Growable[PWidget[Env, Action, StateGet, StateSet]]) extends PWidget[Env, Action, StateGet, StateSet]

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, StateGet, StateSet]
class Object
trait Matchable
class Any
Show all
object Canvas

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Canvas.type
final case class ComponentWithProps[-Env, +Action, -StateGet, +StateSet <: StateGet, P](component: WithProps[Env, Action, StateGet, StateSet] { type Props = P; }, props: P) extends PWidget[Env, Action, StateGet, StateSet]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, StateGet, StateSet]
class Object
trait Matchable
class Any
Show all
final case class ComponentWithoutProps[-Env, +Action, -StateGet, +StateSet <: StateGet](component: WithoutProps[Env, Action, StateGet, StateSet]) extends PWidget[Env, Action, StateGet, StateSet]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, StateGet, StateSet]
class Object
trait Matchable
class Any
Show all
final case class DetachGlobalState[Env, Action, DetachedState, InnerStateGet, InnerStateSet <: InnerStateGet](withState: WidgetState[DetachedState] => PWidget[Env, Action, InnerStateGet, InnerStateSet], globalState: GlobalState[DetachedState]) extends PWidget[Env, Action, InnerStateGet, InnerStateSet]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, InnerStateGet, InnerStateSet]
class Object
trait Matchable
class Any
Show all
final case class DetachPageLocalState[Env, Action, DetachedState, InnerStateGet, InnerStateSet <: InnerStateGet](withState: WidgetState[DetachedState] => PWidget[Env, Action, InnerStateGet, InnerStateSet], pageLocalState: PageLocalState[DetachedState]) extends PWidget[Env, Action, InnerStateGet, InnerStateSet]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, InnerStateGet, InnerStateSet]
class Object
trait Matchable
class Any
Show all
case object Empty extends Const

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait PWidget[Any, Nothing, Any, Nothing]
class Object
trait Matchable
class Any
Show all
Self type
Empty.type
final case class FixState[Env, Action, State](withState: WidgetState[State] => Stateful[Env, Action, State]) extends Stateful[Env, Action, State]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, State, State]
class Object
trait Matchable
class Any
Show all
final case class Foreach[S[_], I, Env, Action, StateGet, StateSet <: StateGet](input: S[I], f: I => PWidget[Env, Action, StateGet, StateSet])(using evidence$1: SeqRead[S]) extends PWidget[Env, Action, StateGet, StateSet]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, StateGet, StateSet]
class Object
trait Matchable
class Any
Show all
final case class Fragment[-Env, +Action, -StateGet, +StateSet <: StateGet](elements: Growable[PWidget[Env, Action, StateGet, StateSet]]) extends PWidget[Env, Action, StateGet, StateSet]

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, StateGet, StateSet]
class Object
trait Matchable
class Any
Show all
object Fragment

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Fragment.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
final case class Node[-Env, +Action, -StateGet, +StateSet <: StateGet](xmlns: Option[String], tag: String, children: Growable[PWidget[Env, Action, StateGet, StateSet]]) extends PWidget[Env, Action, StateGet, StateSet]

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, StateGet, StateSet]
class Object
trait Matchable
class Any
Show all
object Node

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Node.type
final case class Optional[Env, Action, StateGet, StateSet <: StateGet](underlying: Option[PWidget[Env, Action, StateGet, StateSet]]) extends PWidget[Env, Action, StateGet, StateSet]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, StateGet, StateSet]
class Object
trait Matchable
class Any
Show all
final case class Raw[E <: DOMElement](raw: E) extends Const

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Any, Nothing, Any, Nothing]
class Object
trait Matchable
class Any
Show all
object Raw

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Raw.type
final case class Sequence[Env, Action, F[_], State](elemWidget: Int => Stateful[Env, Action, State], ops: Ops[F]) extends Stateful[Env, Action, F[State]]

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, F[State], F[State]]
class Object
trait Matchable
class Any
Show all
object Sequence

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Sequence.type
final case class StatefulEventHandler[Env, Action, State, Event](key: String, handler: (WidgetState[State], RaiseHandler[Any, Action], Event) => ZIO[Env & Scope, UIError, Unit]) extends Stateful[Env, Action, State]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, State, State]
class Object
trait Matchable
class Any
Show all
final case class StatefulHandleAction[Env, Action, State](underlying: Stateful[Env, Action, State], f: (WidgetState[State], Action) => ZIO[Env & Scope, UIError, Unit])(using evidence$1: HasNoScope[Env]) extends Stateful[Env, Nothing, State]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Nothing, State, State]
class Object
trait Matchable
class Any
Show all
final case class StatefulHandleActionA[Env, Action, State, Action2](underlying: Stateful[Env, Action, State], f: (WidgetState[State], RaiseHandler[Any, Action2], Action) => ZIO[Env & Scope, UIError, Unit])(using evidence$1: HasNoScope[Env]) extends Stateful[Env, Action2, State]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action2, State, State]
class Object
trait Matchable
class Any
Show all
final case class StatelessEventHandler[Env, Action, Event](key: String, handler: (RaiseHandler[Any, Action], Event) => ZIO[Env & Scope, UIError, Unit]) extends Stateless[Env, Action]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, Any, Nothing]
class Object
trait Matchable
class Any
Show all
final case class StatelessHandleAction[Env, Action, StateGet, StateSet <: StateGet](underlying: PWidget[Env, Action, StateGet, StateSet], f: Action => ZIO[Env & Scope, UIError, Unit])(using evidence$1: HasNoScope[Env]) extends PWidget[Env, Nothing, StateGet, StateSet]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Nothing, StateGet, StateSet]
class Object
trait Matchable
class Any
Show all
final case class StatelessHandleActionA[Env, Action, Action2, StateGet, StateSet <: StateGet](underlying: PWidget[Env, Action, StateGet, StateSet], f: (RaiseHandler[Any, Action2], Action) => ZIO[Env & Scope, UIError, Unit])(using evidence$1: HasNoScope[Env]) extends PWidget[Env, Action2, StateGet, StateSet]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action2, StateGet, StateSet]
class Object
trait Matchable
class Any
Show all
final case class SumCases[Env, Action, State](cases: List[Case[Env, Action, State, _ <: State]]) extends Stateful[Env, Action, State]

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, State, State]
class Object
trait Matchable
class Any
Show all
object SumCases

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
SumCases.type
final case class WithPageInstance[Env, Action, StateGet, StateSet <: StateGet](underlying: Untyped => PWidget[Env, Action, StateGet, StateSet]) extends PWidget[Env, Action, StateGet, StateSet]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, StateGet, StateSet]
class Object
trait Matchable
class Any
Show all
final case class ZoomOut[Env, Action, InnerState, OuterState](underlying: Stateful[Env, Action, InnerState], lens: Lens[OuterState, InnerState]) extends Stateful[Env, Action, OuterState]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait PWidget[Env, Action, OuterState, OuterState]
class Object
trait Matchable
class Any
Show all

Types

type Const = Stateless[Any, Nothing]
type StateOnly[State] = Stateful[Any, Nothing, State]
type Stateful[-Env, +Action, State] = PWidget[Env, Action, State, State]
type Stateless[-Env, +Action] = PWidget[Env, Action, Any, Nothing]

Extensions

Extensions

extension [Env, Action](self: Stateless[Env, Action])
def fixState[State]: Stateful[Env, Action, State]
extension [Env, Action, State](self: Stateful[Env, Action, State])
def attach(v: WidgetState[State]): Stateless[Env, Action]
def attach(v: GlobalState[State]): Stateless[Env, Action]
def attach(v: PageLocalState[State]): Stateless[Env, Action]
inline def zoomOut[OuterState](inline f: OuterState => State): Stateful[Env, Action, OuterState]
def zoomOutLens[OuterState](lens: Lens[OuterState, State]): Stateful[Env, Action, OuterState]
extension [Env, Action, StateGet, StateSet <: StateGet](self: PWidget[Env, Action, StateGet, StateSet])
def discardAction(using HasNoScope[Env]): PWidget[Env, Nothing, StateGet, StateSet]
def mapAction[Action2](f: Action => Action2)(using HasNoScope[Env]): PWidget[Env, Action2, StateGet, StateSet]
def mapActionZIO[Env2 <: Env : HasNoScope, Action2](f: Action => ZIO[Env2 & Scope, UIError, Action2]): PWidget[Env2, Action2, StateGet, StateSet]
extension [Env, Action](self: Stateless[Env, Action])
def handleActionStateless: Stateless[Env, Action]
extension [Env, Action, State](self: Stateful[Env, Action, State])
def handleActionStateful: Stateful[Env, Action, State]
extension [Env, Action, StateGet, StateSet <: StateGet](self: PWidget[Env, Action, StateGet, StateSet])
def asConstForm[Value](value: Value): FormWidget[Env, Action, StateGet, StateSet, Value]
def asUnitForm: FormWidget[Env, Action, StateGet, StateSet, Unit]
extension [Env, Action, State](self: Stateful[Env, Action, State])
def asFormWith[Value](fields: List[String])(f: State => Value): Stateful[Env, Action, State, Value]
def asFormWith[Value](field: String)(f: State => Value): Stateful[Env, Action, State, Value]
def asFormWith[Value](f: State => Value): Stateful[Env, Action, State, Value]
def asFormWithValidation[Value](fields: List[String])(f: State => EitherMessage[Value]): Stateful[Env, Action, State, Value]
def asFormWithValidation[Value](field: String)(f: State => EitherMessage[Value]): Stateful[Env, Action, State, Value]
def asFormWithValidation[Value](f: State => EitherMessage[Value]): Stateful[Env, Action, State, Value]
def asStateForm(fields: List[String]): Stateful[Env, Action, State, State]
def asStateForm(field: String): Stateful[Env, Action, State, State]
def asStateForm: Stateful[Env, Action, State, State]