# Wijmo_React_Grid

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								wijmo.react.grid Module
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>Contains React components for the <b>wijmo.grid</b> module.</p>
								</div>
							</div>
						</section>
						<section class="tsd-index-group">
							<section class="tsd-index-panel">
								<div class="tsd-index-content">
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Variables
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="wijmo_react_grid.html#flexgrid" class="tsd-kind-icon">Flex<wbr>Grid</a></li>
											<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="wijmo_react_grid.html#flexgridcelltemplate" class="tsd-kind-icon">Flex<wbr>Grid<wbr>Cell<wbr>Template</a></li>
											<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="wijmo_react_grid.html#flexgridcolumn" class="tsd-kind-icon">Flex<wbr>Grid<wbr>Column</a></li>
											<li class="tsd-kind-variable tsd-parent-kind-external-module"><a href="wijmo_react_grid.html#flexgridcolumngroup" class="tsd-kind-icon">Flex<wbr>Grid<wbr>Column<wbr>Group</a></li>
										</ul>
									</section>
								</div>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Variables</h2>
							<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
								<a name="flexgrid" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagConst">Const</span> FlexGrid</h3>
								<div class="tsd-signature tsd-kind-icon">Flex<wbr>Grid<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">WjForwardRefExoticComponent</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">FlexGridProps</span><span class="tsd-signature-symbol">&gt;</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>React component for the <a href="../classes/wijmo_grid.flexgrid.html">wijmo.grid.FlexGrid</a> control.</p>
									</div>
									<p>The <b>flex-grid</b> component may contain
										the following child components:
										<a href="wijmo_react_grid_detail.html#flexgriddetail">wijmo.react.grid.detail.FlexGridDetail</a>
										, <a href="wijmo_react_grid_filter.html#flexgridfilter">wijmo.react.grid.filter.FlexGridFilter</a>
										, <a href="wijmo_react_grid_immutable.html#immutabilityprovider">wijmo.react.grid.immutable.ImmutabilityProvider</a>
										, <a href="wijmo_react_grid.html#flexgridcolumn">wijmo.react.grid.FlexGridColumn</a>
										, <a href="wijmo_react_grid.html#flexgridcolumngroup">wijmo.react.grid.FlexGridColumnGroup</a>
									and <a href="wijmo_react_grid.html#flexgridcelltemplate">wijmo.react.grid.FlexGridCellTemplate</a>.</p>
									<p>The component supports all properties and events of the pure JavaScript <a href="../classes/wijmo_grid.flexgrid.html">wijmo.grid.FlexGrid</a> control it represents.</p>
									<p>The component includes an <b>initialized</b> event that is raised when the control is initialized after it is added to the page.
										You can use this event to perform further initialization in addition to setting properties in JSX.
									The signature of the handler function is the same as any other Wijmo event handlers.</p>
									<p>The example below shows how to instantiate and initialize a
									<a href="../classes/wijmo_grid.flexgrid.html">wijmo.grid.FlexGrid</a> control in JSX:</p>
									<pre>&lt;Wj.FlexGrid
  autoGenerateColumns={ false }
  columns={[
    { binding: 'name', header: 'Name' },
    { binding: 'sales', header: 'Sales', format: 'c0' },
    { binding: 'expenses', header: 'Expenses', format: 'c0' },
    { binding: 'active', header: 'Active' },
    { binding: 'date', header: 'Date' }
  ]}
  itemsSource={ this.state.data } /&gt;</pre>
									<p>The code sets the <b>autoGenerateColumns</b> property to false, then
										sets the <b>columns</b> property, and finally sets the <b>itemsSource</b>
										property. This order is important, it prevents the grid from automatically
									generating the columns.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
								<a name="flexgridcelltemplate" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagConst">Const</span> FlexGridCellTemplate</h3>
								<div class="tsd-signature tsd-kind-icon">Flex<wbr>Grid<wbr>Cell<wbr>Template<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">WjForwardRefExoticComponent</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">FlexGridCellTemplateProps</span><span class="tsd-signature-symbol">&gt;</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>React component for the <a href="wijmo_react_grid.html#flexgrid">FlexGrid</a> cell templates.</p>
									</div>
									<p>The <b>FlexGridCellTemplate</b> component defines a template for a certain
										cell type in <a href="wijmo_react_grid.html#flexgrid">FlexGrid</a>. The template element must contain a <b>cellType</b> property that
										specifies the {@link wijmo.react.grid.CellTemplateType}. Depending on the template's cell type,
										the <b>FlexGridCellTemplate</b> element must be a child
										of either <a href="wijmo_react_grid.html#flexgrid">wijmo.react.grid.FlexGrid</a>
									or <a href="wijmo_react_grid.html#flexgridcolumn">wijmo.react.grid.FlexGridColumn</a> components.</p>
									<p>Column-specific cell templates must be contained in <b>FlexGridColumn</b>
										components, and cells that are not column-specific (like row header or top left cells)
									must be contained in the <b>FlexGrid</b> component.</p>
									<p>The content of cells is defined using the <b>template</b> <i>render prop</i>, which receives
										a render function that should return a virtual element tree representing the cell content.
										The function has the <b>context</b> parameter where the data context of each certain cell is
										passed. This is an object with the <b>col</b>, <b>row</b>, and <b>item</b> properties,
									which refer to the <a href="../classes/wijmo_grid.column.html">Column</a>, <a href="../enums/wijmo_grid.selectionmode.html#row">Row</a>, and <b>Row.dataItem</b> objects pertaining to the cell.</p>
									<p>For cell types like <b>Group</b> and <b>CellEdit</b>, an additional <b>value</b>
									context property containing an unformatted cell value is provided.</p>
									<p>For example, here is a
										<a href="wijmo_react_grid.html#flexgrid">FlexGrid</a> control with templates for row header cells and, regular
									and column header cells of the Country column:</p>
									<pre><code class="language-html"><span class="hljs-comment">&lt;!-- component.html --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGrid</span> <span class="hljs-attr">itemsSource</span>=<span class="hljs-string">{this.state.data}</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridCellTemplate</span>
      <span class="hljs-attr">cellType</span>=<span class="hljs-string">"RowHeader"</span>
      <span class="hljs-attr">template</span>=<span class="hljs-string">{</span> (<span class="hljs-attr">context</span>) =&gt;</span> context.row.index + 1 } /&gt;
  <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridCellTemplate</span>
      <span class="hljs-attr">cellType</span>=<span class="hljs-string">"RowHeaderEdit"</span>
      <span class="hljs-attr">template</span>=<span class="hljs-string">{</span> (<span class="hljs-attr">context</span>) =&gt;</span> '...' } /&gt;

  <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridColumn</span> <span class="hljs-attr">header</span>=<span class="hljs-string">"Country"</span> <span class="hljs-attr">binding</span>=<span class="hljs-string">"country"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridCellTemplate</span>
          <span class="hljs-attr">cellType</span>=<span class="hljs-string">"ColumnHeader"</span>
          <span class="hljs-attr">template</span>=<span class="hljs-string">{</span> (<span class="hljs-attr">context</span>) =&gt;</span> {
              return <span class="hljs-tag">&lt;<span class="hljs-name">React.Fragment</span>&gt;</span>
                  <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"resources/globe.png"</span> /&gt;</span>
                  {context.col.header}
              <span class="hljs-tag">&lt;/<span class="hljs-name">React.Fragment</span>&gt;</span>
              }
          }
     /&gt;
    <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridCellTemplate</span>
          <span class="hljs-attr">cellType</span>=<span class="hljs-string">"Cell"</span>
          <span class="hljs-attr">template</span>=<span class="hljs-string">{</span> (<span class="hljs-attr">context</span>) =&gt;</span> {
              return <span class="hljs-tag">&lt;<span class="hljs-name">React.Fragment</span>&gt;</span>
                 <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">{</span>`<span class="hljs-attr">resources</span>/${<span class="hljs-attr">context.item.country</span>}<span class="hljs-attr">.png</span>`} /&gt;</span>
                 {context.item.country}
              <span class="hljs-tag">&lt;/<span class="hljs-name">React.Fragment</span>&gt;</span>
          } }
      /&gt;
  <span class="hljs-tag">&lt;/<span class="hljs-name">wjGrid.FlexGridColumn</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridColumn</span> <span class="hljs-attr">header</span>=<span class="hljs-string">"Sales"</span> <span class="hljs-attr">binding</span>=<span class="hljs-string">"sales"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">wjGrid.FlexGridColumn</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">wjGrid.FlexGrid</span>&gt;</span></code></pre>
									<p>The <b>FlexGridCellTemplate</b> directive supports the following properties:</p>
									<dl class="dl-horizontal">
										<dt>cellType</dt>
										<dd>
											The <b>CellTemplateType</b> value defining the type of cell to which the template is applied.
										</dd>
										<dt>autoSizeRows</dt>
										<dd>
											Indicates whether the cell template will increase grid's default row height
											to accomodate cells content. Defaults to true.
										</dd>
										<dt>cellOverflow</dt>
										<dd>
											Defines the <b>style.overflow</b> property value for cells.
										</dd>
										<dt>forceFullEdit</dt>
										<dd>
											For cell edit templates, indicates whether cell editing forcibly starts in full edit mode,
											regardless of how the editing was initiated. In full edit mode pressing cursor keys don't finish editing.
											Defaults to true.
										</dd>
									</dl>
									<p>The <b>cellType</b> attribute takes any of the following enumerated values:</p>
									<p><b>Cell</b></p>
									<p>Defines a regular (data) cell template. Must be a child of the <a href="wijmo_react_grid.html#flexgridcolumn">wijmo.react.grid.FlexGridColumn</a> component.
									For example, this cell template shows flags in the cells of Country column:</p>
									<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridColumn</span> <span class="hljs-attr">header</span>=<span class="hljs-string">"Country"</span> <span class="hljs-attr">binding</span>=<span class="hljs-string">"country"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridCellTemplate</span>
      <span class="hljs-attr">cellType</span>=<span class="hljs-string">"Cell"</span>
      <span class="hljs-attr">template</span>=<span class="hljs-string">{</span> (<span class="hljs-attr">context</span>) =&gt;</span> {
          return <span class="hljs-tag">&lt;<span class="hljs-name">React.Fragment</span>&gt;</span>
             <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">{</span>`<span class="hljs-attr">resources</span>/${<span class="hljs-attr">context.item.country</span>}<span class="hljs-attr">.png</span>`} /&gt;</span>
             {context.item.country}
          <span class="hljs-tag">&lt;/<span class="hljs-name">React.Fragment</span>&gt;</span>
      }
   }
  /&gt;
