【问题标题】:Apache Royale : what is Jewel DataGrid rowHeight property equivalent on SDK 0.9.8#2556Apache Royale:什么是 SDK 0.9.8#2556 上等效的 Jewel DataGrid rowHeight 属性
【发布时间】:2021-03-21 20:48:20
【问题描述】:

我从 SDK 0.9.7 迁移到 SDK 0.9.8#2556 以实现“最新”。 Jewel Datagrid 上的 rowHeight 属性似乎不再可用。 我没有找到如何设置默认行高。 (我希望我的所有行的高度都为 64 像素)。

我需要一个珠子或添加一个 itemrenderer 来设置高度吗?

任何帮助将不胜感激

问候

【问题讨论】:

    标签: datagrid row-height apache-royale


    【解决方案1】:

    我们从 PresentationModels 中可用的 TLC 组件中删除了 API,以避免重复 API 并增加额外的大小。

    这是 Tour De Jewel 的一个示例,它在 DataGridPresentationModel 中使用 rowHeigh :

    <j:DataGrid localId="dg4" height="205"
        change="dataGridChange(event.target as DataGrid, lb4)"
        dataProvider="{productModel.productList}">
        <j:columns>
            <j:DataGridColumn label="Images" dataField="image" columnWidth="100" 
                            itemRenderer="itemRenderers.ImageDataGridItemRenderer"/>
            <j:DataGridColumn label="Title" dataField="title" columnWidth="140"/>
            <j:DataGridColumn label="Sales" dataField="sales" columnWidth="80" align="right"/>
        </j:columns>
        <j:beads>
            <j:DataGridPresentationModel rowHeight="54"/>
        </j:beads>
    </j:DataGrid>
    

    【讨论】:

    • 嗨,Carlos,非常感谢您像往常一样的快速回复。我用珠子,效果很好:)
    • 如果我想使用变量rowHeight怎么办?如何设置?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-29
    相关资源
    最近更新 更多