turbodombuilder - v0.9.48
    Preparing search index...

    Function behavior

    • Function

      behavior

      Parameters

      • Optionalproperties: Partial<Omit<ListenerProperties, "callback" | "options">> = {}

        Listener configuration. Values will be merged with the detected defaults. If properties.type is omitted, the name of the method will be used to derive the event name from DefaultEventName.

      Returns <T extends object>(
          value: (this: T, e: Event, target: Node) => any,
          context: ClassMethodDecoratorContext<T>,
      ) => (this: T, e: Event, target: Node) => any

      Method decorator that registers the decorated method as a tool behavior, to be attached later via attachListenersAndBehaviors.