LocalStorage

kreuzberg.extras.LocalStorage
See theLocalStorage companion object
case class LocalStorage[M](initial: M, key: String, serializer: M => String, deserializer: String => M) extends HeadlessComponentBase

Encapsulates a model, which is backed by local storage. Note: You need to have a Backend Service.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait HeadlessComponentBase
trait ContextDsl
trait HeadlessComponent
trait Identified
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def assemble(using context: AssemblerContext): HeadlessAssembly

Attributes

Definition Classes
HeadlessComponent

Inherited methods

def comment: String

Comment, which will probably built into into a tree. Can be disabled by returning ""

Comment, which will probably built into into a tree. Can be disabled by returning ""

Attributes

Inherited from:
Identified
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
protected def provide[T : ServiceNameProvider](implicit evidence$1: ServiceNameProvider[T], c: ServiceRepository): T

Retrieves something from a ServiceRepository (usually an AssemblerContext)

Retrieves something from a ServiceRepository (usually an AssemblerContext)

Attributes

Inherited from:
ContextDsl
protected def read[M](model: Subscribeable[M])(using c: AssemblerContext): M

Read the value of a model from an AssemblerContext

Read the value of a model from an AssemblerContext

Attributes

Inherited from:
ContextDsl

Concrete fields

val model: Model[M]

The model contains the current value.

The model contains the current value.

Attributes

Inherited fields

final val id: Identifier

Id of this thing.

Id of this thing.

Attributes

Inherited from:
HeadlessComponent