Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deeper Stimulus integration #11

Closed
3 tasks done
leouofa opened this issue Jun 1, 2022 · 3 comments · Fixed by #15
Closed
3 tasks done

Add deeper Stimulus integration #11

leouofa opened this issue Jun 1, 2022 · 3 comments · Fixed by #15
Labels
enhancement New feature or request

Comments

@leouofa
Copy link
Owner

leouofa commented Jun 1, 2022

  • Ability to pass props & values w/ namespacing.
  • Simplify the ability to pass targets via nested namespacing.
  • Add property shortcuts for data (d: ), controller (c: ), props (p: ), values (v: ) and target (t:)
@leouofa leouofa added the enhancement New feature or request label Jun 1, 2022
@leouofa
Copy link
Owner Author

leouofa commented Apr 13, 2023

data: { 'client--purchase-target': 'tokens'}

should become

target: { client--purchase: 'tokens' }

or

t: { client--purchase: 'tokens' }

@leouofa
Copy link
Owner Author

leouofa commented Apr 13, 2023

data: { 'client--purchase-tokens-token-price-param': token_price}

should become

params: { 'client--purchase': { tokens: token-price }}

or

p: { 'client--purchase': { tokens: token-price }}

@leouofa
Copy link
Owner Author

leouofa commented Apr 13, 2023

=r ux.div controller: 'client--purchase-tokens'

can be short-cutted as

=r ux.div c: 'client--purchase-tokens'

@leouofa leouofa pinned this issue Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant