Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Primary property is not allowed for table actions #277
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaurite committed Oct 8, 2021
1 parent b956b95 commit c2884cb
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions ui/src/main/resources/io/jmix/ui/screen/layout.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,14 @@
<xs:attribute name="constraintEntityOp" type="constraintEntityOp"/>
</xs:complexType>

<xs:complexType name="listComponentComponentAction">
<xs:complexContent>
<xs:extension base="componentAction">
<xs:attribute name="primary" type="xs:boolean"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>

<xs:complexType name="actionProperties">
<xs:sequence>
<xs:element name="property" type="actionProperty" minOccurs="0"/>
Expand Down Expand Up @@ -2521,7 +2529,7 @@
<xs:complexContent>
<xs:extension base="baseComponent">
<xs:all>
<xs:element name="actions" minOccurs="0" type="componentActions"/>
<xs:element name="actions" minOccurs="0" type="listComponentComponentActions"/>
<xs:element name="buttonsPanel" minOccurs="0" type="buttonsPanelComponent"/>
</xs:all>

Expand Down Expand Up @@ -2762,7 +2770,7 @@
<xs:complexContent>
<xs:extension base="baseComponent">
<xs:all>
<xs:element name="actions" minOccurs="0" type="componentActions"/>
<xs:element name="actions" minOccurs="0" type="listComponentComponentActions"/>
<xs:element name="buttonsPanel" minOccurs="0" type="buttonsPanelComponent"/>
<xs:element name="simplePagination" minOccurs="0" type="listComponentSimplePaginationComponent"/>
<xs:element name="columns" type="tableColumnsList"/>
Expand All @@ -2781,7 +2789,7 @@
<xs:complexContent>
<xs:extension base="baseComponent">
<xs:all>
<xs:element name="actions" minOccurs="0" type="componentActions"/>
<xs:element name="actions" minOccurs="0" type="listComponentComponentActions"/>
<xs:element name="buttonsPanel" minOccurs="0" type="buttonsPanelComponent"/>
<xs:element name="simplePagination" minOccurs="0" type="listComponentSimplePaginationComponent"/>
<xs:element name="columns" type="tableColumnsList"/>
Expand All @@ -2802,7 +2810,7 @@
<xs:complexContent>
<xs:extension base="baseComponent">
<xs:all>
<xs:element name="actions" minOccurs="0" type="componentActions"/>
<xs:element name="actions" minOccurs="0" type="listComponentComponentActions"/>
<xs:element name="buttonsPanel" minOccurs="0" type="buttonsPanelComponent"/>
<xs:element name="simplePagination" minOccurs="0" type="listComponentSimplePaginationComponent"/>
<xs:element name="columns" type="groupTableColumnsType"/>
Expand Down Expand Up @@ -2859,7 +2867,7 @@
<xs:complexContent>
<xs:extension base="baseComponent">
<xs:all>
<xs:element name="actions" minOccurs="0" type="componentActions"/>
<xs:element name="actions" minOccurs="0" type="listComponentComponentActions"/>
<xs:element name="buttonsPanel" minOccurs="0" type="buttonsPanelComponent"/>
<xs:element name="simplePagination" minOccurs="0" type="listComponentSimplePaginationComponent"/>
<xs:element name="columns" type="dataGridColumnsList"/>
Expand Down Expand Up @@ -4074,6 +4082,14 @@
</xs:sequence>
</xs:complexType>

<xs:complexType name="listComponentComponentActions">
<xs:sequence>
<xs:choice maxOccurs="unbounded">
<xs:element name="action" type="listComponentComponentAction"/>
</xs:choice>
</xs:sequence>
</xs:complexType>

<xs:simpleType name="columnAlignment">
<xs:restriction base="xs:string">
<xs:enumeration value="LEFT"/>
Expand Down

0 comments on commit c2884cb

Please sign in to comment.