Module: Vident::Capabilities::StimulusAttributeStrings

Included in:
Vident::Component
Defined in:
lib/vident/capabilities/stimulus_attribute_strings.rb

Overview

as_stimulus_* returns a ready-to-splat HTML data-attribute string for the given stimulus declaration — usable from any rendering context (ERB partials, Phlex templates, helpers, controller renderers).

Unlike child_element, these helpers don't write to a buffer, so they work even when called on a Phlex Vident component from outside its own view_template lifecycle.