Can the "input" plugin for manual entry of page number be made to work with 1.10?

Can the "input" plugin for manual entry of page number be made to work with 1.10?

stevecoh1stevecoh1 Posts: 3Questions: 1Answers: 0
edited September 2015 in Free community support

And if so, how? I have tried using the following syntaxes:

$(document).ready(function() {
      $('#example').DataTable( {
          "paginationType": "input"
      } );
  } );

and

$(document).ready(function() {
      $('#example').DataTable( {
          "pagingType": "input"
      } );
  } );

and both perform identically:
the page number input field works correctly, but all the other buttons "next" "previous", etc, render as text.

How may this plugin be used with Data Tables 1.10?

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    The plugin works fine for me with 1.10.

    pagingType: "input",
    is correct.

    I don't know what behaviour you're expecting when you say "all the other buttons".
    The manual is pretty clear:

    This paging control uses a text input box to accept new paging numbers (arrow keys are also allowed for), and four standard navigation buttons are also presented to the end user.

  • stevecoh1stevecoh1 Posts: 3Questions: 1Answers: 0

    1.10 is not the issue, but SOMETHING is breaking the plugin. I do NOT see the other buttons, I just see their text, all concatenated together. A screenshot of what I am seeing is available at http://stackoverflow.com/questions/32505087/how-to-use-the-jquery-datatables-input-plugin-with-datatables-1-10

  • stevecoh1stevecoh1 Posts: 3Questions: 1Answers: 0

    This question was based on an incorrect assumption. The problem had nothing to do with DataTables 1.10 vs earlier. Instead, it was basically a stupid programmer problem. Previous version of the page got along just file without the JQuery Datatables stylesheet jquery.dataTables.css. However, that stylesheet is essential for this plugin to render the buttons properly.

This discussion has been closed.