<span class="hljs-tag">&lt;/<span class="hljs-name">wjGrid.FlexGridColumn</span>&gt;</span></code></pre>
									<p>If <b>Group</b> template is not provided for a hierarchical <a href="wijmo_react_grid.html#flexgrid">FlexGrid</a> (that is, one with the <b>childItemsPath</b> property
										specified), non-header cells in group rows of
									this <a href="../classes/wijmo_grid.column.html">Column</a> also use this template.</p>
									<p><b>CellEdit</b></p>
									<p>Defines a template for a cell in edit mode. Must be a child of the <a href="wijmo_react_grid.html#flexgridcolumn">wijmo.react.grid.FlexGridColumn</a> component.
										This cell type has an additional <b>context.value</b> property. It contains the
									original cell value before editing, and the updated value after editing.</p>
									<p>For example, here is a template that uses the Wijmo <a href="../classes/wijmo_input.inputnumber.html">InputNumber</a> control as an editor
									for the "Sales" column:</p>
									<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridColumn</span> <span class="hljs-attr">header</span>=<span class="hljs-string">"Sales"</span> <span class="hljs-attr">binding</span>=<span class="hljs-string">"sales"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridCellTemplate</span>
      <span class="hljs-attr">cellType</span>=<span class="hljs-string">"CellEdit"</span>
      <span class="hljs-attr">template</span>=<span class="hljs-string">{</span> (<span class="hljs-attr">context</span>) =&gt;</span> {
           return <span class="hljs-tag">&lt;<span class="hljs-name">wjInput.InputNumber</span>
               <span class="hljs-attr">step</span>=<span class="hljs-string">{1}</span>
               <span class="hljs-attr">value</span>=<span class="hljs-string">{context.value}</span>
               <span class="hljs-attr">valueChanged</span>=<span class="hljs-string">{(inpNum:</span> <span class="hljs-attr">wjcInput.InputNumber</span>) =&gt;</span>
                   context.value = inpNum.value
               } /&gt;
           }
      }
  /&gt;
