Description Usage Arguments See Also
View source: R/stimulus-assets.R
Stimulus JS assets from specified controller files. This
will automatically copy them into single directory and define the controllers
in the page after registering the Stimulus application. Anything in
<name>_controller.js
is converted into snake case.
1 | stimulus_assets(controllers, app_version, libs = "assets")
|
controllers |
(chr) paths to controller JS files |
app_version |
(str) a string that indicates the version |
libs |
(pth) path to be directed |
Other Stimulus:
ss_use_controller()
,
stimulus_modifiers
,
stimulus
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.