ag-grid / ag-grid-aurelia

Aurelia wrapper for ag-Grid project
MIT License
23 stars 8 forks source link

Add support for fullWidthCellRenderer and components #4

Closed swalters closed 7 years ago

swalters commented 7 years ago

declarative:

           <ag-full-width-row-template>
              <span style="font-weight: bold">${params.data.name}</span>
            </ag-full-width-row-template>

imperative:

  gridOptions.fullWidthCellRendererFramework = {template:NameAndAge};

 gridOptions.fullWidthCellRendererFramework =  {template:`<template><name-and-age></name-and-age></template>`};

Add support for Components. To use:

   gridOptions.fullWidthCellRendererFramework = {component:NameAndAge};
   colDef.cellRendererFramework =  {component:NameAndAge};

Any of the Framework properties can have either .template or .component populated