Package-level declarations
Types
Predefined constants for all ARIA attributes
This property keeps track of the external data binding of some component.
This type is used to decide which strategy for setting an initial focus is appropriate for trapFocusInMountpoint function.
Expressive model for the orientation of some (UI) element.
Base class that provides the functionality to create popup components.
This class implements the concept of some data holder, that can be configured after construction by some client code. A property is usually used within some kind of component, which needs to hold some specific data portion in order to work, but to delegate the setup of the data to the client code.
Alias in order to reduce boilerplate code for the awkward signature of a Tag-factory of RenderContext.
This hook abstraction simplifies a Tag creating Hook by offering static invoke methods, which already deal with constructing the value field, so that an abstract renderTag method is called. This covers the typical use case where a client only wants to configure exactly one value (flow or static) and the hook should use this to render some artifact.
Properties
Functions
This function will add the name of the corresponding component factory or brick into the DOM as comment node.
This hook method applies a Hook's encapsulated behaviour to the calling context.
This hook method applies multiple Hook's encapsulated behaviour to the calling context with the payload of type Unit
.
This hook method applies a Hook's encapsulated behaviour to the calling context and passes a given payload.
With Portalling a rendered overlay will be rendered outside of the clipping ancestors to avoid clipping. Therefore, a portalRoot is needed as last element in the document.body.
A portalRoot is needed to use floating components like dev.fritz2.headless.components.modal, dev.fritz2.headless.components.toast and dev.fritz2.headless.components.popOver. Basically all components based upon PopUpPanel.
Sets focus on the Tag it is called on. Continues to try setting the focus until it was successful or the maximum number of retries is reached. Use this function for example to set the focus on an element that just becomes visible.
Mark some Tag with a data-attribute INITIAL_FOCUS_DATA_ATTR so that the trapFocusInMountpoint function can find this Tag and set the initial focus to it.
Mark some Tag with a data-attribute INITIAL_FOCUS_DATA_ATTR so that the trapFocusInMountpoint function can find this Tag and set the initial focus to it.
This function enables a so called focus-trap. This enforces the specific behaviour within the receiver Tag, that switching the focus is only possible on elements that are inside the receiver. No other focusable elements outside the enclosing container will get the focus.
This variant of trapFocusInMountpoint allows to reactively trap a focus based on a conditional Flow of Boolean. This should be applied in all situations, where the DOM subtree of the trap is not inside a mount-point, but only activated or disabled by some Flow.