| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <mx:Application backgroundColor="0xFFFFFF" backgroundImage="" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" creationComplete="startIt()" layout="vertical" height="375" width="500"> |
| |
| <mx:Script> |
| <![CDATA[ |
| [Bindable] |
| [Embed(source="../../../../../Assets/Images/GridImages/dg_header_skin.gif")] |
| public var dg_header_skin:Class; |
| |
| [Bindable] |
| [Embed(source="../../../../../Assets/Images/GridImages/vertical_Separator_Skin.gif")] |
| public var dg_v_s_skin:Class; |
| |
| [Bindable] |
| [Embed(source="../../../../../Assets/Images/GridImages/horizontal_Separator_Skin.gif")] |
| public var dg_h_s_skin:Class; |
| |
| public function startIt():void |
| { |
| mydatagrid.dataProvider=[{col1:"one",col2:"two",col3:"three"}] |
| } |
| ]]> |
| </mx:Script> |
| |
| <mx:Style> |
| @font-face { |
| src: url("../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Regular.ttf"); |
| fontFamily: EmbeddedArial; |
| embedAsCFF: false; |
| } |
| |
| @font-face { |
| src: url("../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Bold.ttf"); |
| fontWeight: bold; |
| fontFamily: EmbeddedArial; |
| embedAsCFF: false; |
| } |
| |
| @font-face { |
| src: url("../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Italic.ttf"); |
| fontStyle: italic; |
| fontFamily: EmbeddedArial; |
| embedAsCFF: false; |
| } |
| |
| @font-face { |
| src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf"); |
| fontFamily: EmbeddedVerdana; |
| embedAsCFF: false; |
| } |
| |
| @font-face { |
| src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf"); |
| fontWeight: bold; |
| fontFamily: EmbeddedVerdana; |
| embedAsCFF: false; |
| } |
| |
| @font-face { |
| src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf"); |
| fontStyle: italic; |
| fontFamily: EmbeddedVerdana; |
| embedAsCFF: false; |
| } |
| |
| global{ |
| fontFamily: EmbeddedVerdana; |
| fontAntiAliasType: normal; |
| } |
| </mx:Style> |
| |
| <mx:ArrayCollection id="dataArray1"> |
| <mx:Object col1="one" col2="two" col3="three" /> |
| <mx:Object col1="one1" col2="1" col3="three1" /> |
| <mx:Object col1="one2" col2="2" col3="three2" /> |
| <mx:Object col1="one3" col2="3" col3="three3" /> |
| <mx:Object col1="one4" col2="4" col3="three4" /> |
| <mx:Object col1="one5" col2="5" col3="three5" /> |
| <mx:Object col1="one6" col2="6" col3="three6" /> |
| <mx:Object col1="one7" col2="7" col3="three7" /> |
| <mx:Object col1="one8" col2="8" col3="three8" /> |
| <mx:Object col1="one9" col2="9" col3="three9" /> |
| <mx:Object col1="one0" col2="10" col3="three10" /> |
| <mx:Object col1="one10" col2="11" col3="three11" /> |
| <mx:Object col1="one11" col2="12" col3="three12" /> |
| <mx:Object col1="one12" col2="13" col3="three13" /> |
| <mx:Object col1="one13" col2="14" col3="three14" /> |
| <mx:Object col1="one14" col2="15" col3="three15" /> |
| </mx:ArrayCollection> |
| |
| <mx:Canvas id="box" width="100%" height="100%"> |
| <mx:DataGrid id="mydatagrid"> |
| <mx:columns> |
| <mx:DataGridColumn headerText="Column 1" dataField="col1"/> |
| <mx:DataGridColumn headerText="Column 2" dataField="col2"/> |
| <mx:DataGridColumn headerText="Column 3" dataField="col3"/> |
| </mx:columns> |
| </mx:DataGrid> |
| |
| </mx:Canvas> |
| <mx:TextInput id="ti"/> |
| </mx:Application> |