Change expand attribute into a factor

issue8308
review275331002
This commit is contained in:
Cédric Krier
2019-07-13 00:14:39 +02:00
parent 7f9191dece
commit 52ecb8ef23
4 changed files with 9 additions and 10 deletions
+1
View File
@@ -1,3 +1,4 @@
* Change expand attribute into a factor
* Allow SQL expression as value of fields
* Allow customizing Dict keys order with a sequence field
* Add invalid domain in DomainValidationError
+4 -4
View File
@@ -557,10 +557,10 @@ field
* ``width``: Set the width of the column.
* ``expand``: Boolean to specify if the column should be expanded to take
available extra space in the view. This space is shared equally among all
columns that have their "expand" property set to True. Resize don't work
if this option is enabled.
* ``expand``: An integer that specifies if the column should be expanded to
take available extra space in the view. This space is shared
proportionaly among all columns that have their "expand" property set.
Resize doesn't work if this option is enabled.
* ``pre_validate``: see in common-attributes-pre_validate_.
+1 -1
View File
@@ -43,7 +43,7 @@ attlist.field &=
attlist.field &=
[ a:defaultValue = "0" ] attribute tree_invisible { text }?
attlist.field &=
[ a:defaultValue = "0" ] attribute expand { "0" | "1" }?
[ a:defaultValue = "0" ] attribute expand { xsd:integer }?
attlist.field &= attribute icon { text }?
attlist.field &= attribute sum { text }?
attlist.field &= attribute width { text }?
+3 -5
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">
xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<define name="tree">
<element>
<name ns="">tree</name>
@@ -135,10 +136,7 @@
<optional>
<attribute a:defaultValue="0">
<name ns="">expand</name>
<choice>
<value>0</value>
<value>1</value>
</choice>
<data type="integer"/>
</attribute>
</optional>
</define>