<span class="hljs-tag">&lt;/<span class="hljs-name">wjGrid.FlexGridColumn</span>&gt;</span></code></pre>
									<p><b>ColumnHeader</b></p>
									<p>Defines a template for a column header cell. Must be a child of the <a href="wijmo_react_grid.html#flexgridcolumn">wijmo.react.grid.FlexGridColumn</a> component.
									For example, this template adds an image to the header of the "Country" column:</p>
									<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridColumn</span> <span class="hljs-attr">header</span>=<span class="hljs-string">"Country"</span> <span class="hljs-attr">binding</span>=<span class="hljs-string">"country"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridCellTemplate</span>
        <span class="hljs-attr">cellType</span>=<span class="hljs-string">"ColumnHeader"</span>
        <span class="hljs-attr">template</span>=<span class="hljs-string">{</span> (<span class="hljs-attr">context</span>) =&gt;</span> {
            return <span class="hljs-tag">&lt;<span class="hljs-name">React.Fragment</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"resources/globe.png"</span> /&gt;</span>
                {context.col.header}
            <span class="hljs-tag">&lt;/<span class="hljs-name">React.Fragment</span>&gt;</span>
            }
        }
  /&gt;
<span class="hljs-tag">&lt;/<span class="hljs-name">wjGrid.FlexGridColumn</span>&gt;</span></code></pre>
									<p><b>RowHeader</b></p>
									<p>Defines a template for a row header cell. Must be a child of the <a href="wijmo_react_grid.html#flexgrid">wijmo.react.grid.FlexGrid</a> component.
									For example, this template shows row indices in the row headers:</p>
									<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGrid</span> <span class="hljs-attr">itemsSource</span>=<span class="hljs-string">{this.state.data}</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridCellTemplate</span>
      <span class="hljs-attr">cellType</span>=<span class="hljs-string">"RowHeader"</span>
      <span class="hljs-attr">template</span>=<span class="hljs-string">{</span> (<span class="hljs-attr">context</span>) =&gt;</span> context.row.index + 1 } /&gt;
