I haven’t seen any examples of this and am wondering if I can place liveview directives like phx-click when using a non-template based function like content_tag?
Yes, pass phx_click: “…” as an option.
thanks, i’ll try it out. Is that documented somewhere? Is there special handling just for phoenix attributes that handles the underscores?
Just phoenix attributes. I do think it’s in the doc somewhere but don’t have the link handy.