Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3354

Re: Diff between create component vs extend

$
0
0

HI Miley

 

I am trying to understand your question. Maybe it is easier to have an example.

For example, you have a new Control, ControlABC. And you want to have a common logic (alert('Hello World') in the click delegate. On top of this you want controller code in the control.

 

I do not advocate having controller code in control. The common logic in control is ok.

 

Thanks

-D


Viewing all articles
Browse latest Browse all 3354

Trending Articles