<span class="hljs-tag">&lt;/<span class="hljs-name">wjGrid.FlexGrid</span>&gt;</span></code></pre>
									<p>Note that this template is applied to a row header cell, even if it is in a row that is
										in edit mode. In order to provide an edit-mode version of a row header cell with alternate
									content, define the <b>RowHeaderEdit</b> template.</p>
									<p><b>RowHeaderEdit</b></p>
									<p>Defines a template for a row header cell in edit mode. Must be a child of the
										<a href="wijmo_react_grid.html#flexgrid">wijmo.react.grid.FlexGrid</a> component. For example, this template shows dots in the header
									of rows being edited:</p>
									<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGrid</span> <span class="hljs-attr">itemsSource</span>=<span class="hljs-string">{this.state.data}</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridCellTemplate</span>
      <span class="hljs-attr">cellType</span>=<span class="hljs-string">"RowHeaderEdit"</span>
      <span class="hljs-attr">template</span>=<span class="hljs-string">{</span> (<span class="hljs-attr">context</span>) =&gt;</span> '...' } /&gt;
<span class="hljs-tag">&lt;/<span class="hljs-name">wjGrid.FlexGrid</span>&gt;</span></code></pre>
									<p>Use the following <b>RowHeaderEdit</b> template to add the standard edit-mode indicator to cells where
									the <b>RowHeader</b> template applies:</p>
									<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGrid</span> <span class="hljs-attr">itemsSource</span>=<span class="hljs-string">{this.state.data}</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridCellTemplate</span>
      <span class="hljs-attr">cellType</span>=<span class="hljs-string">"RowHeaderEdit"</span>
      <span class="hljs-attr">template</span>=<span class="hljs-string">{</span> (<span class="hljs-attr">context</span>) =&gt;</span> '\u270e\ufe0e' } /&gt;
