From 05879b19350009f9d9c9db6868b38619d3cb4bdc Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 1 Jun 2011 21:01:57 +0000 Subject: added documentation for TActiveLabel class --- .../pages/ActiveControls/ActiveLabel.page | 16 ++++++++++ .../protected/pages/ActiveControls/Home.page | 6 ++-- .../ActiveControls/Samples/TActiveLabel/Home.page | 34 ++++++++++++++++++++++ .../ActiveControls/Samples/TActiveLabel/Home.php | 16 ++++++++++ 4 files changed, 69 insertions(+), 3 deletions(-) create mode 100644 demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php (limited to 'demos/quickstart/protected/pages/ActiveControls') diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page b/demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page new file mode 100644 index 00000000..8db4cf34 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveLabel.page @@ -0,0 +1,16 @@ + + +

TActiveLabel

+ + +

+TActiveLabel is the active control counterpart of TLabel component. When +ActiveControl.EnableUpdate property is true during a callback request, setting Text +property will also set the text of the label on the client upon callback +completion. Similarly, setting ForControl will also set +the client-side "for" attribute on the label. +

+ + + +
$Id$
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Home.page b/demos/quickstart/protected/pages/ActiveControls/Home.page index 0490733b..7e0e551a 100644 --- a/demos/quickstart/protected/pages/ActiveControls/Home.page +++ b/demos/quickstart/protected/pages/ActiveControls/Home.page @@ -54,9 +54,9 @@ TActiveButton control. See also the later part of the TActiveLabel - represents a label on a Web page. - The label can be customized via various CSS attributes. + TActiveLabel + represents a label on a Web page. + The label can be customized via various CSS attributes.
  • diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page new file mode 100644 index 00000000..a1e242d3 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page @@ -0,0 +1,34 @@ + + +

    TActiveLabel Samples

    + + + + + + + +
    +An active label text being set as the result of a callback: + + + + +
    +Upon button click, the textbox contents will be set on the label. Note that text needs to be properly escaped to avoid html injections: + + + + +
    + +
    $Id$
    \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php new file mode 100644 index 00000000..aa26fbe5 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php @@ -0,0 +1,16 @@ +label1->Text="You clicked the button, didn't you?"; + } + + public function buttonClicked2($sender,$param) + { + $this->label2->Text=THttpUtility::htmlEncode($this->txt2->Text); + } +} + +?> \ No newline at end of file -- cgit v1.2.3