I would like to add an title Icon image to a Panel, but cant find the click event on that icon,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
titleIconObjectof thePanelclass is declared as anmx_internalvariable, so if you want to do anything with it you will probably have to extend Panel and override it and some of the methods that reference it.EDITED TO INCLUDE FURTHER INFORMATION FROM MY COMMENT:
@seismael: Actually, upon further review, a better way would be to override commitProperties and handle it there. Open up the Panel class in the SDK and look for the section beginning if (_titleIconChanged) (in the current SDK I’m using it’s line 1168). Just do super.commitProperties() and then adjust that conditional block to add your event listener for _titleIcon, etc