Comments (5)
Hi
I don't know if it's a right way, but using the 'rowCallback:' now i can dynamically update the table values.
What is the best way to catch the current page displayed?
Thanks
Filippo
from bootstrap-data-table.
The rowCallback is the way to dynamically insert data into cells of the
table. As for pages, there is a current_page property on the object that
should give you the value you're looking for.
On May 6, 2014 2:26 AM, "Filippo Fontanelli" [email protected]
wrote:
Hi
I don't know if it's a right way, but using the 'rowCallback:' now i can
dynamically update the table values.What is the best way to catch the current page displayed?
Thanks
Filippo—
Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-42282270
.
from bootstrap-data-table.
Thanks for reply,
What can i use instead of the rowCallback? I need to update some value (i.e 12 Bytes -> to 20 Bytes) without reload the page.
Please can you provide me an example? (it should be easy for you)
"As for pages, there is a current_page property on the object that
should give you the value you're looking for."
from bootstrap-data-table.
Sorry for the insistence..
But i tired to take the current_page/pages value but without success. Surely I'm doing something wrong but i don't know what.
How a can access to the object?
- How i create the table:
$("#table-flow").datatable({
url: url_update ,
rowCallback: function ( row ) { return flow_table_setID(row); },
showFilter: true,
showPagination: true, ecc..
- How i try to access to the object:
var table = $("#table-flow");
Thanks
Filippo
from bootstrap-data-table.
var
That should give you access to the datatable object that is associated with that element. From there you can access the .options property and see the current_page value.
I’ve tried to make the plugin as simple as possible with the ability to override nearly every option and hook.
Jeff Dupont
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Friday, May 9, 2014 at 10:47 AM, Filippo Fontanelli wrote:
Sorry for the insistence..
But i tired to take the current_page/pages value but without success. Surely I'm doing something wrong but i don't know what.
How a can access to the object?
- How i create the table:
$("#table-flow").datatable({
url: url_update ,
rowCallback: function ( row ) { return flow_table_setID(row); },
showFilter: true,
showPagination: true, ecc..- How i try to access to the object:
var table = $("#table-flow");
Thanks
Filippo—
Reply to this email directly or view it on GitHub (#26 (comment)).
from bootstrap-data-table.
Related Issues (20)
- How to apply options.filter values HOT 2
- About sorting HOT 1
- Question about rerender table in onClick event HOT 12
- Demo of data table? HOT 1
- Reload Data
- extending bootstrap-data-table. HOT 1
- Sort Option HOT 1
- Bootstrap 3 and pagination
- Filter input disappears HOT 1
- Seems can not reload/refresh table HOT 3
- Strange filter icon HOT 1
- Multi Row Select HOT 2
- Bootstrap 3.1.1Patch
- min file out of sync
- allowExport HOT 3
- Can't get it to work HOT 5
- Clickable rows HOT 2
- Sorting bug, after desc there is null HOT 1
- Question about sortOrder HOT 1
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 bootstrap-data-table.