I got idea like i would like to show some forms while am click on HTML label , Calling Extjs viewController from HTML DOM element tried to add click event to fetch the controller but didnt worked that.
Then i realized after rendering that DOM i will add function to that elementt click function. The code will like below.
This is the code of HTML text from JSON object.
After rendering adding the controller method to that DOM Element
Then i realized after rendering that DOM i will add function to that elementt click function. The code will like below.
This is the code of HTML text from JSON object.
<label
id='lblShowDep'>Privacy
Policy</label>
After rendering adding the controller method to that DOM Element
if(Ext.get('lblShowDep')){
Ext.get('lblShowDep').on('click',
function()
{
controller.onClickShowDep();
});
}
No comments:
Post a Comment