-
New Feature
-
Resolution: Done
-
Normal
-
None
-
None
-
ZK 8.0.1
the developer can add some extra functionality to the original component.
For example, we add jquery's mask to support for the textbox component.
<textbox xmlns:ca="client/attribute" ca:data-mask="00:00:00" onChange='Clients.log(self.value)'/>
And the handler of the data-attribute can predefine in a zk.xml file.
For example,
<client-config> <data-handler> <name>mask</name><!-- the attribute name, i.e. data-mask --> <depends>http://igorescobar.github.io/jQuery-Mask-Plugin/js/jquery.mask.min.js</depends> <script> function (wgt, dataValue) { jq(wgt.$n()).mask(dataValue); wgt.listen({onChange: function (event) { event.data.value = jq(this.$n()).cleanVal(); }}); } </script> </data-handler> </client-config>
1.
|
Add ZK-2730 feature to ZK wiki document | Closed | jumperchen |
|