This release is a pre-release and may not be stable for production use.
jQuery Placeholder
Integrates jQuery Watermark for z3c.form on Plone by
registering jquery.watermark’s JavaScript and CSS
introducing ‘’placeholder’’-directive to be used in schemas
registering value adapter to for annotated placeholder value
registering custom JavaScript to initialize watermarks
I wonder, if this product should’ve been named ‘’formwidget’’-something…
Example of Use
from zope import schema
from plone.directives import form
from jyu.z3cform.placeholder.directives import placeholder
from zope.i18nmessageid import MessageFactory as ZopeMessageFactory
_ = ZopeMessageFactory("my.domain")
class MyForm(form.Schema):
"""An example form
"""
placeholder(subject=_u("Type something here.."))
subject = schema.TextLine(
title=_(u"Subject"),
description=_("Subject of this submission"),
required=True,
)
Overlay Support
When you register custom form overlays in your custom JavaScript, you’d like to include placeholder support in your JavaScript like:
$(document).ready(function() {
$($('#my-form-link').prepOverlay({
subtype: 'ajax',
cssclass: 'content',
formSelector: 'form',
width: '40em',
}).attr("rel")).bind("onLoad", function() {
$(this).find("form .field").placeholder_z3cform();
});
});
Changelog
1.0b3 - 2011-02-23
Disabled textarea placeholder due to problems with TinyMCE’s textarea.
1.0b2 - 2011-01-25
Replaced $ global with jQuery, because KSS’ effects-plugin steals $ on IE.
1.0b1 - 2010-12-15
Initial release
Metadata
Release files for jyu.z3cform.placeholder 1.0b3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jyu.z3cform.placeholder-1.0b3.zip | 14.3 kB | Without provenance | Details for jyu.z3cform.placeholder-1.0b3.zip |
Release files / jyu.z3cform.placeholder-1.0b3.zip
| Download URL | jyu.z3cform.placeholder-1.0b3.zip |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ace52f9b5dac25484124ef2e7da8990b07459330de2c1d97a967b45acfe1aedc
|
|
BLAKE2b-256 checksum How to use checksums |
e2ca9c42cb0a1cce328e9b440ca6a727c87de0ac313480f10092805be3e0e1b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for jyu.z3cform.placeholder 1.0b3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.