Registering Appropriate Listeners"
From Documentation
Tmillsclare (talk | contribs) m |
Tmillsclare (talk | contribs) m |
||
Line 4: | Line 4: | ||
#Capture clicks on our "target" | #Capture clicks on our "target" | ||
− | #Fire a custom onClear event when the target is clicked | + | #Fire a custom <mp>onClear</mp> event when the target is clicked |
{{ZKComponentDevelopmentEssentialsPageFooter}} | {{ZKComponentDevelopmentEssentialsPageFooter}} |
Revision as of 05:01, 14 July 2010
Registering listeners is a fundamental of many programming languages and event driven applications. Being an event driven framework ZK is no different. To accomplish our goal of a clear button we need to do two things:
- Capture clicks on our "target"
- Fire a custom onClear event when the target is clicked