@arcmantle/adapter-element
    Preparing search index...

    Variable setChildPartValueConst

    setChildPartValue: <T extends ChildPart>(
        part: T,
        value: unknown,
        directiveParent?: DirectiveParent,
    ) => T

    Sets the value of a Part.

    Note that this should only be used to set/update the value of user-created parts (i.e. those created using insertPart); it should not be used by directives to set the value of the directive's container part. Directives should return a value from update/render to update their part state.

    For directives that require setting their part value asynchronously, they should extend AsyncDirective and call this.setValue().

    Type declaration

      • <T extends ChildPart>(
            part: T,
            value: unknown,
            directiveParent?: DirectiveParent,
        ): T
      • Type Parameters

        • T extends ChildPart

        Parameters

        • part: T

          Part to set

        • value: unknown

          Value to set

        • OptionaldirectiveParent: DirectiveParent

          Used internally; should not be set by user

        Returns T