如何在aikau的AlfDocumentListView中添加列表标题? [英] How add list headers to AlfDocumentListView in aikau?

查看:81
本文介绍了如何在aikau的AlfDocumentListView中添加列表标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请考虑以下示例。它包含以下几行:

Consider this example. It has the following lines:

var views = [
   {
      name: "alfresco/documentlibrary/views/AlfDocumentListView",
      config: {
         widgets: [
            {
               id: "VIEW_ROW",
               name: "alfresco/documentlibrary/views/layouts/Row",
               config: {
                  widgets: [
                     {
                        name: "alfresco/documentlibrary/views/layouts/Cell",
                        config: {
                           widgets: [
                              {
                                 id: "DATA_LIST_TITLE",
                                 name: "alfresco/renderers/Property",
                                 config: {
                                    propertyToRender: "title"
                                 }
                              }
                           ]
                        }
                     }
                  ]
               }
            }
         ]
      }
   }
];

此示例仅显示数据列表,但不包含任何标题。
要添加到 AlfDocumentListView 使其显示标题的内容是什么?

This show just list of data, but without any headers. What to add to AlfDocumentListView to make it show headers?

推荐答案

我建议您阅读GitHub上的Aikau教程(请参阅 https://github.com/Alfresco/Aikau/blob/develop/tutorial/chapters/About.md )我认为您会发现,有关Aikau的信息比有关Aikau的信息有用得多官方文件。特定问题的答案实际上是在本教程的第10章中解决的: https://github.com/Alfresco/Aikau/blob/develop/tutorial/chapters/Tutorial10.md

I would suggest that you work through the Aikau tutorial on GitHub (see https://github.com/Alfresco/Aikau/blob/develop/tutorial/chapters/About.md) I think that you'll find that it has a lot more useful information on Aikau than the official documentation. The answer to your specific question is actually addressed in chapter 10 of the tutorial: https://github.com/Alfresco/Aikau/blob/develop/tutorial/chapters/Tutorial10.md

我也建议您利用Alfresco社区平台( https://community.alfresco.com/ )与StackOverflow相比,在此获得更多的响应,因为它在Aikau相关问题上拥有更多的受众。我还建议您阅读我在Aikau上撰写的许多博客文章( https ://community.alfresco.com/community/ecm/blog/authors/ddraper ),因为您可能会发现其中包含许多有用的信息

I would also recommend that you take advantage of the Alfresco Community platform (https://community.alfresco.com/) you're likely to get more responses there than on StackOverflow as it has a larger audience on Aikau related issues. I'd also recommend reviewing the many blog posts I've written on Aikau (https://community.alfresco.com/community/ecm/blog/authors/ddraper) as you may find they contain a lot of useful information

这篇关于如何在aikau的AlfDocumentListView中添加列表标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