dev: Update examples to contain correct code at the base of the page

Jira Issue DD-2070
pull/527/head
SandyDatatables 3 years ago
parent d2a3b53026
commit 46f4352abe

@ -626,14 +626,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({ $(document).ready(function() {
fuzzySearch: { var table = $('#example').DataTable({
toggleSmart: true, fuzzySearch: {
rankColumn: 6, rankColumn: 6
threshold: 0.5, }
returnSearch: false });
} } );
});
} );</code> } );</code>
</div> </div>
</section> </section>

@ -567,14 +567,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({ $(document).ready(function() {
fuzzySearch: { var table = $('#example').DataTable({
toggleSmart: true, fuzzySearch: {
rankColumn: 6, returnSearch: true
threshold: 0.5, }
returnSearch: false });
} } );
});
} );</code> } );</code>
</div> </div>
</section> </section>

@ -629,14 +629,16 @@ $(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({ $(document).ready(function() {
fuzzySearch: { var table = $('#example').DataTable({
toggleSmart: true, fuzzySearch: {
rankColumn: 6, rankColumn: 6,
threshold: 0.5, threshold: true,
returnSearch: false toggleSmart: true
} },
}); stateSave: true
});
} );
} );</code> } );</code>
</div> </div>
</section> </section>

@ -627,14 +627,14 @@ $(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({ $(document).ready(function() {
fuzzySearch: { var table = $('#example').DataTable({
toggleSmart: true, fuzzySearch: {
rankColumn: 6, rankColumn: 6,
threshold: 0.5, threshold: 0.1
returnSearch: false }
} });
}); } );
} );</code> } );</code>
</div> </div>
</section> </section>

@ -627,14 +627,14 @@ $(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({ $(document).ready(function() {
fuzzySearch: { var table = $('#example').DataTable({
toggleSmart: true, fuzzySearch: {
rankColumn: 6, rankColumn: 6,
threshold: 0.5, toggleSmart: true
returnSearch: false }
} });
}); } );
} );</code> } );</code>
</div> </div>
</section> </section>

Loading…
Cancel
Save