3 ms·
Sorry about being down, it's all back up now The great thing about widgets is that they act as OO Classes on top of a DOM object. So you can say 'make this DO
by cschneid 16y ago
Sorry about being down, it's all back up now
The great thing about widgets is that they act as OO Classes on top of a DOM object. So you can say 'make this DOM object act like an XYZ'. Sometimes the XYZ is a very visible thing (checkbox, draggable, etc), but other times, we have pure code widgets that do internal routing, or traditional "controller" type activities.
For instance, each <li> may be a widget that does... whatever, but then the <ul> may be a widget that listens for events, and adds/removes <li>s from underneath it as appropriate.