Re: Revisiting the persisting of attributes on thecombo_box widget
"michaelf " <[email protected]>
| Newsgroups | gmane.comp.windows.devel.netwindows |
|---|---|
| Message-ID | <[email protected]> |
---------- Original Message ---------------------------------- From: Mark Anderson <[email protected]> > >Now that alex has made the widgets use prototype inheritance from >NW_widgetComponent, >i think there is a possibility of a shared hook. > >Are you in a situation where there is a fixed set of attributes that >you'd like copied >in *any* constructor in your app (no customization per constructor or >widget type)? This is correct. I have 3 attributes that exist which on every element on a form which I want coppied through to the nw widget that replaces it. >If so, i think i can pretty easily add this in environ_core.js >NW_checkNodeIsConstructor. >It would be based on a global config, such as > nwConfig['inline_copy_atts'] = ['foobar', 'tabindex']; This would work for me. This is basically what I've already done (wrt a nwConfig[] option) but I've only implemented it in the cbo box widget. -- Michael _______________________________________________ The netWindows developers list: [email protected] http://netwindows.org/mailman/listinfo/devel_netwindows.org