<span class="hljs-tag">&lt;/<span class="hljs-name">wjGrid.FlexGrid</span>&gt;</span></code></pre>
									<p><b>TopLeft</b></p>
									<p>Defines a template for the top left cell. Must be a child of the <a href="wijmo_react_grid.html#flexgrid">wijmo.react.grid.FlexGrid</a> component.
									For example, this template shows a down/right glyph in the top-left cell of the grid:</p>
									<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGrid</span> <span class="hljs-attr">itemsSource</span>=<span class="hljs-string">{this.state.data}</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridCellTemplate</span>
      <span class="hljs-attr">cellType</span>=<span class="hljs-string">"TopLeft"</span>
      <span class="hljs-attr">template</span>=<span class="hljs-string">{</span> (<span class="hljs-attr">context</span>) =&gt;</span> {
          return <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"wj-glyph-down-right"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
      } }
  /&gt;
<span class="hljs-tag">&lt;/<span class="hljs-name">wjGrid.FlexGrid</span>&gt;</span></code></pre>
									<p><b>GroupHeader</b></p>
									<p>Defines a template for a group header cell in a <a href="../classes/wijmo_grid.grouprow.html">GroupRow</a>. Must be a child of
									the <a href="wijmo_react_grid.html#flexgridcolumn">wijmo.react.grid.FlexGridColumn</a> component.</p>
									<p>The <b>context.row</b> property contains an instance of the <b>GroupRow</b> class. If the grouping comes
									from <a href="../classes/wijmo.collectionview.html">CollectionView</a>, the <b>context.item</b> property references the <a href="../classes/wijmo.collectionviewgroup.html">CollectionViewGroup</a> object.</p>
									<p>For example, this template uses a checkbox element as an expand/collapse toggle:</p>
									<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridColumn</span> <span class="hljs-attr">header</span>=<span class="hljs-string">"Country"</span> <span class="hljs-attr">binding</span>=<span class="hljs-string">"country"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridCellTemplate</span>
      <span class="hljs-attr">cellType</span>=<span class="hljs-string">"GroupHeader"</span>
      <span class="hljs-attr">template</span>=<span class="hljs-string">{</span> (<span class="hljs-attr">context</span>) =&gt;</span> {
         return <span class="hljs-tag">&lt;<span class="hljs-name">React.Fragment</span>&gt;</span>
           <span class="hljs-tag">&lt;<span class="hljs-name">input</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"checkbox"</span>
               <span class="hljs-attr">checked</span>=<span class="hljs-string">{context.row.isCollapsed}</span>
               <span class="hljs-attr">onChange</span>=<span class="hljs-string">{e</span> =&gt;</span>
                   context.row.isCollapsed = e.target.checked as boolean
               } /&gt;
           {context.item.name} ({context.item.items.length} items)
         <span class="hljs-tag">&lt;/<span class="hljs-name">React.Fragment</span>&gt;</span>
         }
       }
  /&gt;
