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

Allow Custom Attributes on Input Elements (via View Helper) #76

Open
zschuessler opened this issue Mar 15, 2016 · 0 comments
Open

Allow Custom Attributes on Input Elements (via View Helper) #76

zschuessler opened this issue Mar 15, 2016 · 0 comments

Comments

@zschuessler
Copy link

Use Case

I would like to:

  1. Show a disabled input field on a form, automatically setting the value for the user. The user should still see the value but not be able to edit it.
  2. Set any number of custom HTML5 data attributes on an element.

Issue
Current input view helpers, which render individual form elements, do not allow for setting custom attributes on the element.

See:
https://github.com/DeltaSystems/dewdrop/blob/196c00161027ecf122fc78ed4b32a9af856896c9/Dewdrop/View/Helper/InputText.php#L107

Proposed Solution
Allow users to set attributes as needed. Whether it be data attributes, disabled flag, or otherwise.

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

No branches or pull requests

1 participant