dev: Make examples match the actual code

Jira Issue DD-2070
pull/527/head
SandyDatatables 3 years ago
parent 3195490f51
commit b6fb65c68a

@ -630,11 +630,11 @@ $(document).ready(function() {
</table> </table>
</div> </div>
<p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() { <p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() {
var table = $('#example').DataTable({ var table = $('#example').DataTable({
fuzzySearch: { fuzzySearch: {
rankColumn: 6 rankColumn: 6
} }
}); });
} );</code> } );</code>
</div> </div>
</section> </section>

@ -56,7 +56,9 @@
$(document).ready(function() { $(document).ready(function() {
var table = $('#example').DataTable({ var table = $('#example').DataTable({
fuzzySearch: true, fuzzySearch: true,
search:{return: true} search: {
return: true
}
}); });
} ); } );
@ -568,10 +570,12 @@ $(document).ready(function() {
</table> </table>
</div> </div>
<p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() { <p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() {
var table = $('#example').DataTable({ var table = $('#example').DataTable({
fuzzySearch: true, fuzzySearch: true,
search:{return: true} search: {
}); return: true
}
});
} );</code> } );</code>
</div> </div>
</section> </section>

@ -630,13 +630,13 @@ $(document).ready(function() {
</table> </table>
</div> </div>
<p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() { <p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() {
var table = $('#example').DataTable({ var table = $('#example').DataTable({
fuzzySearch: { fuzzySearch: {
rankColumn: 6, rankColumn: 6,
toggleSmart: true toggleSmart: true
}, },
stateSave: true stateSave: true
}); });
} );</code> } );</code>
</div> </div>
</section> </section>

@ -637,14 +637,12 @@ $(document).ready(function() {
</table> </table>
</div> </div>
<p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() { <p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() {
$(document).ready(function() { var table = $('#example').DataTable({
var table = $('#example').DataTable({ fuzzySearch: {
fuzzySearch: { rankColumn: 6,
rankColumn: 6, threshold: 0.1
threshold: 0.1 }
} });
});
} );
} );</code> } );</code>
</div> </div>
</section> </section>

@ -632,14 +632,12 @@ $(document).ready(function() {
</table> </table>
</div> </div>
<p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() { <p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() {
$(document).ready(function() { var table = $('#example').DataTable({
var table = $('#example').DataTable({ fuzzySearch: {
fuzzySearch: { rankColumn: 6,
rankColumn: 6, toggleSmart: true
toggleSmart: true }
} });
});
} );
} );</code> } );</code>
</div> </div>
</section> </section>

Loading…
Cancel
Save