Comments (6)
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.
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.
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.
Are you using bootstrap? Can you provide a screenshot of your DataTable?
from angular-datatables.
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.
I think you forgot to add the .withBootstrap()
.
See this Plnkr.
from angular-datatables.
Related Issues (20)
- ngTemplateRef does not work on responsive windows-mode when columns are stacked HOT 3
- AngularJS row reorder feature available or not
- Angular 17 responsive only works on initial load HOT 1
- Upgrade to DataTables.net v2 and swap out @types/datatables.net for the built-in types HOT 4
- Pagination not working with (bootstrap) tabs HOT 10
- After migration to angular 16, ngtemplateRef Breaks HOT 1
- Cannot read properties of undefined (reading 'options') when attempting to install angular data-tables. HOT 2
- ngTemplateRef cause the issue if visible = false HOT 1
- Issue related to missing index.d.ts file in node_modules HOT 2
- Use FixedHeader with server side pagination HOT 1
- Datatable is not working even after installing properly in my angular application HOT 2
- Add Support for Angular 18 HOT 7
- Bug in rerender datatable HOT 9
- CANNOT FIND NAMESPACE DATATABLES HOT 4
- Can't resolve 'node_modules/datatables.net/js/jquery.dataTables.min.js' HOT 4
- Angular 17 with Angular-Datatables: Unable to Re-render DataTable HOT 1
- *ngFor Directive Better Alternatives HOT 2
- Cannot make your code sample [Using Angular TemplateRef] working HOT 2
- Cannot make your code sample [Router-link] runnning HOT 2
- Custom components in render HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-datatables.