<span class="hljs-tag">&lt;/<span class="hljs-name">wjGrid.FlexGridColumn</span>&gt;</span></code></pre>
									<p><b>Group</b></p>
									<p>Defines a template for a regular cell (not a group header) in a <a href="../classes/wijmo_grid.grouprow.html">GroupRow</a>. Must be a child of the
										<a href="wijmo_react_grid.html#flexgridcolumn">wijmo.react.grid.FlexGridColumn</a> component. This cell type has an additional <b>context.value</b>
										property. In cases where columns have the <b>aggregate</b> property specified, it contains the unformatted
									aggregate value.</p>
									<p>For example, this template shows aggregate's value and kind for group row cells in the "Sales"
									column:</p>
									<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridColumn</span> <span class="hljs-attr">header</span>=<span class="hljs-string">"Sales"</span> <span class="hljs-attr">binding</span>=<span class="hljs-string">"sales"</span> <span class="hljs-attr">aggregate</span>=<span class="hljs-string">"Avg"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridCellTemplate</span>
      <span class="hljs-attr">cellType</span>=<span class="hljs-string">"Group"</span>
      <span class="hljs-attr">template</span>=<span class="hljs-string">{</span> (<span class="hljs-attr">context</span>) =&gt;</span> {
         return <span class="hljs-tag">&lt;<span class="hljs-name">React.Fragment</span>&gt;</span>
           Average: {wjcCore.Globalize.formatNumber(context.value, 'N0')}
         <span class="hljs-tag">&lt;/<span class="hljs-name">React.Fragment</span>&gt;</span>
         }
       }
  /&gt;
<span class="hljs-tag">&lt;/<span class="hljs-name">wjGrid.FlexGridColumn</span>&gt;</span></code></pre>
									<p><b>ColumnFooter</b></p>
									<p>Defines a template for a regular cell in a <b>columnFooters</b> panel. Must be a child of the
										<a href="wijmo_react_grid.html#flexgridcolumn">wijmo.react.grid.FlexGridColumn</a> component. This cell type provides an additional <b>context.value</b>
									property available for binding that contains an aggregated cell value.</p>
									<p>For example, this template shows aggregate's value and kind for a footer cell in the "Sales"
									column:</p>
									<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridColumn</span> <span class="hljs-attr">header</span>=<span class="hljs-string">"Sales"</span> <span class="hljs-attr">binding</span>=<span class="hljs-string">"sales"</span> <span class="hljs-attr">aggregate</span>=<span class="hljs-string">"Avg"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridCellTemplate</span>
      <span class="hljs-attr">cellType</span>=<span class="hljs-string">"ColumnFooter"</span>
      <span class="hljs-attr">template</span>=<span class="hljs-string">{</span> (<span class="hljs-attr">context</span>) =&gt;</span> {
         return <span class="hljs-tag">&lt;<span class="hljs-name">React.Fragment</span>&gt;</span>
           Average: {wjcCore.Globalize.formatNumber(context.value, 'N0')}
         <span class="hljs-tag">&lt;/<span class="hljs-name">React.Fragment</span>&gt;</span>
         }
       }
  /&gt;
