如何更改突出的项目颜色在Alfresco共享表单 [英] How to Change Highlighted Items Color in Alfresco Share Form

查看:553
本文介绍了如何更改突出的项目颜色在Alfresco共享表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我一直在尝试改变文档显示在Alfresco共享工作流程表单中项目字段中的突出显示颜色。基本上,给定一个起始形式,看起来像这样...

so I have been trying to change the highlight color in which documents show up in the "items" field within an Alfresco Share workflow form. Basically, given a starting form that looks like this...

您会注意到,添加到项目字段的每个其他文档都会自动突出显示为浅蓝色。我想知道是否可以改变这种颜色,此外,如果可以设置它,所以只有顶部的项目(或单个项目)在该文档列表中突出显示?

You will notice that every other document that gets added to the items field is automatically highlighted light blue. I was wondering if it was possible to change that color, and furthermore if it was possible to set it so only the top item (or a single items) gets highlighted in that list of documents?

我认为这将是一样简单,找到和更改一个CSS文件在某个地方,但尽管改变了Alfresco中的一些不同的CSS文件,我没有多少运气改变那种颜色。

I thought this would be as simple as finding and changing a CSS file somewhere, but despite changing a number of different CSS files within Alfresco, I have had little luck changing that color. Just wondering if anyone had any experience with this and would be willing to help me out?

推荐答案

已编辑:
您正在寻找的类是:

EDITED: The class you're looking for is:

tr.yui-dt-highlighted

tr.yui-dt-highlighted

这些类是由页面中注入的JavaScript自动生成的。所以,我搜索并发现这个小信息:
path share / res / js / yui-common.js 你应该使用一个工具,如 JavaScript Formatting 来了解一些代码。有一个CLASS_HIGHLIGHTED启动一个函数,你应该尝试覆盖这个:

The problem here is that these classes are generated automatically by JavaScript injected in the page. So, I've searched and found this little info: path share/res/js/yui-common.js you should use a tool like JavaScript Formatting to understand some code in there. There is a CLASS_HIGHLIGHTED that starts a function, and you should try to override this:

highlightRow: function (k) {
    var i = this.getTrEl(k);
    if (i) {
        var j = this.getRecord(i);
        c.addClass(i, d.CLASS_HIGHLIGHTED);
        this.fireEvent("rowHighlightEvent", {
            record: j,
            el: i
        });
        return;
    }
},
unhighlightRow: function (k) {
    var i = this.getTrEl(k);
    if (i) {
        var j = this.getRecord(i);
        c.removeClass(i, d.CLASS_HIGHLIGHTED);
        this.fireEvent("rowUnhighlightEvent", {
            record: j,
            el: i
        });
        return;
    }
},

有highlightRow和highlightColumn。它总是很难覆盖YAHOO yui函数。

There are highlightRow and highlightColumn to look into. It's always very difficult to override YAHOO yui functions..

这篇关于如何更改突出的项目颜色在Alfresco共享表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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