Coder Social home page Coder Social logo

Comments (6)

l-lin avatar l-lin commented on August 15, 2024

It's because of bootstrap integration. Seems like there is some side effects when using DT 1.10+.
I'm on it.

from angular-datatables.

l-lin avatar l-lin commented on August 15, 2024

Silly me, this was an issue I wanted to do, but I totally forgot.
When I implemented the Bootstrap integration, I used what recommended DataTables.
However, what they did is that they added a new pagination type bootstrap, which I always set it when DTOption.withBootstrap() is called. That's why you have different rendering when you use DTOption.withPaginationType('full_numbers') or DTOption.withOption('paging', 'full_numbers').

This issue should now be resolved when using dev branch. 😄

from angular-datatables.

larserikfinholt avatar larserikfinholt commented on August 15, 2024

Hi! Just a followup on this. I'm having the same issue. When use default (not setting the paging property) the paging renders fine. But when I set paging using DTOption.withPaginationType('full_numbers') the buttons are not rendered. This is the html rendered (simple):

<div class="dataTables_paginate paging_simple" id="DataTables_Table_3_paginate"><a   class="paginate_button previous disabled" aria-controls="DataTables_Table_3" data-dt-idx="0" tabindex="0" id="DataTables_Table_3_previous">Previous</a><a class="paginate_button next" aria-controls="DataTables_Table_3" data-dt-idx="1" tabindex="0" id="DataTables_Table_3_next">Next</a></div>

Thanks for any help

larsi

from angular-datatables.

l-lin avatar l-lin commented on August 15, 2024

Are you using bootstrap? Can you provide a screenshot of your DataTable?

from angular-datatables.

larserikfinholt avatar larserikfinholt commented on August 15, 2024

https://dl.dropboxusercontent.com/u/21765464/forum/datatables-angular-bootstrap.PNG

Configured like this:

vm.dtOptions = DTOptionsBuilder.newOptions()
        .withPaginationType('simple')
        .withDOM('frtip')
        .withOption('displayLength', 10);

Commenting out the paginationtype line, it looks like this:

https://dl.dropboxusercontent.com/u/21765464/forum/without.PNG

from angular-datatables.

l-lin avatar l-lin commented on August 15, 2024

I think you forgot to add the .withBootstrap().
See this Plnkr.

from angular-datatables.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.