ixfx
    Preparing search index...

    Function fromDomQuery

    • Reactive stream of array of elements that match query.

      Parameters

      • query: string

      Returns Reactive<HTMLElement[]> & { set(value: HTMLElement[]): void } & {
          onDiff(changes: (changes: PathDataChange<any>[]) => void): () => void;
          onField(
              fieldName: string,
              handler: (result: ObjectFieldHandler) => void,
          ): () => void;
          update(
              changedPart: (undefined | RecursivePartial<HTMLElement>)[],
          ): HTMLElement[];
          updateField(field: string, value: any): void;
      } & { last(): HTMLElement[] }

      • set:function
        • Sets a value

          Parameters

          • value: HTMLElement[]

            Value to write

          Returns void

      • onDiff:function
        • Notifies of which field(s) were changed. If you just care about the whole, changed data use the value event.

          Use the returned function to unsubscribe.

          Parameters

          Returns () => void

      • onField:function
        • Notifies when the value of fieldName is changed.

          Use the returned function to unsubscribe.

          Parameters

          Returns () => void

      • update:function
        • Updates the reactive with some partial key-value pairs. Keys omitted are left the same as the current value.

          Parameters

          Returns HTMLElement[]

          Returns new value

      • updateField:function
        • Updates a particular field by its path

          Parameters

          • field: string
          • value: any

          Returns void

      • last:function
        • Returns HTMLElement[]