Difference between revisions of "Conditional node styles"

From Freeplane - free mind mapping and knowledge management software
(Created page with 'Nodes not explicitly assigned a style (or assigned a default style) can be formatted depending on its content. The rules for automatic node formatting consist of a condition like...')
 
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Nodes not explicitly assigned a style (or assigned a default style) can be formatted depending on its content.
+
Nodes can be formatted depending on its content. The rules for automatic node formatting consist of a condition like the conditions used for [[User_Manual#Filters|filters]] and a style name. Thus node formatting can depend on its content, attributes, icons or level. They can be set using "Styles->Manage conditional styles".
The rules for automatic node formatting consist of a condition like the conditions used for filters and a style name.
 
Thus node formatting can depend on its content, attributes, icons or level.
 
They can be set using "Styles->Manage conditional styles".
 
  
[[Category:User_Documentation]]
+
Because each style may set only some of the formatting attributes the resulting node formatting is a sum of formats defined by explicitly set format, explicitly assigned style and all matching conditional styles.
 +
 
 +
So if there is more than one conditional style, all those styles are applied to the nodes that satisfy all those given conditions, and so each node will be formatted by a composition of multiple styles. Here if different styles set different properties, all of them are applied to a node; otherwise the upper style has higher priority.
 +
 
 +
However if "Stop" is checked in one conditional-style and the condition is satisfied, then all following styles are ignored and their conditions are not evaluated.
 +
 
 +
 
 +
 
 +
Demo video of Conditional Styles (with and without the STOP option), and a resume diagram
 +
 
 +
https://youtu.be/ayfifHlbyjc
 +
 
 +
[[File:FreeplaneConditionalStyle_161113_222746.png|frame|400x200px|none|link={{filepath:FreeplaneConditionalStyle_161113_222746.png}}]]<br />
 +
 
 +
[[Category:Documentation]]

Latest revision as of 21:29, 13 November 2016

Nodes can be formatted depending on its content. The rules for automatic node formatting consist of a condition like the conditions used for filters and a style name. Thus node formatting can depend on its content, attributes, icons or level. They can be set using "Styles->Manage conditional styles".

Because each style may set only some of the formatting attributes the resulting node formatting is a sum of formats defined by explicitly set format, explicitly assigned style and all matching conditional styles.

So if there is more than one conditional style, all those styles are applied to the nodes that satisfy all those given conditions, and so each node will be formatted by a composition of multiple styles. Here if different styles set different properties, all of them are applied to a node; otherwise the upper style has higher priority.

However if "Stop" is checked in one conditional-style and the condition is satisfied, then all following styles are ignored and their conditions are not evaluated.


Demo video of Conditional Styles (with and without the STOP option), and a resume diagram

https://youtu.be/ayfifHlbyjc

FreeplaneConditionalStyle 161113 222746.png