mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-07-01 06:30:11 +00:00
20190219 release
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
108
docs/basic-column-toggle.html
Normal file
108
docs/basic-column-toggle.html
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -93,6 +93,14 @@
|
||||
onlyOneExpanding: <span class="hljs-literal">true</span>
|
||||
};
|
||||
</code></pre>
|
||||
<h2><a class="anchor" aria-hidden="true" name="expandrowexpandbycolumnonly-bool"></a><a href="#expandrowexpandbycolumnonly-bool" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>expandRow.expandByColumnOnly - [Bool]</h2>
|
||||
<p>Default is <code>false</code>. If you want to restrict user to expand/collapse row via clicking the expand column only, you can enable it.</p>
|
||||
<pre><code class="hljs css js"><span class="hljs-keyword">const</span> expandRow = {
|
||||
<span class="hljs-attr">renderer</span>: <span class="hljs-function">(<span class="hljs-params">row</span>) =></span> ...,
|
||||
<span class="hljs-attr">showExpandColumn</span>: <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-attr">expandByColumnOnly</span>: <span class="hljs-literal">true</span>
|
||||
};
|
||||
</code></pre>
|
||||
<h2><a class="anchor" aria-hidden="true" name="expandrowexpandcolumnposition-string"></a><a href="#expandrowexpandcolumnposition-string" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>expandRow.expandColumnPosition - [String]</h2>
|
||||
<p>Default is <code>left</code>. You can give this as <code>right</code> for rendering expand column in the right side.</p>
|
||||
<pre><code class="hljs css js">const expandRow = {
|
||||
@@ -125,18 +133,14 @@ const expandRow = {
|
||||
)
|
||||
};
|
||||
</code></pre>
|
||||
<pre><code class="hljs">
|
||||
|
||||
<span class="coffeescript"><span class="hljs-comment">## expandRow.expandHeaderColumnRenderer - [Function]</span>
|
||||
Provide a callback function which allow you to custom the expand indicator <span class="hljs-keyword">in</span> the expand header column. This callback only have one argument which <span class="hljs-keyword">is</span> an object <span class="hljs-keyword">and</span> contain one property `<span class="javascript">isAnyExpands</span>` to indicate <span class="hljs-keyword">if</span> there are any expanded rows:
|
||||
|
||||
```<span class="javascript">js
|
||||
<span class="hljs-keyword">const</span> expandRow = {
|
||||
<h2><a class="anchor" aria-hidden="true" name="expandrowexpandheadercolumnrenderer-function"></a><a href="#expandrowexpandheadercolumnrenderer-function" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>expandRow.expandHeaderColumnRenderer - [Function]</h2>
|
||||
<p>Provide a callback function which allow you to custom the expand indicator in the expand header column. This callback only have one argument which is an object and contain one property <code>isAnyExpands</code> to indicate if there are any expanded rows:</p>
|
||||
<pre><code class="hljs css js"><span class="hljs-keyword">const</span> expandRow = {
|
||||
<span class="hljs-attr">renderer</span>: <span class="hljs-function">(<span class="hljs-params">row</span>) =></span> ...,
|
||||
<span class="hljs-attr">showExpandColumn</span>: <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-attr">expandHeaderColumnRenderer</span>: <span class="hljs-function">(<span class="hljs-params">{ isAnyExpands }</span>) =></span> (
|
||||
<span class="hljs-comment">// ....</span>
|
||||
)
|
||||
};
|
||||
</span></span></code></pre>
|
||||
</code></pre>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="row-select-props.html">← Row Selection Props</a><a class="docs-next button" href="filter-props.html">Column Filter Props →</a></div></div></div></div><footer class="nav-footer" id="footer"><section class="sitemap"><a href="/react-bootstrap-table2/" class="nav-home"></a><div><h5>Docs</h5><a href="/react-bootstrap-table2/docs/en/getting-started.html">Getting Started</a><a href="/react-bootstrap-table2/docs/en/table-props.html">API References</a></div><div><h5>Community</h5><a href="https://stackoverflow.com/questions/tagged/react-bootstrap-table" target="_blank">Stack Overflow</a><a href="https://discordapp.com/">Project Chat</a><a href="https://twitter.com/" target="_blank">Twitter</a></div><div><h5>More</h5><a href="/react-bootstrap-table2/blog/index.html">Blog</a><a href="https://github.com/react-bootstrap-table/react-bootstrap-table2">GitHub</a><a class="github-button" href="https://github.com/react-bootstrap-table/react-bootstrap-table2" data-icon="octicon-star" data-count-href="/facebook/docusaurus/stargazers" data-show-count="true" data-count-aria-label="# stargazers on GitHub" aria-label="Star this project on GitHub">Star</a></div></section><section class="copyright">Copyright © 2019 react-bootstrap-table2.</section></footer></div></body></html>
|
||||
@@ -12,37 +12,32 @@
|
||||
</ul>
|
||||
<h2><a class="anchor" aria-hidden="true" name="optional"></a><a href="#optional" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Optional</h2>
|
||||
<ul>
|
||||
<li><a href="#required">Required</a></li>
|
||||
<li><a href="#optional">Optional</a></li>
|
||||
<li><a href="#keyfieldrequired---string">keyField(<strong>required</strong>) - [String]</a></li>
|
||||
<li><a href="#datarequired---array">data(<strong>required</strong>) - [Array]</a></li>
|
||||
<li><a href="#columnsrequired---object">columns(<strong>required</strong>) - [Object]</a></li>
|
||||
<li><a href="#remote---bool--object">remote - [Bool | Object]</a></li>
|
||||
<li><a href="#bootstrap4---bool">bootstrap4 - [Bool]</a></li>
|
||||
<li><a href="#nodataindication---function">noDataIndication - [Function]</a></li>
|
||||
<li><a href="#loading---bool">loading - [Bool]</a></li>
|
||||
<li><a href="#overlay---function">overlay - [Function]</a></li>
|
||||
<li><a href="#caption---string--node">caption - [String | Node]</a></li>
|
||||
<li><a href="#striped---bool">striped - [Bool]</a></li>
|
||||
<li><a href="#bordered---bool">bordered - [Bool]</a></li>
|
||||
<li><a href="#hover---bool">hover - [Bool]</a></li>
|
||||
<li><a href="#condensed---bool">condensed - [Bool]</a></li>
|
||||
<li><a href="#id---string">id - [String]</a></li>
|
||||
<li><a href="#tabindexcell---bool">tabIndexCell - [Bool]</a></li>
|
||||
<li><a href="#classes---string">classes - [String]</a></li>
|
||||
<li><a href="#wrapperclasses---string">wrapperClasses - [String]</a></li>
|
||||
<li><a href="#headerclasses---string">headerClasses - [String]</a></li>
|
||||
<li><a href="#celledit---object">cellEdit - [Object]</a></li>
|
||||
<li><a href="#selectrow---object">selectRow - [Object]</a></li>
|
||||
<li><a href="#rowstyle---object--function">rowStyle - [Object | Function]</a></li>
|
||||
<li><a href="#rowclasses---string--function">rowClasses - [String | Function]</a></li>
|
||||
<li><a href="#rowevents---object">rowEvents - [Object]</a></li>
|
||||
<li><a href="#hiddenrows---array">hiddenRows - [Array]</a></li>
|
||||
<li><a href="#defaultsorted---array">defaultSorted - [Array]</a></li>
|
||||
<li><a href="#defaultsortdirection---string">defaultSortDirection - [String]</a></li>
|
||||
<li><a href="#pagination---object">pagination - [Object]</a></li>
|
||||
<li><a href="#filter---object">filter - [Object]</a></li>
|
||||
<li><a href="#ontablechange---function">onTableChange - [Function]</a></li>
|
||||
<li><a href="#remote-bool-object">remote</a></li>
|
||||
<li><a href="#bootstrap4-bool">bootstrap4</a></li>
|
||||
<li><a href="#nodataindication-function">noDataIndication</a></li>
|
||||
<li><a href="#loading-bool">loading</a></li>
|
||||
<li><a href="#overlay-function">overlay</a></li>
|
||||
<li><a href="#caption-string-node">caption</a></li>
|
||||
<li><a href="#striped-bool">striped</a></li>
|
||||
<li><a href="#bordered-bool">bordered</a></li>
|
||||
<li><a href="#hover-bool">hover</a></li>
|
||||
<li><a href="#condensed-bool">condensed</a></li>
|
||||
<li><a href="#id-string">id</a></li>
|
||||
<li><a href="#tabindexcell-bool">tabIndexCell</a></li>
|
||||
<li><a href="#classes-string">classes</a></li>
|
||||
<li><a href="#wrapperClasses-string">wrapperClasses</a></li>
|
||||
<li><a href="#headerClasses-string">headerClasses</a></li>
|
||||
<li><a href="#celledit-object">cellEdit</a></li>
|
||||
<li><a href="#selectrow-object">selectRow</a></li>
|
||||
<li><a href="#rowstyle-object-function">rowStyle</a></li>
|
||||
<li><a href="#rowclasses-string-function">rowClasses</a></li>
|
||||
<li><a href="#rowevents-object">rowEvents</a></li>
|
||||
<li><a href="#hiddenrows-array">hiddenRows</a></li>
|
||||
<li><a href="#defaultsorted-array">defaultSorted</a></li>
|
||||
<li><a href="#defaultSortDirection-string">defaultSortDirection</a></li>
|
||||
<li><a href="#pagination-object">pagination</a></li>
|
||||
<li><a href="#filter-object">filter</a></li>
|
||||
<li><a href="#ontablechange-function">onTableChange</a></li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h2><a class="anchor" aria-hidden="true" name="keyfield-required-string"></a><a href="#keyfield-required-string" aria-hidden="true" class="hash-link" ><svg aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>keyField(<strong>required</strong>) - [String]</h2>
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user