org.getshaka.shaka
Members list
Packages
Type members
Classlikes
Base trait for Bindings. Since Bindings are hierarchical, they must manage registered child bindings.
Base trait for Bindings. Since Bindings are hierarchical, they must manage registered child bindings.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
A Shaka Component provides a template for some part of an application, as well as the means to render said template to the DOM.
A Shaka Component provides a template for some part of an application, as well as the means to render said template to the DOM.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait WebComponent
Persists to LocalStorage
You should not use this StorageManager for types that may be Null or Unit, since localStorage returns only null if the value is undefined. Instead, use an Option type, or create your own StorageManager that uses a marker character when encountering null, like the ancient Linear A character "༗"
Persists to LocalStorage
You should not use this StorageManager for types that may be Null or Unit, since localStorage returns only null if the value is undefined. Instead, use an Option type, or create your own StorageManager that uses a marker character when encountering null, like the ancient Linear A character "༗"
Attributes
- See also
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
LocalStorage.type
A no-op StorageManager
A no-op StorageManager
Attributes
- Supertypes
Binding subclass specialized for Nodes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
NodeBinding.type
Open state that must be encapsulated.
Open state that must be encapsulated.
Type parameters
- V
-
the value.
Value parameters
- initialValue
-
The State's initial value, discarded if the StorageManager can fetch a value.
Attributes
- Supertypes
Light-weight Binding subclass for binding CSS and JS properties.
Light-weight Binding subclass for binding CSS and JS properties.
Type parameters
- V
-
the state value type
Value parameters
- builder
-
Function binding the props
- state
-
dependent State
Attributes
- Supertypes
Binding at the root of the heirarchy. Operations do nothing.
Binding at the root of the heirarchy. Operations do nothing.
Attributes
- Supertypes
Persists to Session Storage
You should not use this StorageManager for types that may be Null or Unit, since localStorage returns only null if the value is undefined. Instead, use an Option type, or create your own StorageManager that uses a marker character when encountering null, like the ancient Linear A character "༗"
Persists to Session Storage
You should not use this StorageManager for types that may be Null or Unit, since localStorage returns only null if the value is undefined. Instead, use an Option type, or create your own StorageManager that uses a marker character when encountering null, like the ancient Linear A character "༗"
Attributes
- See also
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SessionStorage.type
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A State that can be used to bind Nodes and their properties. You can get the current value with myState.value, and update with myState.value = newValue. These two methods are protected, so that state update logic is encapsulated within the object itself. This provides the same benefit as Redux's action - reducer - store trifecta.
A State that can be used to bind Nodes and their properties. You can get the current value with myState.value, and update with myState.value = newValue. These two methods are protected, so that state update logic is encapsulated within the object itself. This provides the same benefit as Redux's action - reducer - store trifecta.
Type parameters
- V
-
the value.
Value parameters
- initialValue
-
The State's initial value, discarded if the StorageManager can fetch a value.
- storageManager
-
How the State should be persisted, such as in LocalStorage. By default, the State has no storage.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class OpenState[V]
Used for fetching and storing States
Used for fetching and storing States
Type parameters
- V
-
the value type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
A [[Component]] wrapped in a Custom Element. Custom Elements have useful lifecycle callbacks and can attach shadow-dom.
A [[Component]] wrapped in a Custom Element. Custom Elements have useful lifecycle callbacks and can attach shadow-dom.
Attributes
- See also
- Companion
- object
- Supertypes
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
WebComponent.type
Types
Given a parent Element and Binding, returns a function from the State value V to Unit.
Given a parent Element and Binding, returns a function from the State value V to Unit.
Attributes
Given a parent Binding, returns a function from the State value V to Unit
Given a parent Binding, returns a function from the State value V to Unit