如何更改突出的项目颜色在Alfresco共享表单

编程入门 行业动态 更新时间:2024-10-14 22:22:16
本文介绍了如何更改突出的项目颜色在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共享表单

本文发布于:2023-11-28 13:33:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642612.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表单   如何更改   颜色   项目   Alfresco

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!