Giter Site home page Giter Site logo

Comments (5)

fontanellif avatar fontanellif commented on August 19, 2024

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.

jeffdupont avatar jeffdupont commented on August 19, 2024

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.

fontanellif avatar fontanellif commented on August 19, 2024

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.

fontanellif avatar fontanellif commented on August 19, 2024

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?

  1. How i create the table:

$("#table-flow").datatable({
url: url_update ,
rowCallback: function ( row ) { return flow_table_setID(row); },
showFilter: true,
showPagination: true, ecc..

  1. How i try to access to the object:

var table = $("#table-flow");

Thanks
Filippo

from bootstrap-data-table.

jeffdupont avatar jeffdupont commented on August 19, 2024

var $dt = $(“#table-flow").data("datatable”);

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?

  1. How i create the table:
    $("#table-flow").datatable({
    url: url_update ,
    rowCallback: function ( row ) { return flow_table_setID(row); },
    showFilter: true,
    showPagination: true, ecc..
  2. 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)

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.