User Tools

Site Tools


newdevs:code:grid-cell-text-generator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
newdevs:code:grid-cell-text-generator [2023/03/30 17:08] tmccannanewdevs:code:grid-cell-text-generator [2023/12/21 16:55] (current) tmccanna
Line 14: Line 14:
     </a>     </a>
 </ng-template> </ng-template>
-</code> 
  
 <eg-grid-column i18n-label label="Title" [hidden]="true" name='title' <eg-grid-column i18n-label label="Title" [hidden]="true" name='title'
Line 21: Line 20:
 </code> </code>
  
-2. The grid.component.ts file is modified to specify the alternate text that should print out: +2. The eg-grid tag should include 
 +<code>[cellTextGenerator]="cellTextGenerator"</code> 
 + 
 +3. The grid.component.ts file must include the ability to use GridCellTextGenerator: 
 + 
 +<code>import {GridDataSource, GridColumn, GridRowFlairEntry, GridCellTextGenerator} from '@eg/share/grid/grid';</code> 
 + 
 +and then inside the class:  
 + 
 +<code>cellTextGenerator: GridCellTextGenerator;</code> 
 + 
 +4. And then inside ngOnInit - the grid.component.ts file is modified to specify the alternate text that should print out: 
  
 <code> <code>
Line 28: Line 38:
 }; };
 </code> </code>
 +
newdevs/code/grid-cell-text-generator.1680210533.txt.gz · Last modified: 2023/03/30 17:08 by tmccanna

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.