OpenInteract2::Manual::Widgets 1.99_06
Sponsored Links
OpenInteract2::Manual::Widgets 1.99_06 Ranking & Summary
File size:
0.91 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
836
Date added:
2007-07-16
Publisher:
Chris Winters
OpenInteract2::Manual::Widgets 1.99_06 description
OpenInteract2::Manual::Widgets Perl module contains template widgets in OpenInteract.
OpenInteract2 supports using templates as a simple graphical widget. A widget is a common element into which you can just plug in text or parameters to customize it. For example, an INPUT element of type TEXT is a particular type of widget -- you can customize its size, name, and default value. (Some widget implementations will maintain state for you across requests, have validation, etc. These dont do that.)
Widgets can also include other widgets. Such as a row that uses the INPUT TEXT widget described above to create a labeled input field, with a label on the left and the input widget on the right.
One of the main benefits of using these over HTML is centralization -- a change in one place enacts changes throughout your site. All column headers can look a certain way and be changed easily, all textboxes can be consistent and you can create widgets specific to your site and needs -- such as for inputting dates or money, or displaying addresses-- for a consistent user interface.
Heres an example:
[%########################################
form_text( name, value, size, maxlength, field_label )
Generate a simple text field.
Defaults:
size = 20
maxlength = 50
########################################-%]
[%- DEFAULT size = 20;
DEFAULT maxlength = 50; -%]
[%- field_pre_label -%]
< input type="text" name="[% name %]" value="[% value %]"
size="[% size %]" maxlength="[% maxlength %]" >
[%- field_label -%]
And you would reference this like:
[% INCLUDE form_text( name = "batting_average",
value = ".389" size = 5 ) -%]
And when the template is processed, get in return:
< input type="text" name="batting_average" value=".389"
size="5" maxlength="50" >
Calling widgets from other widgets is just as simple:
[%########################################
label_form_text_row( label, count, name, value,
field_label )
Display a row to input text: label on left,
text input on right.
Defaults:
colspan = 2
########################################-%]
[%- DEFAULT colspan = 2; -%]
[%- INCLUDE label_row_begin( colspan = 1 ) -%]
[%- INCLUDE data_cell_begin %][% INCLUDE form_text %]
< /td >< /tr >
Here we call three separate items, two of which (label_row_begin and data_cell_begin) arent really widgets but rather just named areas for common code. This might be called:
[% INCLUDE label_form_text_row( label = Batting Average,
name = batting_average,
value = .389, size = 5 ) -%]
And result in:
< tr valign="middle" >
< td align="right" >< b >Batting Average< /b >< /td >
< td align="right" >
< input type="text" name="batting_average" value=".389"
size="5" maxlength="50" >
< /td >
< /tr >
And youre not restricted to simple fill-in elements either. You can represent a common data-oriented widget -- such as a drop-down box representing countries your company services -- in this manner as well. Heres how such a call might look:
[%# Use USA as default, antagonizing the rest of the world...-%]
[%- picked_country = user.country || United States -%]
[% INCLUDE label_form_country_select( label = Countries,
name = country,
picked = picked_country ) -%]
Using this, the page designer doesnt care how many countries the company services, whether a new one has been added to the list, etc. Just make the call and the graphic element will be created the same way every time.
Using these template widgets you can build a library of display elements very quickly.
OpenInteract2 supports using templates as a simple graphical widget. A widget is a common element into which you can just plug in text or parameters to customize it. For example, an INPUT element of type TEXT is a particular type of widget -- you can customize its size, name, and default value. (Some widget implementations will maintain state for you across requests, have validation, etc. These dont do that.)
Widgets can also include other widgets. Such as a row that uses the INPUT TEXT widget described above to create a labeled input field, with a label on the left and the input widget on the right.
One of the main benefits of using these over HTML is centralization -- a change in one place enacts changes throughout your site. All column headers can look a certain way and be changed easily, all textboxes can be consistent and you can create widgets specific to your site and needs -- such as for inputting dates or money, or displaying addresses-- for a consistent user interface.
Heres an example:
[%########################################
form_text( name, value, size, maxlength, field_label )
Generate a simple text field.
Defaults:
size = 20
maxlength = 50
########################################-%]
[%- DEFAULT size = 20;
DEFAULT maxlength = 50; -%]
[%- field_pre_label -%]
< input type="text" name="[% name %]" value="[% value %]"
size="[% size %]" maxlength="[% maxlength %]" >
[%- field_label -%]
And you would reference this like:
[% INCLUDE form_text( name = "batting_average",
value = ".389" size = 5 ) -%]
And when the template is processed, get in return:
< input type="text" name="batting_average" value=".389"
size="5" maxlength="50" >
Calling widgets from other widgets is just as simple:
[%########################################
label_form_text_row( label, count, name, value,
field_label )
Display a row to input text: label on left,
text input on right.
Defaults:
colspan = 2
########################################-%]
[%- DEFAULT colspan = 2; -%]
[%- INCLUDE label_row_begin( colspan = 1 ) -%]
[%- INCLUDE data_cell_begin %][% INCLUDE form_text %]
< /td >< /tr >
Here we call three separate items, two of which (label_row_begin and data_cell_begin) arent really widgets but rather just named areas for common code. This might be called:
[% INCLUDE label_form_text_row( label = Batting Average,
name = batting_average,
value = .389, size = 5 ) -%]
And result in:
< tr valign="middle" >
< td align="right" >< b >Batting Average< /b >< /td >
< td align="right" >
< input type="text" name="batting_average" value=".389"
size="5" maxlength="50" >
< /td >
< /tr >
And youre not restricted to simple fill-in elements either. You can represent a common data-oriented widget -- such as a drop-down box representing countries your company services -- in this manner as well. Heres how such a call might look:
[%# Use USA as default, antagonizing the rest of the world...-%]
[%- picked_country = user.country || United States -%]
[% INCLUDE label_form_country_select( label = Countries,
name = country,
picked = picked_country ) -%]
Using this, the page designer doesnt care how many countries the company services, whether a new one has been added to the list, etc. Just make the call and the graphic element will be created the same way every time.
Using these template widgets you can build a library of display elements very quickly.
OpenInteract2::Manual::Widgets 1.99_06 Screenshot
Advertisements
OpenInteract2::Manual::Widgets 1.99_06 Keywords
OpenInteract2
Widgets 1.99
INCLUDE
Widgets Perl
OpenInteract
DEFAULT
Perl module
label
text
widgets
size
name
value
OpenInteract2::Manual::Widgets 1.99_06
OpenInteract2ManualWidgets
OpenInteract2::Manual::Widgets 1.99_06
Bookmark OpenInteract2::Manual::Widgets 1.99_06
OpenInteract2::Manual::Widgets 1.99_06 Copyright
WareSeeker periodically updates pricing and software information of OpenInteract2::Manual::Widgets 1.99_06 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of OpenInteract2::Manual::Widgets 1.99_06 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
widgets for windows
value city department store
label printers
address labels
blue book value
yahoo widgets
widgets yahoo
value city furniture store
label software
value city furniture
labels
name definitions
text messages
size matters
widgets for mac
value furniture
widgets for windows xp
label holders
Related Software
OpenInteract2::Manual::I18N is an internationalization in OpenInteract2. Free Download
OpenInteract2::Manual::Tutorial is a Perl module that will teach learn you how to create and modify a package. Free Download
OpenInteract2::Manual::AdminApache is a Perl module for compiling and configuration Apache/mod_perl 1.x. Free Download
OpenInteract2::Config::Initializer is a Perl module for observable configuration initialization events. Free Download
OpenInteract2::Datasource::DBI is a Perl module that can create DBI database handles. Free Download
OpenInteract2::TT2::Plugin is a Perl module for custom OpenInteract functionality in templates. Free Download
OpenInteract2::Conversion::ActionConfig is a Perl module that can convert old action.perl files into INI configurations. Free Download
HTML::Widget is a Perl module with HTML Widget And Validation Framework. Free Download
Latest Software
Popular Software
Favourite Software