AIR版的通讯簿(十五)

 <mx:DataGrid width="100%" height="100%" dataProvider="{dataList}" id="myDg">
    <mx:columns>
     <mx:DataGridColumn headerText="编号" width="40" dataField="customer_id"/>
     <mx:DataGridColumn headerText="客户名称" dataField="customer_name" itemRenderer="mx.controls.Label"/>
     <mx:DataGridColumn headerText="客户地址" dataField="customer_address" itemRenderer="mx.controls.Label"/>
     <mx:DataGridColumn headerText="固定电话" dataField="customer_telephone" width="110"/>
     <mx:DataGridColumn headerText="手机号" dataField="customer_mobile" width="80"/>
     <mx:DataGridColumn headerText="传真" dataField="customer_fax" width="110"/>
     <mx:DataGridColumn headerText="查看名片" width="60" dataField="img_url">
      <mx:itemRenderer>
       <mx:Component>
        <mx:HBox verticalAlign="middle" horizontalAlign="center">
         <mx:LinkButton focusEnabled="false"  width="10"
                                               icon="@Embed(source='assets/images/view.png')"
                                               click="outerDocument.viewImg()"/>
        </mx:HBox>
       </mx:Component>
      </mx:itemRenderer>
     </mx:DataGridColumn>

你可能感兴趣的:(AIR版的通讯簿(十五))