Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Component, Control or Both

$
0
0
Let's say you wanted to develop a jQuery UI-like tabs widget using CanJS. This widget will take existing DOM elements/structure and convert them into tabbed format.

What would be the correct way develop this using CanJS? Would you use can.Component, can.Control or both?

A few months ago the answer was simple, but that was before can.Component changed the landscape of CanJS development.

The part the seems to point, at least partially, to can.Control is that we are modifying existing DOM and we'd want the end-user of our tabs widget to be able to something like this to instantiate it:
  1. new TabsWidget( "#SOME_ID", { options: options } );

I am wondering how the folks at Bitovi would approach this?

Viewing all articles
Browse latest Browse all 3491

Trending Articles