I have a requirement to extend the YUI Panel with some custom functionality that will be in a new file and shared across multiple views.
I am at a bit of a loss as to how best to go about this, can anyone give me any pointers please?
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.
Let’s say you want to extend a Panel to create one that has a list in its body. I usually use
Y.Base.createfor this. It’s a more declarative way of extending YUI classes than using a constructor andY.extend. But I’ll stay closer to your example in the YUI forums.There are a couple of tricks dealing with WidgetStdMod (one of the components of
Y.Panel), but mostly it’s just about usingY.extendand following the YUI inheritance patterns. I’ll try to answer with an example: