From 67666aaccb4b4743a084b214722e1173e827e9d1 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 1 Jun 2011 22:14:00 +0000 Subject: upported recent documentation changes from branch/3.1 to trunk/ --- .../protected/pages/Controls/ColorPicker.page | 29 +++++++++++++++-- .../quickstart/protected/pages/Controls/Head.page | 34 +++++++++++++++++++- .../pages/Controls/Samples/TColorPicker/Home.page | 37 ++++++++++++++++++++++ .../protected/pages/Controls/Standard.page | 4 +-- 4 files changed, 99 insertions(+), 5 deletions(-) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page (limited to 'demos/quickstart/protected/pages/Controls') diff --git a/demos/quickstart/protected/pages/Controls/ColorPicker.page b/demos/quickstart/protected/pages/Controls/ColorPicker.page index cc931840..57c39857 100644 --- a/demos/quickstart/protected/pages/Controls/ColorPicker.page +++ b/demos/quickstart/protected/pages/Controls/ColorPicker.page @@ -3,8 +3,33 @@

TColorPicker

-

-TBD +

+TColorPicker displays a text box for color input purpose. +Next to the textbox there's a button filled with the current chosen color. +Users can write a color name directly in the text box as an hex triplet (also known as HTML notation, eg: #FF00FF). +
Alternatively, if the ShowColorPicker property is enabled (it is by default), users can click the button +to have a color picker UI appear. A color chan be chosen directly by clicking on the color picker.

+

+TColorPicker has three different color picker UI Modes:

+ + +

The CssClass property can be used to override the CSS class name +for the color picker panel. The ColorStyle property changes the overall color picker style. +The following ColorStyle values are available:

+ + +

If the Mode property is set to Full, the color picker panel will +display an "Ok" and "Cancel" buttons. You can customize the button labels setting the OKButtonText +and CancelButtonText properties.

+ + +
$Id$
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Head.page b/demos/quickstart/protected/pages/Controls/Head.page index 7e4a19ec..594bb069 100644 --- a/demos/quickstart/protected/pages/Controls/Head.page +++ b/demos/quickstart/protected/pages/Controls/Head.page @@ -4,7 +4,39 @@

-TBD +THead displays a head element on a page. It displays the content +enclosed in its body and the page title set by the Title property. +

+ +

+In addition, stylesheets and JavaScripts registered via +

    +
  • TClientScriptManager::registerStyleSheet,
  • +
  • TClientScriptManager::registerStyleSheetFile,
  • +
  • TClientScriptManager::registerHeadJavaScript and
  • +
  • TClientScriptManager::registerHeadJavaScriptFile
  • +
+will also be displayed in the head.

+ +

+THead also manages and displays meta tags through its MetaTags +property. You can add a meta object to the collection in code dynamically, +or add it in template using the following syntax +

+ + +<com:THead> + <com:TMetaTag HttpEquiv="Pragma" Content="no-cache" /> + <com:TMetaTag Name="keywords" Content="Prado" /> +</com:THead> + + +

+Note, TPage has a property Head that refers to +the THead control currently on the page. A page can have at most one THead +control. Although not required, it is recommended to place a THead on your page. +Without a THead on the page, stylesheets and javascripts in the current page +theme will not be rendered.

$Id$
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page new file mode 100644 index 00000000..0a1f3705 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TColorPicker/Home.page @@ -0,0 +1,37 @@ + + +

TColorPicker Samples

+ + + + + + + + + + + + + + + + + + + + + + + +
Default TColorPicker, Mode="Basic" + +
Mode="Simple"
pre-selected red color
+ +
Mode="Full" + +
Disabled color picker panel: ShowColorPicker="false" + +
+ +
$Id: Home.page 1650 2007-01-24 06:55:32Z wei $
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Standard.page b/demos/quickstart/protected/pages/Controls/Standard.page index 3b6079d6..9fde5a29 100644 --- a/demos/quickstart/protected/pages/Controls/Standard.page +++ b/demos/quickstart/protected/pages/Controls/Standard.page @@ -23,7 +23,7 @@ TClientScriptLoader loads custom javascript libraries. -
  • * +
  • TColorPicker represents an input field taking color values via a color dialog.
  • @@ -43,7 +43,7 @@ TFileUpload represents a file upload field. It allows users to upload a file to server. -
  • * +
  • THead represents the <head> element on an HTML Web page. It is required by a PRADO page should it use themes.
  • -- cgit v1.2.3