While working on jstree I came across this line of code-
<!-- one of the three classes will be applied depending on node structure -->
<li class="[ jstree-open | jstree-closed | jstree-leaf ]">
What does this mean?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is not a verbatim example of what the resulting HTML will look like — it’s just pseudo-HTML to help developers understand what’s going to happen at runtime. There are no square brackets and no pipes in either the code or the resulting HTML. It’s just documentation.
It means that when the tree is rendered, one of the three classes will be applied on each element depending on its state and the structure of the tree.