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

Implement customizable elements #80

Merged
merged 8 commits into from
Mar 9, 2024
Merged

Implement customizable elements #80

merged 8 commits into from
Mar 9, 2024

Conversation

josefarias
Copy link
Owner

Coming from #36

@josefarias josefarias changed the title Implement custom elements Implement customizable elements Mar 7, 2024
@@ -0,0 +1,12 @@
<%= combobox_tag "state", State.all do |combobox| %>
<% combobox.customize :fieldset, class: "custom-class--fieldset", data: { customized_fieldset: "" } %>
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking I like customize_fieldset better. Should be simple to metaprogram. Drawback is ambiguous method source.

@josefarias josefarias merged commit 65366dd into main Mar 9, 2024
2 checks passed
@josefarias josefarias deleted the jose/custom-elements branch March 9, 2024 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant