Timeline for Webform javascript CSS selectors with table
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 24, 2022 at 1:14 | comment | added | Mario Steinitz | If you provide an array, it must be an array of DOM elements/jQuery objects. If you want to use selectors, it will work the same as with the document.querySelectorAll function. A comma separated list of selectors will do. You can check the examples mentioned here: npmjs.com/package/@drupal/once#readme | |
Nov 23, 2022 at 23:59 | comment | added | Riley Lutz | Question: If I wanted to include multiple DOM elements as the selector parameter for the once() function, how would that have to look? Because I get a TypeError when just including the selector strings in a normal array. | |
Nov 23, 2022 at 23:29 | comment | added | Riley Lutz | Apologies for your bleeding heart, I'm fairly new to Drupal so I'm still learning how to integrate its features with JS. This solution worked great, I realize now that my posted solution is pretty sloppy and leads to way more function calls then needed. | |
Nov 23, 2022 at 23:05 | vote | accept | Riley Lutz | ||
Nov 22, 2022 at 2:13 | history | edited | Mario Steinitz | CC BY-SA 4.0 |
added 80 characters in body
|
Nov 22, 2022 at 1:54 | history | answered | Mario Steinitz | CC BY-SA 4.0 |