在Sugar 7.8.2中,我们能够从App.controller.layout.model.attributes.metadata.components [0] .rows获取当前仪表板上显示的行(小程序)列表。
在Sugar 8.0.0中,……
如果我没弄错的话你可以收到当前Dashboard模型的行,如下所示:
App.controller.context.get("model").get("metadata").components[0].rows
也可以写成:
App.controller.context.attributes.model.attributes.metadata.components[0].rows