Add visual context on tree view
issue8562 review261951002
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
* Add visual context on tree view
|
||||
* Add start value to PYSON Date and DateTime
|
||||
* Add MultiSelection field
|
||||
* Support dot notation on PYSON Eval
|
||||
|
||||
@@ -533,6 +533,10 @@ Each tree view must start with this tag.
|
||||
* ``tree_state``: A boolean to specify if the client should save the state
|
||||
of the tree.
|
||||
|
||||
* ``visual``: A :ref:`PYSON statement <topics-pyson>` that will be
|
||||
evaluated as string ``muted``, ``success``, ``warning`` or ``danger``
|
||||
with the context of the record to provide a visual context to the row.
|
||||
|
||||
field
|
||||
^^^^^
|
||||
|
||||
@@ -546,6 +550,10 @@ field
|
||||
that will be evaluated as boolean with the context of the view to display
|
||||
or not the column.
|
||||
|
||||
* ``visual``: A :ref:`PYSON statement <topics-pyson>` that will be
|
||||
evaluated as string ``muted``, ``success``, ``warning`` or ``danger``
|
||||
with the context of the record to provide a visual context to the field.
|
||||
|
||||
* ``icon``: The name of the field that contains the name of the icon to
|
||||
display in the column.
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ attlist.tree &=
|
||||
[ a:defaultValue = "0" ] attribute keyword_open { "0" | "1" }?
|
||||
attlist.tree &=
|
||||
[ a:defaultValue = "0" ] attribute tree_state { "0" | "1" }?
|
||||
attlist.tree &= attribute visual { text }?
|
||||
field = element field { attlist.field, (prefix | suffix)* }
|
||||
attlist.field &= attribute name { text }
|
||||
attlist.field &= attribute readonly { "0" | "1" }?
|
||||
@@ -45,6 +46,7 @@ attlist.field &=
|
||||
[ a:defaultValue = "0" ] attribute tree_invisible { text }?
|
||||
attlist.field &=
|
||||
[ a:defaultValue = "0" ] attribute expand { xsd:integer }?
|
||||
attlist.field &= attribute visual { text }?
|
||||
attlist.field &= attribute icon { text }?
|
||||
attlist.field &= attribute sum { text }?
|
||||
attlist.field &= attribute width { text }?
|
||||
|
||||
@@ -63,6 +63,14 @@
|
||||
</attribute>
|
||||
</optional>
|
||||
</define>
|
||||
<define name="attlist.tree" combine="interleave">
|
||||
<optional>
|
||||
<attribute>
|
||||
<name ns="">visual</name>
|
||||
<text/>
|
||||
</attribute>
|
||||
</optional>
|
||||
</define>
|
||||
<define name="field">
|
||||
<element>
|
||||
<name ns="">field</name>
|
||||
@@ -141,6 +149,14 @@
|
||||
</attribute>
|
||||
</optional>
|
||||
</define>
|
||||
<define name="attlist.field" combine="interleave">
|
||||
<optional>
|
||||
<attribute>
|
||||
<name ns="">visual</name>
|
||||
<text/>
|
||||
</attribute>
|
||||
</optional>
|
||||
</define>
|
||||
<define name="attlist.field" combine="interleave">
|
||||
<optional>
|
||||
<attribute>
|
||||
|
||||
Reference in New Issue
Block a user