more documentation buglets and some theory/usage questions

more documentation buglets and some theory/usage questions

aaronwaaronw Posts: 89Questions: 3Answers: 4
edited June 2013 in Bug reports
On:
http://www.datatables.net/usage/features#bFilter
you have:
{@link DataTable.defaults.sDom}. and I think this is meant to be an actual link somewhere

Also:

1) Is there a reason why you would *not* want to use bDeferRender?

2) For using bootstrap with Editor/Datatables do you still need to follow the directions at http://www.datatables.net/blog/Twitter_Bootstrap_2, specifically '"sWrapper": "dataTables_wrapper form-inline"' ? Or do you just need dataTables.bootstrap.css (which is found in the Editor package?) along with the 2 .js files dataTables.editor.bootstrap.js and dataTables.bootstrap.js ?

3) Tabletools says that the selected row(s) have class DTTT_Selected (http://www.datatables.net/extras/tabletools/initialisation#sSelectedClass) but it actually appears to be 'active' (I am using the css from only dataTables.bootstrap.css)

4) Is there an easy way using TableTools to color the selected bar a different 'base' color? I used tr.active td !important CSS, but it has a different color scheme applied to it when hovering and this is a little tricky for me to figure out. The reason is that I have some cells that are using fnRender to turn into URLs and the color scheme doesn't work well there

5) Is it possible to get a list of all the sDom parameters somewhere? For example, TableTools has its own 'T' which you can only find in the table tools extra area, looking at the main sDom help doesn't show it.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Thanks for pointing out the link error (now fixed). There might be one or two more of them. I'm going to be completely revamping the documentation with the 1.10 release soon though.

    > 1) Is there a reason why you would *not* want to use bDeferRender?

    Generally speaking no. I plan to enable it by default in future, but it was introduced in 1.8 and I didn't want to break backwards compatibility with installs which assumed all nodes would be available.

    > 2) [...] Or do you just need dataTables.bootstrap.css (which is found in the Editor package?)

    This one. Actually - the most up-to-date file will always be found here: https://github.com/DataTables/Plugins/tree/master/integration/bootstrap

    > 3) Tabletools says that the selected row(s) have class DTTT_Selected

    The Bootstrap file is overwriting the default to integrate with Bootstrap.

    > 4) Is there an easy way using TableTools to color the selected bar a different 'base' color?

    I think we'd need a link to the page to see what is going wrong with the selector priorities.

    > 5) Is it possible to get a list of all the sDom parameters somewhere?

    The sDom documentation shows all the options built into DataTables (which I think is correct for the core documentation). Each plug-in you add can then add additional options. I don't want to include that in the core documentation as there are options that I don't support (like the Column Filtering widget from 3rd parties).

    It probably is a good idea to have a link of all known plug-ins and there initialisation options somewhere though. I'll look at adding that in tot he revamped site.

    Allan
  • aaronwaaronw Posts: 89Questions: 3Answers: 4
    So I do:
    [code]

    tr.active td
    {background-color: green !important ;}

    [/code]

    and then it is green when it's not in hover, but when it is in hover, it goes back to a shade of blue. The only CSS i am using is dataTables.bootstrap.css and bootstrap.min.css
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    There shouldn't be anything in the CSS file that will cause that ( https://github.com/DataTables/Plugins/blob/master/integration/bootstrap/dataTables.bootstrap.css ). Can you link me to a test page showing the problem please?

    Allan
  • aaronwaaronw Posts: 89Questions: 3Answers: 4
    I see
    [code]
    .table tbody tr.active:hover td,
    .table tbody tr.active:hover th {
    background-color: #0075b0 !important;
    [/code]
    in the dataTables.bootstrap.css file. I've gone ahead and made a debug at http://debug.datatables.net/aneyis (after getting a new dataTables.bootstrap.css file)
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    404 on that debug at the moment (although the debugger doesn't help too much with CSS). If you set the bSortClasses option to false, does the problem "go away"?

    Allan
  • aaronwaaronw Posts: 89Questions: 3Answers: 4
    edited June 2013
    I reposted it at http://debug.datatables.net/ohojux . I've also put bSortClasses to False and the problem is still there. I just have bootstrap.min.css and the dataTable.bootstrap.css files and this below CSS in the page itself:

    [code]
    tr.active td
    {background-color: green !important ;}
    [/code]
    the bg color is green when not in hover, and a shade of blue when in hover
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Ah - it will be these lines in the Bootstrap integration file: https://github.com/DataTables/Plugins/blob/master/integration/bootstrap/dataTables.bootstrap.css#L89 . Whip them out or replace when with whatever you want.

    Regards,
    Allan
  • aaronwaaronw Posts: 89Questions: 3Answers: 4
    That worked - I guess I generally don't like to edit the 'master' files because then when I upgrade (to datatables 1.10, of course) I need to remember to make the change again.
This discussion has been closed.