Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
stimulus
v0.5.0
Stimulus
Action
Controller
Outlet
Param
Target
Value
Generated using Crystal 1.14.0
2024-11-16 05:17:59 UTC
class
Stimulus::
Controller
Stimulus::Controller
JS::Class
Reference
Object
Defined in:
stimulus/controller.cr
Constant Summary
ATTR_NAME
=
"data-controller"
Class Method Summary
.controller_name
.param
(name, value)
.to_html_attrs
(_tag, attrs)
.to_s
(io)
Macro Summary
action
(name, &blk)
outlets
(*outlet_controllers)
targets
(*names)
values
(**names)
Class Method Detail
def self.
controller_name
#
[
View source
]
def self.
param
(name, value)
#
[
View source
]
def self.
to_html_attrs
(_tag, attrs)
#
[
View source
]
def self.
to_s
(io)
#
[
View source
]
Macro Detail
macro
action
(name, &blk)
#
[
View source
]
macro
outlets
(*outlet_controllers)
#
[
View source
]
macro
targets
(*names)
#
[
View source
]
macro
values
(**names)
#
[
View source
]