Closed GoogleCodeExporter closed 9 years ago
Well i see that's the job of sRangeFormat param. But i cant' change the
position of {from} and {to}. When i do that, {from} & {to} are displayed on the
page...
THIS IS OK :
.columnFilter({
aoColumns:[...],
sRangeFormat: "From {from} to {to}"
});
THIS IS NOT-OK :
.columnFilter({
aoColumns:[...],
sRangeFormat: "From {to} to {from}"
});
MY AIM IS :
.columnFilter({
aoColumns:[...],
sRangeFormat: "{to} ot {from} morF"
});
(morF & ot => Arabic ;)).
So issue should be rename into "Bug with sRangeFormat param init"...
Original comment by remi.val...@gmail.com
on 23 Aug 2012 at 10:08
This issue was closed by revision r70.
Original comment by joc...@gmail.com
on 4 Sep 2012 at 9:28
Hi,
This is one of the most weirdest feature request I had :) Could you take the
latest version and try it? I think that it works on
http://jquery-datatables-column-filter.googlecode.com/svn/trunk/dateRange%20-%20
Issue%2087.html
Thanks,
Jovan
Original comment by joc...@gmail.com
on 4 Sep 2012 at 9:29
Yes it works!
Thanks a lot!
Lyrad
Original comment by remi.val...@gmail.com
on 11 Sep 2012 at 8:06
I like the edit for internationalisation, but I have a comment and a request :
1 :
you didn't apply the code for the non date range input, it still apears like it
use to, I took the liberty to change it on my code (pretty much a copy paste of
the date range):
function fnCreateRangeInput(oTable) {
var aoFragments = sRangeFormat.split(/[}{]/);
th.html("");
//var currentFilter = oTable.fnSettings().aoPreSearchCols[i].sSearch;
// th.html(_fnRangeLabelPart(0));
var sFromId = oTable.attr("id") + '_range_from_' + i;
var from = $('<input type="text" class="number_range_filter form-control" id="' + sFromId + '" rel="' + i + '"/>');
//th.append(from);
//th.append(_fnRangeLabelPart(1));
var sToId = oTable.attr("id") + '_range_to_' + i;
var to = $('<input type="text" class="number_range_filter form-control" id="' + sToId + '" rel="' + i + '"/>');
//th.append(to);
// th.append(_fnRangeLabelPart(2));
for (ti = 0; ti < aoFragments.length; ti++) {
if (aoFragments[ti] == properties.sDateFromToken) {
th.append(from);
} else {
if (aoFragments[ti] == properties.sDateToToken) {
th.append(to);
} else {
th.append(aoFragments[ti]);
}
}
}
2 : would it be possible to set default values so that they don't need to be
changed every time you call on datatables?
Cheers,
Original comment by mathieu....@gmail.com
on 7 Jul 2014 at 2:44
Original issue reported on code.google.com by
remi.val...@gmail.com
on 23 Aug 2012 at 7:10