Nicolas Évrard pushed to branch branch/default at Tryton / Tryton
Commits:
f0c3dde6 by Nicolas Évrard at 2023-07-05T10:08:42+02:00
Allow to use width attribute in button columns of tree views
- - - - -
3 changed files:
- trytond/doc/topics/views/index.rst
- trytond/trytond/ir/ui/tree.rnc
- trytond/trytond/ir/ui/tree.rng
Changes:
=====================================
trytond/doc/topics/views/index.rst
=====================================
@@ -752,7 +752,10 @@
button
------
-Same as form-button_.
+Same as form-button_ with the addition of:
+
+``width``
+ The width of the column.
List-Form
=========
=====================================
trytond/trytond/ir/ui/tree.rnc
=====================================
@@ -96,6 +96,7 @@
attlist.button &= attribute type { "class" | "instance" }?
attlist.button &=
[ a:defaultValue = "0" ] attribute tree_invisible { text }?
+attlist.button &= attribute width { text }?
data = element data { attlist.data, xpath* }
attlist.data &= empty
xpath = element xpath { attlist.xpath,
=====================================
trytond/trytond/ir/ui/tree.rng
=====================================
@@ -487,6 +487,14 @@
</attribute>
</optional>
</define>
+ <define name="attlist.button" combine="interleave">
+ <optional>
+ <attribute>
+ <name ns="">width</name>
+ <text/>
+ </attribute>
+ </optional>
+ </define>
<define name="data">
<element>
<name ns="">data</name>
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/f0c3dde6ea931deee79ed2ebf8ec5b3c1babd6e2
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/f0c3dde6ea931deee79ed2ebf8ec5b3c1babd6e2
You're receiving this email because of your account on foss.heptapod.net.