mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-08-16 21:50:17 +00:00
20181014 release
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
<li><a href="#expandrowonexpandall-function">onExpandAll</a></li>
|
||||
<li><a href="#expandrowshowexpandcolumn-bool">showExpandColumn</a></li>
|
||||
<li><a href="#expandrowonlyoneexpanding-bool">onlyOneExpanding</a></li>
|
||||
<li><a href="#expandrowexpandbycolumnonly-bool">expandByColumnOnly</a></li>
|
||||
<li><a href="#expandrowexpandcolumnrenderer-function">expandColumnRenderer</a></li>
|
||||
<li><a href="#expandrowexpandheadercolumnrenderer-function">expandHeaderColumnRenderer</a></li>
|
||||
</ul>
|
||||
@@ -87,8 +88,16 @@
|
||||
<h2><a class="anchor" aria-hidden="true" name="expandrowonlyoneexpanding-bool"></a><a href="#expandrowonlyoneexpanding-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.onlyOneExpanding - [Bool]</h2>
|
||||
<p>Default is <code>false</code>. Enable this will only allow one row get expand at the same time.</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> ...
|
||||
onlyOneExpanding: <span class="hljs-literal">true</span>
|
||||
<span class="hljs-attr">renderer</span>: <span class="hljs-function">(<span class="hljs-params">row</span>) =></span> ...
|
||||
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="expandrowexpandcolumnrenderer-function"></a><a href="#expandrowexpandcolumnrenderer-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.expandColumnRenderer - [Function]</h2>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
<li><a href="#selectrowbgcolor-string-function">bgColor</a></li>
|
||||
<li><a href="#selectrownonselectable-array">nonSelectable</a></li>
|
||||
<li><a href="#selectrowclicktoselect-bool">clickToSelect</a></li>
|
||||
<li><a href="#selectrowclicktoexpand-bool">clickToExpand</a></li>
|
||||
<li><a href="#selectrowclicktoedit-bool">clickToEdit</a></li>
|
||||
<li><a href="#selectrowonselect-function">onSelect</a></li>
|
||||
<li><a href="#selectrowonselectall-function">onSelectAll</a></li>
|
||||
@@ -117,6 +118,13 @@
|
||||
<blockquote>
|
||||
<p>Note: When you also enable <a href="./cell-edit-props.html">cellEdit</a>, the <code>selectRow.clickToSelect</code> will deactivate the functionality of cell editing. If you want to click on row to select row and edit cell simultaneously, you are suppose to enable <a href="#selectrowclicktoedit-bool"><code>selectRow.clickToEdit</code></a></p>
|
||||
</blockquote>
|
||||
<h2><a class="anchor" aria-hidden="true" name="selectrowclicktoexpand-bool"></a><a href="#selectrowclicktoexpand-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>selectRow.clickToExpand - [Bool]</h2>
|
||||
<p>Default is false, enable it will let user able to expand and select row when user clicking on the row.</p>
|
||||
<pre><code class="hljs css js"><span class="hljs-keyword">const</span> selectRow = {
|
||||
<span class="hljs-attr">mode</span>: <span class="hljs-string">'checkbox'</span>,
|
||||
<span class="hljs-attr">clickToExpand</span>: <span class="hljs-literal">true</span>
|
||||
};
|
||||
</code></pre>
|
||||
<h2><a class="anchor" aria-hidden="true" name="selectrowclicktoedit-bool"></a><a href="#selectrowclicktoedit-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>selectRow.clickToEdit - [Bool]</h2>
|
||||
<p>Able to click to edit cell and select row at the same time.</p>
|
||||
<pre><code class="hljs css js"><span class="hljs-keyword">const</span> selectRow = {
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
<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>
|
||||
@@ -99,6 +100,8 @@ When <code>loading</code> is <code>true</code>, <code>react-bootstrap-table2</co
|
||||
<p>Same as bootstrap <code>.table-condensed</code> class for making a table more compact by cutting cell padding in half.</p>
|
||||
<h2><a class="anchor" aria-hidden="true" name="id-string"></a><a href="#id-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>id - [String]</h2>
|
||||
<p>Customize id on <code>table</code> element.</p>
|
||||
<h2><a class="anchor" aria-hidden="true" name="tabindexcell-bool"></a><a href="#tabindexcell-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>tabIndexCell - [Bool]</h2>
|
||||
<p>Enable the <code>tabIndex</code> attribute on <code><td></code> element.</p>
|
||||
<h2><a class="anchor" aria-hidden="true" name="classes-string"></a><a href="#classes-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>classes - [String]</h2>
|
||||
<p>Customize class on <code>table</code> element.</p>
|
||||
<h2><a class="anchor" aria-hidden="true" name="wrapperclasses-string"></a><a href="#wrapperclasses-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>wrapperClasses - [String]</h2>
|
||||
|
||||
Reference in New Issue
Block a user