-
Notifications
You must be signed in to change notification settings - Fork 22
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
placeholder #84
Comments
Can you provide an example what you mean by placeholder? You could look at the |
It's also possible (though probably not recommended --- I would stick with tags) to add new attributes to stock fields; these values are copied into bound instances (binding copies the >>> from zope.schema import *
>>> from zope.interafce import Interface
>>> from zope.interface import Interface
>>> class IFoo(Interface):
... field = Bytes(title='a bytes')
... field.placeholder = 'my placeholder'
...
>>> IFoo['field'].placeholder
'my placeholder'
>>> IFoo['field'].bind(object()) is IFoo['field']
False
>>> IFoo['field'].bind(object()).placeholder
'my placeholder' |
Closing since there've been no updates. |
It would be wonderful if I could add a placeholder to a zope.schema field.
Or any other htmattribute for that matter.
The text was updated successfully, but these errors were encountered: