Skip to content

Commit

Permalink
docs: Also add example for element.dataset.reflex
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoroth committed Mar 14, 2023
1 parent e225a1f commit 055989f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/guide/reflex-classes.md
Expand Up @@ -149,6 +149,7 @@ class ExampleReflex < ApplicationReflex
element.checked # => true
element.label # => "Example"

element.dataset.reflex # => "change->Example#accessors"
element.data_reflex # => "change->Example#accessors"
element["data-reflex"] # => "change->Example#accessors"
element.dataset[:reflex] # => "change->Example#accessors"
Expand Down

0 comments on commit 055989f

Please sign in to comment.