Attribute Level

What is Level Attribut?
View command View is a 2dimensional command which is usually used for returning one object properties from data source . for instance printing a product details on a page need view command. View work as a answer/question command, and to reach this you have to place at least two <face> within <basis>. each face have another attribute name level that you have two number it like "level1" and "level2" to specify data returning order. When you number it, the second <face> result will place in first <face> @child.

Syntax
< basis core=["view"] datamember name=["your datamembername"] >
< face [ level=" 1"] >
< div > [@question] </div>
@child
</face >
< face [ level ="2"] >
< div > [@ answer] </div>
< /face >
< /basis >
Example
< basis core="view" datamembername="view.product" >
< face level="1" >
< li > < span > @question < /span> @child < /face >
< face level="2">
< span > @answer </span >
< /li>
< /face >
< /ul>
< /basis >
Example
< basis core= "tree" datamembername= "menu.tree" idcol= "id" parentidCol= "parentid" nullvalue= "50" >
< face level= "1" >
< ul>
< li>
@title
</li >
@child
< /ul>
</face> < /basis>
See Result »