Giter Site home page Giter Site logo

Comments (8)

ricardodovalle avatar ricardodovalle commented on July 20, 2024

@uhn-nohn
Did you solve the issue?
Could you try against last version, i did several updates, please see README before.

Thanks

from jquery-datatables-rails.

uhn-nohn avatar uhn-nohn commented on July 20, 2024

Hello, thanks for the update. The scroll is working now, but still when you resize the window, the table brakes.

from jquery-datatables-rails.

ricardodovalle avatar ricardodovalle commented on July 20, 2024

@uhn-nohn , if it is possible, could you post your code or a create only a small project at github to test this issue, this way it is easier for us to work together. It is very hard to see without correct indentation.

(i never used responsive with scroller)
Have you defined breakpointDefinition?

responsiveHelper = undefined
breakpointDefinition =
  tablet: 1024
  phone: 480

from jquery-datatables-rails.

uhn-nohn avatar uhn-nohn commented on July 20, 2024

Yes I have them defined, but now when I try to require the //= require dataTables/extras/Scroller, I get couldn't find file 'dataTables/extras/Scroller'. Sorry about the indentation, is fixed now

from jquery-datatables-rails.

ricardodovalle avatar ricardodovalle commented on July 20, 2024

@uhn-nohn Please trying using dataTables.scroller.js

//= require dataTables/extras/dataTables.scroller

Now the gem reflect the same at DataTables project

You can see the files here:
https://github.com/rweng/jquery-datatables-rails/tree/master/app/assets/javascripts/dataTables/extras

from jquery-datatables-rails.

ricardodovalle avatar ricardodovalle commented on July 20, 2024

Please take a look at Readme, dataTables.responsive changed too:

responsiveHelper = undefined
breakpointDefinition =
  tablet: 1024
  phone: 480

tableElement = $("#example")
tableElement.dataTable
  autoWidth: false
  preDrawCallback: ->

    # Initialize the responsive datatables helper once.
    responsiveHelper = new ResponsiveDatatablesHelper(tableElement, breakpointDefinition)  unless responsiveHelper
    return

  rowCallback: (nRow) ->
    responsiveHelper.createExpandIcon nRow
    return

  drawCallback: (oSettings) ->
    responsiveHelper.respond()
    return

from jquery-datatables-rails.

ricardodovalle avatar ricardodovalle commented on July 20, 2024

This way you must define only once Responsive plugin per page. If you need more, take a look at plugin author Readme to know to do, it is possible.
author: https://github.com/Comanche/datatables-responsive

Version: DataTables 1.10.x

from jquery-datatables-rails.

ricardodovalle avatar ricardodovalle commented on July 20, 2024

@uhn-nohn
Closed by user inactivity.
Please reopen if the error persist or to post the answer.
Thanks.

from jquery-datatables-rails.

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.