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.
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
}
};