to better match the spec (unmandated columns hidden by default)
virtual columns such as picklist's entry_count have to be specified with eg-grid
hiding fleshed user columns was causing some uncaught errors and the grid to
misrender when manually unhidden. Adding a label helped, but would render the
cell as [object Object]. Using a cell template to handle that object was
providing different errors (.id() was accessible, but not .usrname()). So,
unfleshing those for now.
Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
purchase_order: {
no_flesh_cancel_reason: true,
flesh_provider: true,
- flesh_owner: true,
- flesh_creator: true,
- flesh_editor: true
+ flesh_owner: false,
+ flesh_creator: false,
+ flesh_editor: false
},
picklist: {
flesh_lineitem_count: true,
flesh_owner: true,
- flesh_creator: true,
- flesh_editor: true
+ flesh_creator: false,
+ flesh_editor: false
},
invoice: {
no_flesh_misc: true
</eg-grid-toolbar-action>
<eg-grid-column path="name" [cellTemplate]="nameTmpl"></eg-grid-column>
+ <eg-grid-column path="entry_count"></eg-grid-column>
+
+ <eg-grid-column path="id" [hidden]="true"></eg-grid-column>
+ <eg-grid-column path="creator" [hidden]="true"></eg-grid-column>
+ <eg-grid-column path="editor" [hidden]="true"></eg-grid-column>
+
</eg-grid>
<eg-grid #acqSearchPurchaseOrdersGrid
persistKey="acq.search.purchaseorders"
- [stickyHeader]="true"
+ [stickyHeader]="true"
idlClass="acqpo" [dataSource]="gridSource">
<eg-grid-column path="name" [cellTemplate]="nameTmpl"></eg-grid-column>
<eg-grid-column path="provider" [cellTemplate]="providerTmpl"></eg-grid-column>
+
+ <eg-grid-column path="creator" [hidden]="true"></eg-grid-column>
+ <eg-grid-column path="editor" [hidden]="true"></eg-grid-column>
+ <eg-grid-column path="owner" [hidden]="true"></eg-grid-column>
+
</eg-grid>