Add width and height attributes on calendar view

issue9148
review250931003
This commit is contained in:
Cédric Krier
2020-04-01 23:58:49 +02:00
parent 748fe7212e
commit ab019772a7
4 changed files with 25 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
* Add width and height attributes on calendar view
* Add default database name configuration
* Add retry option to report convert
* Add depends fields on view_attributes
+4
View File
@@ -843,6 +843,10 @@ Each calendar view must start with this tag.
* ``background_color``: An optional field name that contains the background
color for the event. The default value is `lightblue`.
* ``width``: The minimum width the calendar should request, use -1 to unset.
* ``height``: The minimum height the calendar should request, use -1 to unset.
field
^^^^^
+4
View File
@@ -14,6 +14,10 @@ attlist.calendar &=
[ a:defaultValue = "black" ] attribute color { text }?
attlist.calendar &=
[ a:defaultValue = "lightblue" ] attribute background_color { text }?
attlist.calendar &=
attribute width { text }?
attlist.calendar &=
attribute height { text }?
field = element field { attlist.field, empty }
attlist.field &= attribute name { text }
data = element data { attlist.data, xpath* }
+16
View File
@@ -63,6 +63,22 @@
</attribute>
</optional>
</define>
<define name="attlist.calendar" combine="interleave">
<optional>
<attribute>
<name ns="">width</name>
<text/>
</attribute>
</optional>
</define>
<define name="attlist.calendar" combine="interleave">
<optional>
<attribute>
<name ns="">height</name>
<text/>
</attribute>
</optional>
</define>
<define name="field">
<element>
<name ns="">field</name>