且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 ItemRenderer 中使用超出数据网格范围的变量?

更新时间:2023-11-25 08:07:46

如果 someComponentVariable 是包含 DataGrid 的类的公共属性,则可以使用 outerDocumentcomponent 访问它.

If someComponentVariable is a public property of the class enclosing DataGrid, you can use outerDocument to access it from a component.

<ns1:SidePanelBonus bonusName="{data.name}" description="{data.description}" 
    arrow="{outerDocument.someComponentVariable}">
</ns1:SidePanelBonus>   

请参阅 创建内联项目渲染器和编辑器 以了解有关 outerDocument

See the "using the Component tag" section in Creating inline item renderers and editors for more info about outerDocument