<span class="hljs-tag">&lt;/<span class="hljs-name">wjGrid.FlexGridColumn</span>&gt;</span></code></pre>
									<p><b>BottomLeft</b></p>
									<p>Defines a template for the bottom left cells (at the intersection of the row header and column footer cells).
										Must be a child of the <a href="wijmo_react_grid.html#flexgrid">wijmo.react.grid.FlexGrid</a> component.
									For example, this template shows a sigma glyph in the bottom-left cell of the grid:</p>
									<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGrid</span> <span class="hljs-attr">itemsSource</span>=<span class="hljs-string">{this.state.data}</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridCellTemplate</span>
      <span class="hljs-attr">cellType</span>=<span class="hljs-string">"BottomLeft"</span>
      <span class="hljs-attr">template</span>=<span class="hljs-string">{(context)</span> =&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">span</span>&gt;</span><span class="hljs-symbol">&amp;#931;</span><span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>} /&gt;
<span class="hljs-tag">&lt;/<span class="hljs-name">wjGrid.FlexGrid</span>&gt;</span></code></pre>
									<p><b>NewCellTemplate</b></p>
									<p>Defines a cell in a new row template. Must be a child of the <a href="wijmo_react_grid.html#flexgridcolumn">wijmo.react.grid.FlexGridColumn</a> component.
										Note that the <b>context.item</b> property is undefined for this type of a cell.
									For example, this cell template shows a placeholder in the Date column's cell in the "new row" item:</p>
									<pre><code class="language-html"><span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridColumn</span> <span class="hljs-attr">header</span>=<span class="hljs-string">"Date"</span> <span class="hljs-attr">binding</span>=<span class="hljs-string">"date"</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">wjGrid.FlexGridCellTemplate</span>
      <span class="hljs-attr">cellType</span>=<span class="hljs-string">"NewCellTemplate"</span>
      <span class="hljs-attr">template</span>=<span class="hljs-string">{</span> (<span class="hljs-attr">context</span>) =&gt;</span> 'Enter a date here' } /&gt;
<span class="hljs-tag">&lt;/<span class="hljs-name">wjGrid.FlexGridColumn</span>&gt;</span></code></pre>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
								<a name="flexgridcolumn" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagConst">Const</span> FlexGridColumn</h3>
								<div class="tsd-signature tsd-kind-icon">Flex<wbr>Grid<wbr>Column<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">WjForwardRefExoticComponent</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">FlexGridColumnProps</span><span class="tsd-signature-symbol">&gt;</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>React component for the <a href="../classes/wijmo_grid.column.html">wijmo.grid.Column</a> class.</p>
									</div>
									<p>The <b>flex-grid-column</b> component should be contained in
									a <a href="wijmo_react_grid.html#flexgrid">wijmo.react.grid.FlexGrid</a> component.</p>
									<p>The <b>flex-grid-column</b> component may contain
									a <a href="wijmo_react_grid.html#flexgridcelltemplate">wijmo.react.grid.FlexGridCellTemplate</a> child component.</p>
									<p>The component supports all properties and events of the pure JavaScript <a href="../classes/wijmo_grid.column.html">wijmo.grid.Column</a> class it represents.</p>
									<p>The component includes an <b>initialized</b> event that is raised when the control is initialized after it is added to the page.
										You can use this event to perform further initialization in addition to setting properties in JSX.
									The signature of the handler function is the same as any other Wijmo event handlers.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-external-module">
								<a name="flexgridcolumngroup" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagConst">Const</span> FlexGridColumnGroup</h3>
								<div class="tsd-signature tsd-kind-icon">Flex<wbr>Grid<wbr>Column<wbr>Group<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">WjForwardRefExoticComponent</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">FlexGridColumnGroupProps</span><span class="tsd-signature-symbol">&gt;</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>React component for the <a href="../classes/wijmo_grid.columngroup.html">wijmo.grid.ColumnGroup</a> class.</p>
									</div>
									<p>The <b>flex-grid-column-group</b> component should be contained in
										one of the following components:
										<a href="wijmo_react_grid.html#flexgrid">wijmo.react.grid.FlexGrid</a>
									or <a href="wijmo_react_grid.html#flexgridcolumngroup">wijmo.react.grid.FlexGridColumnGroup</a>.</p>
									<p>The <b>flex-grid-column-group</b> component may contain
										the following child components:
										<a href="wijmo_react_grid.html#flexgridcolumngroup">wijmo.react.grid.FlexGridColumnGroup</a>
									and <a href="wijmo_react_grid.html#flexgridcelltemplate">wijmo.react.grid.FlexGridCellTemplate</a>.</p>
									<p>The component supports all properties and events of the pure JavaScript <a href="../classes/wijmo_grid.columngroup.html">wijmo.grid.ColumnGroup</a> class it represents.</p>
									<p>The component includes an <b>initialized</b> event that is raised when the control is initialized after it is added to the page.
										You can use this event to perform further initialization in addition to setting properties in JSX.
									The signature of the handler function is the same as any other Wijmo event handlers.</p>
								</div>
							</section>
						</section>
					</div>