mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-06-08 08:52:32 +02:00
Updated 1.15 No results message (markdown)
parent
704c830911
commit
49cf4fce4e
|
@ -18,10 +18,10 @@
|
|||
<td>You can use this option as a literal object too</td>
|
||||
<td>
|
||||
<pre>
|
||||
var tfConfig = { help_no_results_message: true };
|
||||
var tfConfig = { no_results_message: true };
|
||||
// or
|
||||
var tfConfig = {
|
||||
help_no_results_message: {
|
||||
no_results_message: {
|
||||
content: 'Data not found'
|
||||
}
|
||||
};
|
||||
|
@ -36,7 +36,7 @@ var tfConfig = {
|
|||
<td>
|
||||
<pre>
|
||||
var tfConfig = {
|
||||
help_no_results_message: {
|
||||
no_results_message: {
|
||||
content: '<h3>No results found</h3>'
|
||||
}
|
||||
};
|
||||
|
@ -51,7 +51,7 @@ var tfConfig = {
|
|||
<td>
|
||||
<pre>
|
||||
var tfConfig = {
|
||||
help_no_results_message: {
|
||||
no_results_message: {
|
||||
content: document.querySelector('.my-class')
|
||||
}
|
||||
};
|
||||
|
@ -66,7 +66,7 @@ var tfConfig = {
|
|||
<td>
|
||||
<pre>
|
||||
var tfConfig = {
|
||||
help_no_results_message: {
|
||||
no_results_message: {
|
||||
content: 'container'
|
||||
}
|
||||
};
|
||||
|
@ -76,14 +76,48 @@ var tfConfig = {
|
|||
<tr>
|
||||
<th>css_class</th>
|
||||
<td>string</td>
|
||||
<td>Define the css class for the element that will contain the no results message (default - null)</td>
|
||||
<td>Define the css class for the element that will contain the no results message (default - 'no-results')</td>
|
||||
<td>It also applies to an external custom element</td>
|
||||
<td>
|
||||
<pre>
|
||||
var tfConfig = {
|
||||
help_no_results_message: {
|
||||
no_results_message: {
|
||||
css_class: 'my-class'
|
||||
}
|
||||
};
|
||||
</pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>on_before_show_msg</th>
|
||||
<td>function</td>
|
||||
<td>Callback invoked just before a no results message is displayed (default - null)</td>
|
||||
<td></td>
|
||||
<td>
|
||||
<pre>
|
||||
var tfConfig = {
|
||||
no_results_message: {
|
||||
on_before_show_msg: function(tf, feature){
|
||||
console.log(feature);
|
||||
}
|
||||
}
|
||||
};
|
||||
</pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>on_after_show_msg</th>
|
||||
<td>function</td>
|
||||
<td>Callback invoked just after a no results message is displayed (default - null)</td>
|
||||
<td></td>
|
||||
<td>
|
||||
<pre>
|
||||
var tfConfig = {
|
||||
no_results_message: {
|
||||
on_after_show_msg: function(tf, feature){
|
||||
console.log(feature);
|
||||
}
|
||||
}
|
||||
};
|
||||
</pre>
|
||||
</td>
|
||||
|
|
Loading…
Reference in a new issue