Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 1 and Version 2 of WidgetPackages


Ignore:
Timestamp:
02/18/06 21:23:11 (9 years ago)
Author:
bjourne
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WidgetPackages

    v1 v2  
    1 This information mostly comes from KevinDangoor's webcast at http://www.turbogears.org/docs/devcasts.html. 
     1This information mostly comes from KevinDangoor's devcast at http://www.turbogears.org/docs/devcasts.html. 
    22 
    3 Most widgets use resources to control various aspects of themselves. For example, the CalendarDatePicker widget uses the CSS "calendar/calendar-system.css" and the Javascripts "calendar/calendar.js", "calendar/calendar-lang-%s.js" and "calendar/calendar-setup.js." The DataGrid widget uses the CSS "grid.css" and the template "datagrid.kid." When you build your own widgets it is likely that you will also need to use resource files. You specify which resource files your widget require by using the attributes `css`, `javascript` and `template` in your widget class. 
     3Most widgets use resources to control various aspects of themselves. For example, in Turbogears widget library (the files in source:/trunk/turbogears/widgets) there is a widget named CalendarDatePicker that display a Javascript calendar. The widget uses the following resource files: 
     4 
     5 * The CSS file source:/trunk/turbogears/widgets/static/calendar/calendar-system.css 
     6 * The Javascript file source:/trunk/turbogears/widgets/static/calendar/calendar.js 
     7 * The Javascript file source:/trunk/turbogears/widgets/static/calendar/calendar-setup.js 
     8 * Plus some more locale-specific Javascript files located in source:/trunk/turbogears/widgets/static/calendar/lang 
     9  
     10The DataGrid widget uses: 
     11 
     12 * The CSS file source:/trunk/turbogears/widgets/static/grid.css 
     13 * The KID template source:/trunk/turbogears/widgets/templates/datagrid.kid 
     14 
     15When you build your own widgets it is likely that you will also need to use resource files. You specify which resource files your widget require by using the attributes `css`, `javascript` and `template` in your widget class. 
    416 
    517{{{