Package dev. fritz2. core
Types
Defines type for a handler for lifecycle-events
This adapter class just lifts the DOM API NodeList type into Kotlin's collection API.
An EmittingHandler is a special Handler that constitutes a new Flow by itself. You can emit values to this Flow from your code and connect it to other Handlers on this or on other Stores. This way inter-store-communication is done in fritz2.
A marker to separate the layers of calls in the type-safe-builder pattern.
function to derive a valid id for a given instance that does not change over time.
This object offers expressive access to predefined Shortcuts and ModifierShortcuts taken from the specification extended with Space as symbol for simple space.
Occurs when Lens points to non-existing element.
This interface models the modifier shortcuts, that enable combination of shortcuts like "STRG + F" or alike.
External interface to access the MountPoint where the lifecycle of Tags and subtrees is handled.
Occurs when the targeted html element is not present in document.
This Flow implementation represents a flow that emits exactly one value during its lifetime.
Context for rendering static and dynamical content
RootInspector is the starting point for getting your data and corresponding paths from your deep nested model structure. Get this by calling the factory method inspectorOf.
Context for setting new entries to a Scope object.
Implementation of HtmlTag to represent the JavaScript SVGElement to Kotlin
Represents a tag. Sorry for the name, but we needed to delimit it from the Element it is wrapping.
Base-interface for everything that represents a node in the DOM.
Contains all javascript event types. Take a look here.
Functions
Adds global css-rules to a fritz2-specific stylesheet added to the document when first called
Adds global css-rules to a fritz2-specific stylesheet added to the document when first called
Convenience method to register lifecycle handler for after a Tag is mounted
Creates a DomNodeList containing all HTMLElements from the DOM API based NodeList.
Convenience method to register lifecycle handler for before a Tag is unmounted
Calls Event.composedPath on the Event-flow.
Extracts a FileList from the Event.target.
This factory function creates an OnlyOnceFlow.
Performs the given action on each SubInspector.
gives you a new RootInspector as starting point.
Allows to access the nearest MountPoint from any Tag
collects the values of a given Flow one by one. Use this for data-types that represent a single (simple or complex) value.
Enables combination of ModifierShortcuts like "STRG + ALT + F":
Calls Event.preventDefault on the Event-flow.
Creates a RenderContext for Tags and mounts it to a constant element in the static html file which id matches the selector.
Creates a RenderContext for Tags and mounts it to a targetElement.
Extracts the HTMLSelectElement.selectedIndex from the Event.target.
Extracts the HTMLOptionElement.text from the selected HTMLOptionElement.
Extracts the HTMLOptionElement.value from the selected HTMLOptionElement.
The function generates a Shortcut object out of a KeyboardEvent.
Extracts the HTMLInputElement.checked state from the Event.target.
Calls Event.stopImmediatePropagation on the Event-flow.
Calls Event.stopPropagation on the Event-flow.
Applies a transition (enter and/or leave) to a Tag. The enter-transition will be executed right after the Tag is mounted to the DOM. The leave-transition will be executed right before the Tag is removed from the DOM. Further operation of the MountPoint rendering the Tag is suspended until the leave-animation is done.
Applies a transition (enter and/or leave) to a Tag whenever a new value appears on a Flow The enter-transition will be executed when true appears on the Flow The leave-transition will be executed when false appears on the Flow Processing of further operations will not wait for the animation to finish.
Extracts the HTMLInputElement.value from the Event.target.
wait for a running animation on the DOM-Node to finish.