Azy
08.02.2007, 09:59
Создал компонент.
Обозвал price.as
<?xml version="1.0" encoding="utf-8"?>
<ed:ePrice xmlns:ed="ed.*" width="100%" restrict="0-9\\."/>
подключил в основном mxml-e
<mx:columns>
<mx:DataGridColumn dataField="num" headerText="" width="20"/>
<mx:DataGridColumn dataField="name" headerText="Наименование"/>
<mx:DataGridColumn dataField="description" headerText="Описание"/>
<mx:DataGridColumn dataField="measure" headerText="Ед. Изм." width="100"/>
<mx:DataGridColumn dataField="price" headerText="Цена" width="100" itemEditor="eprice"/>
</mx:columns>
</mx:DataGrid>
Терь вопрос. Хочу перенести файл с компонентом в папку cellrenderers. После переноса его не видно. Как подключать его в качестве itemEditor?
В голову пришло только itemEditor="cellrenderers.eprice" - не пашет.
Обозвал price.as
<?xml version="1.0" encoding="utf-8"?>
<ed:ePrice xmlns:ed="ed.*" width="100%" restrict="0-9\\."/>
подключил в основном mxml-e
<mx:columns>
<mx:DataGridColumn dataField="num" headerText="" width="20"/>
<mx:DataGridColumn dataField="name" headerText="Наименование"/>
<mx:DataGridColumn dataField="description" headerText="Описание"/>
<mx:DataGridColumn dataField="measure" headerText="Ед. Изм." width="100"/>
<mx:DataGridColumn dataField="price" headerText="Цена" width="100" itemEditor="eprice"/>
</mx:columns>
</mx:DataGrid>
Терь вопрос. Хочу перенести файл с компонентом в папку cellrenderers. После переноса его не видно. Как подключать его в качестве itemEditor?
В голову пришло только itemEditor="cellrenderers.eprice" - не пашет.