PDA

View Full Version : Factory



RCN
Mar 20, 2015, 11:57 PM
<!DOCTYPE html>
<html>
<head runat="server">
</head>
<body>
<ext:ResourceManager runat="server" />
<ext:Button Margin="2" IconAlign="Top" Flat="true" runat="server">
<Factory Instance="App.CustomButton" Alias="customButton" />
</ext:Button>

<ext:Panel Title="West" Width="200" Height="200" runat="server">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<Items>
<ext:Button Text="Brazil" Icon="FlagBr" FactoryAlias="customButton" runat="server" />
<ext:Button Text="Canada" Icon="FlagCa" FactoryAlias="customButton" runat="server" />
<ext:Button Text="Russia" Icon="FlagRu" FactoryAlias="customButton" runat="server" />
</Items>
</ext:Panel>
</body>
</html>