more documentation buglets and some theory/usage questions
more documentation buglets and some theory/usage questions
aaronw
Posts: 89Questions: 3Answers: 4
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.
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.
This discussion has been closed.
Replies
> 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
[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
Allan
[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)
Allan
[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
Regards,
Allan