on 08-14-2015 11:17 PM
How can I add a mask to a input in backoffice?
You can create your own editor. See https://wiki.hybris.com/x/HhEVD and http://www.zkoss.org/javadoc/7.0.3/zk/org/zkoss/zul/impl/InputElement.html#setConstraint(org.zkoss.z...) for more info.
@Override
public void render(final Component parent, final EditorContext<Double> context, final EditorListener<Double> listener) {
final Textbox editorView = new Textbox();
editorView.setParent(parent);
...
editorView.setConstraint("/^-?[0-9]+$/: Please enter a number");
...
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.