24 Commits

Author SHA1 Message Date
Frankie Robertson
4a59263d40 Allow listening to events from:window 2021-08-29 14:07:17 +03:00
carson
bbf2ae4412 support document as an extended query selector and plug it in for the from: clause in triggers 2021-07-06 15:27:51 -06:00
carson
40ed7b0827 allow filters for polling 2021-07-06 10:24:55 -06:00
carson
e15c5d99e3 support a queue modifier for queueing events in different ways
fixes https://github.com/bigskysoftware/htmx/issues/470
2021-05-20 09:07:56 -06:00
carson
9f04b85a9f tests for hx-trigger delay and throttle modifiers 2021-05-10 09:46:40 -06:00
carson
835436a99b Multiple trigger issue - fix https://github.com/bigskysoftware/htmx/issues/392 and https://github.com/bigskysoftware/htmx/issues/390
Mark handling by element, rather than by event
introduce `consume` keyword on trigger to allow for preventing it from bubbling to parent
2021-02-27 20:01:39 -07:00
carson
02d637785b support target option on hx-trigger, fixes https://github.com/bigskysoftware/htmx/issues/376#issuecomment-786821075 2021-02-26 15:05:40 -07:00
carson
e0018b6d44 Remove event listeners on other elements when an element is removed from the DOM 2021-01-23 16:29:13 -07:00
carson
afa6658648 test case for equality expression in conditional 2021-01-01 20:09:43 -07:00
carson
79038d62e3 support from clause for triggers
also fixed pretty ugly bugs when parsing multple trigger definitions
2021-01-01 18:52:15 -07:00
carson
f7617a4653 do not fire requests when element is no longer in DOM
fixes https://github.com/bigskysoftware/htmx/issues/222
2020-11-05 08:39:33 -07:00
carson
d67634e678 test scrolledIntoView 2020-10-19 09:49:55 -06:00
carson
165586b777 docs and tests for trigger filters 2020-10-17 13:21:15 -06:00
carson
18220b3283 hook in tokenizer implementation 2020-10-04 18:26:17 -06:00
carson
296f354fef fix throttle and make the trigger spec test actually work 2020-06-11 09:45:42 -07:00
carson
96c9623a3d test fix 2020-06-11 06:55:50 -07:00
carson
1f62541094 support throttle modifier in trigger definition
https://github.com/bigskysoftware/htmx/issues/88
2020-06-11 06:21:49 -07:00
carson
cbe8cd9fce fix triggers test 2020-05-24 21:57:20 -07:00
carson
8a6a6f8016 web socket support 2020-05-24 21:41:44 -07:00
Robert Schroll
2ad1202978 Handle multiple triggers
Triggers are separated by commas, and each will get handled with its
own options.  If we are unable to parse any triggers, the default
trigger for each element is used.
2020-05-23 18:08:54 -07:00
Robert Schroll
0b0be4193a Change trigger spec for repeated and SSE events 2020-05-23 18:08:54 -07:00
Robert Schroll
9437e6c0a8 Add tests of trigger spec parsing 2020-05-23 18:08:54 -07:00
carson
ba6d38e9dd Fix https://github.com/bigskysoftware/htmx/issues/19
clean up uses of getRawAttribute() and add a `data-*` test for all attribute tests.
2020-05-23 04:52:52 -07:00
carson
3aa8c64754 le big re-rename 2020-05-17 05:22:19 -07:00