diff options
Diffstat (limited to 'demos/composer/protected/pages/Home.page')
-rw-r--r-- | demos/composer/protected/pages/Home.page | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/demos/composer/protected/pages/Home.page b/demos/composer/protected/pages/Home.page index e7d7eea0..d4a9ce2f 100644 --- a/demos/composer/protected/pages/Home.page +++ b/demos/composer/protected/pages/Home.page @@ -14,7 +14,7 @@ implements <com:TTextBox ID="Interfaces" CssClass="slTextBox"/> </com:TPanel>
<com:TPanel GroupingText="Property Definitions">
-<com:TRepeater ID="PropertyList" ItemCommand="itemAction">
+<com:TRepeater ID="PropertyList" ItemCommand="propertyAction">
<prop:HeaderTemplate>
<table>
@@ -94,7 +94,7 @@ implements <com:TTextBox ID="Interfaces" CssClass="slTextBox"/> </com:TPanel>
<com:TPanel GroupingText="Event Definitions">
-<com:TRepeater ID="EventList" ItemCommand="itemAction">
+<com:TRepeater ID="EventList" ItemCommand="eventAction">
<prop:HeaderTemplate>
<table>
@@ -118,14 +118,23 @@ implements <com:TTextBox ID="Interfaces" CssClass="slTextBox"/> <com:TTextBox ID="Comments" Text=<%# $this->Parent->DataItem->Comments %> CssClass="slTextBox"/>
</td>
<td>
- <com:TButton ID="AddButton"
- Text="Add"
- CommandName="add"
- CommandParameter=<%# $this->Parent->ItemIndex %> />
- <com:TButton ID="RemoveButton"
+ <com:TButton
Text="Remove"
CommandName="remove"
- CommandParameter=<%# $this->Parent->ItemIndex %> />
+ CommandParameter=<%# $this->Parent->ItemIndex %>
+ />
+ <com:TButton
+ Text="Up"
+ CommandName="up"
+ CommandParameter=<%# $this->Parent->ItemIndex %>
+ Enabled=<%# $this->Parent->ItemIndex > 0%>
+ />
+ <com:TButton
+ Text="Down"
+ CommandName="down"
+ CommandParameter=<%# $this->Parent->ItemIndex %>
+ Enabled=<%# $this->Parent->ItemIndex < $this->Page->ClassDefinition->Events->Count-1 %>
+ />
</td>
</tr>
</prop:ItemTemplate>
|