-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi , Depends local, Decimal box allows use "." or ",". If the local is FR only "." is allowed. if the local is EN both "." and "," are allowed.
It is possible to allow "." and "," int the both local(FR and EN) ?
Hi
You can override getAllowKeys_ method, for example
<zk>
<script><![CDATA[
zk.afterLoad('zul.inp', function() {
var _decimalbox = {};
zk.override(zul.inp.Decimalbox.prototype, _decimalbox, {
getAllowedKeys_: function() {
var symbols = this._localizedSymbols;
return this.$supers('getAllowedKeys_', arguments)
+ (symbols ? symbols: zk).DECIMAL + (symbols ? symbols: zk).GROUPING;
}
});
});
]]></script>
<decimalbox />
</zk>
Thanks,
but when I add the code I get: Cause: Child not allowed in org.zkoss.zul.Decimalbox
Asked: 2013-12-11 16:54:09 +0800
Seen: 10 times
Last updated: Dec 16 '13