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/en/setting.view.fontCss.html | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.fontCss.html (limited to 'common/src/main/webapp/thirdparty/zTree/api/en/setting.view.fontCss.html') diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.fontCss.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.fontCss.html new file mode 100644 index 0000000..1ad5f51 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.fontCss.html @@ -0,0 +1,42 @@ +
+
+

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

+

Overview[ depends on jquery.ztree.core js ]

+
+

+
+

Personalized text style, only applies to <A> object in the node DOM

+

Default: {}

+
+
+

JSON Format

+
+

As same as .css() method in jQuery. e.g. {color:"#ff0011", background:"blue"}

+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodeJSON

+

JSON data object of the node which use the personalized text style

+

Return JSON

+

Return value is same as 'JSON Format'. e.g. {color:"#ff0011", background:"blue"}

+
+

Examples of setting & function

+

1. Don't modify css file, and set the node name's color to red

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

2. Don't modify css file, and set the root node name's color to red

+
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