ixfx
    Preparing search index...

    Namespace RxUi

    Functions

    bind

    Binds source to one or more element(s). One or more bindings for the same source can be provided.

    bindDiffUpdate

    Updates a HTML element based on diffs on an object.

    // Wrap an object
    const o = Rx.object({ name: `Jane`, ticks: 0 });
    const b = bindDiffUpdate(`#test`, o, (diffs, el) => {
    // el = reference to #test
    // diff = Array of Changes,
    // eg [ { path: `ticks`, value: 797, previous: 0 } ]
    for (const diff of diffs) {
    if (diff.path === `ticks`) el.textContent = `${diff.previous} -> ${diff.value}`
    }
    bindElement

    Update a DOM element's field, attribute or CSS variable when source produces a value.

    bindHtml

    Updates an element's innerHTML when the source value changes

    bindText

    Updates an element's textContent when the source value changes.

    bindUpdate

    Calls updater whenever source produces a value. Useful when several fields from a value are needed to update an element.

    bindValueText

    Updates an element's value (as well as the 'value' attribute) when the source value changes.s

    browserResizeObservable

    Observe when element resizes. Specify interval to debounce, uses 100ms by default.

    colour
    cssClassChange

    Observe when a class changes on a target element, by default the document. Useful for tracking theme changes.

    domForm

    Listens for data changes from elements within a HTML form element. Input elements must have a 'name' attribute.

    domHslInputValue
    domInputValue

    A stream of values when the a HTMLInputElement changes. Eg a

    domNumberInputValue

    Reactive getting/setting of values to a HTML INPUT element.

    elements

    Creates, updates & deletes elements based on pathed values from a reactive.

    fromDomQuery

    Reactive stream of array of elements that match query.

    win
    windowResize

    Returns an Reactive for window resize. Default 100ms debounce.

    Type Aliases

    BindUpdateOpts
    DomBindInputOptions
    DomBindResolvedSource
    DomBindSourceValue
    DomBindTargetNode
    DomBindTargetNodeResolved
    DomBindUnresolvedSource
    DomBindValueTarget
    DomCreateOptions
    DomFormOptions
    DomNumberInputValueOptions
    DomValueOptions
    ElementBind
    ElementsOptions
    PipeDomBinding
    ReactiveColour