Comments (2)
I figured it out. Simply add:
.trigger('page', 1);
$('#pagination-demo').twbsPagination({...}).trigger('page', 1);
The first page content loaded should be default. If it's not, at least the doc should mention it.
It took me 49 hours to figure this out....
from twbs-pagination.
Yes, you're right about trigger page.
In the past, code had trigger action.
But then line has been removed. I can't remember why...
from twbs-pagination.
Related Issues (20)
- npmjs.org maintainer's list update HOT 2
- What is anchorClass?
- Ellipsis in the middle (see http://flaviusmatis.github.io/simplePagination.js/) HOT 1
- Pagination, lazyloader and other stuff on the site HOT 1
- how to disable first,next,... and how to add html5 effects? HOT 1
- Re-render pagination buttons HOT 3
- $('#pagination').twbspagination is not a function HOT 1
- Not re-initialize after destroy HOT 3
- Uncaught Error: Start page option is incorrect HOT 2
- Can you run multiple on the same page HOT 1
- Update npm plugin to latest version HOT 1
- Cannot read property 'children' of undefined
- how to define
- the difference between ajax init and document ready init?
- vanilla JS
- $('#pagination').twbspagination is not working HOT 1
- Release 1.4.2 is missing? HOT 7
- Hi, how to mark up the page by adding text color or any change by which the page can be identified easily and review it later
- Dynamic total pages not work HOT 2
- 'unsafe-inline', 'unsafe-eval' with 'style-src' and 'script-src'
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 twbs-pagination.