From 21d72c4a80fe2937d0c4ddd20624b27adbcd989b Mon Sep 17 00:00:00 2001 From: lizi00164331
Personalized text style, only applies to <A> object in the node DOM
+Default: {}
+As same as .css() method in jQuery. e.g. {color:"#ff0011", background:"blue"}
+zTree unique identifier: treeId, easy for users to control.
+JSON data object of the node which use the personalized text style
+Return value is same as 'JSON Format'. e.g. {color:"#ff0011", background:"blue"}
+var setting = {
+ view: {
+ fontCss : {color:"red"}
+ }
+};
+ function setFontCss(treeId, treeNode) {
+ return treeNode.level == 0 ? {color:"red"} : {};
+};
+var setting = {
+ view: {
+ fontCss: setFontCss
+ }
+};
+