-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update document for efx-grid v6.0.155
- Loading branch information
Showing
168 changed files
with
324,544 additions
and
378,008 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,2 @@ | ||
<h1 id="changing-formatter-at-runtime">Changing Formatter at Runtime</h1> | ||
<p>Sometimes you might want to change a custom rendering at runtime. This can be achieved by using <code>setColumnFormatter</code> method.</p> | ||
<blockquote> | ||
<p>APIs for Grid and the <code>setColumnFormatter()</code> method description can be found <a href="#/apis/rt-grid/grid">here</a>.</p> | ||
</blockquote> | ||
<pre><code class="language-js">var grid = document.getElementsByTagName("efx-grid")[0]; | ||
|
||
// formatter can be a function | ||
var formatter = function(e) { | ||
var value = e.grid.getRowData(e.rowIndex)[e.field]; | ||
e.cell.setContent(value); | ||
}; | ||
|
||
/* | ||
// or can be an object. | ||
var formatter = { | ||
binding: function(e) { | ||
var value = e.grid.getRowData(e.rowIndex)[e.field]; | ||
e.cell.setContent(value); | ||
} | ||
}; | ||
// or can be a predefined formatter | ||
var formatter = SimpleLinkFormatter.create() | ||
*/ | ||
|
||
function handleChangeFormatter() { | ||
grid.api.setColumnFormatter(0 /* Column Index */, formatter); | ||
} | ||
</code></pre> | ||
<h1 id="realtime-market-data">Realtime Market Data</h1> | ||
<p>This section has been moved <a href="#/realtime-data/jet">here</a>.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.