1.2.0 • Published 1 year ago
@deutschesoft/use-aux-widgets v1.2.0
use-aux-widgets
A collection of hooks for integrating
aux-widgets and
awml with react applications.
Installation
npm i '@deutschesoft/use-aux-widgets'Usage
componentFromWidget— Creates a React component from an aux widget.useBackend— Creates a backend which automatically reconnects.useBackends— Creates a list of backends.useDebouncedState— Creates a state which is debounced, i.e. it will change at most once during a given time interval.useDynamicValue— Creates a state which is synchronized with a DynamicValue bidirectionally.useDynamicValueReadonly— Creates a state which is synchronized from a DynamicValue.useEventHandler— A simple hook which stores event callbacks in a ref.useRefAsCallback— A simple hook which returns a cached wrapper function for a function stored inside of a ref.useWidget— A hook for creating widgets programmatically.useWidgetBinding— A hook for creating two-way bindings with widgets programmatically.useWidgetsBindings— A hook for creating two-way bindings on a list of widgets.useWidgetEvent— A hook for subscribing to events of a widget programmatically.useWidgetEvents— A hook for subscribing to a list of events of a widget.useWidgetsEvents— A hook for subscribing to a list of events in a list of widgets.useWidgetInteraction— Creates a state which tracks user interaction with a widget.useWidgetOption— Creates a state which synchronizes with the option of a widget.useWidgets— A hook for creating a list of widgets programmatically.useWidgetsWithBindingsAndEvents— A convenience hook which combinesuseWidgets,useWidgetsEventsanduseWidgetsBindings.
License
use-aux-widgets is available under the terms of the GNU General Public License version 2.
See the files COPYING and gplv2.txt for details.
Copyright (c) 2022-2023 DeusO GmbH