Add width and height attributes on calendar view
issue9148 review250931003
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
^^^^^
|
||||
|
||||
|
||||
@@ -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* }
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user