-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
information neededFurther information is requestedFurther information is requested
Description
htmx publishes closest() function, which is very helpful for making extensions. However, I'd really like to be able to use getClosestAttributeValue() to get a particular attribute as well. Is it possible to publish this on the "public" htmx API as well?
Alternatively, we might publish a "safe" attribute() function that could take a null value for the target node and not crash.
Use Case
I'm working on enhancements to the preload extension, and want to find the nearest instance of an attribute to configure its behavior. Since htmx already does this internally, it would be great to reuse this ability in an extension, too.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
information neededFurther information is requestedFurther information is requested