From 21d72c4a80fe2937d0c4ddd20624b27adbcd989b Mon Sep 17 00:00:00 2001 From: lizi00164331 Date: Mon, 7 Aug 2017 11:39:39 +0800 Subject: Upload the ESR GUI seed code Issue-ID: AAI-68 Change-Id: Ia50ce0570c2fabecd77199d4e8454f56fe587c4e Signed-off-by: lizi00164331 --- .../zTree/api/cn/setting.view.fontCss.html | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.fontCss.html (limited to 'common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.fontCss.html') diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.fontCss.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.fontCss.html new file mode 100644 index 0000000..54efb1b --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.fontCss.html @@ -0,0 +1,42 @@ +
+
+

JSON / Function(treeId, treeNode)setting.view.fontCss

+

概述[ 依赖 jquery.ztree.core 核心 js ]

+
+

+
+

个性化文字样式,只针对 zTree 在节点上显示的<A>对象。

+

默认值:{}

+
+
+

JSON 格式说明

+
+

JSON 格式为 JQuery css方法中的 JSON 对象格式,例如:{color:"#ff0011", background:"blue"}

+
+

Function 参数说明

+
+

treeIdString

+

对应 zTree 的 treeId,便于用户操控

+

treeNodeJSON

+

需要设置自定义样式的节点 JSON 数据对象

+

返回值JSON

+

返回值同 JSON 格式的数据,例如:{color:"#ff0011", background:"blue"}

+
+

setting & function 举例

+

1. 不修改CSS,设置全部节点 name 显示为红色

+
var setting = {
+	view: {
+		fontCss : {color:"red"}
+	}
+};
+

2. 设置 level=0 的节点 name 显示为红色

+
function setFontCss(treeId, treeNode) {
+	return treeNode.level == 0 ? {color:"red"} : {};
+};
+var setting = {
+	view: {
+		fontCss: setFontCss
+	}
+};
+
+
\ No newline at end of file -- cgit 1.2.3-korg