-
Notifications
You must be signed in to change notification settings - Fork 1
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 an "Action" component #161
Comments
Great idea, 2 points:
|
I didn't think that passing parameters to the method would be necessary for the uses I have in mind. Any ideas on how to add this? To specify a target, you can add We could also pass several instance types in the "target" option, separating them with a comma or a space. <button
type="button"
data-component="Action"
data-option-target="Panel Modal"
data-option-selector=".can-be-closed"
data-option-method="close">
Close every panel & modal with .can-be-closed class
</button> |
@titouanmathis Here is a first draft, I prepare the PR... |
I think your implementation is missing an option to configure the type of event triggering the action. Maybe a This could then be used on |
JS component with no twig template to trigger action on another component.
API example :
The text was updated successfully, but these errors were encountered: