avo icon indicating copy to clipboard operation
avo copied to clipboard

Include stimulus to custom page

Open Sweex99 opened this issue 3 years ago • 2 comments
trafficstars

Context

I create customer page (html, route, action controller) and i want to connect stimulus controller to my custom page but it does not work. How can i include stimulus controller to customer page

System configuration

Avo version: 2.10.2

Rails version: 7.0.3.1

Ruby version: 3.1.2

License type (Community or Pro): COM

Screenshots

Screenshot 2022-07-20 at 18 06 43 Screenshot 2022-07-20 at 18 07 19 Screenshot 2022-07-20 at 18 07 42

Sweex99 avatar Jul 20 '22 15:07 Sweex99

You need to add that JS controller on the page with a custom asset pipeline. It sounds more advanced than it is.

It's adding the JS javascript_include_tag to your _head.html.erb partial (which you eject from Avo with bin/rails generate avo:eject :head.

More on that here.

adrianthedev avatar Jul 20 '22 16:07 adrianthedev

This issue has been marked as stale because there was no activity for the past 15 days.

github-actions[bot] avatar Aug 05 '22 03:08 github-actions[bot]

Closing this because there was no activity for the past 15 days. Feel free to reopen if new information pops up ✌️

github-actions[bot] avatar Aug 21 '22 03:08 github-actions[bot]