FEATURE Added Datepicker Year/Month Edit Option + allRows Public Method#914
Open
bitshark wants to merge 1 commit intovolosoft:masterfrom
Open
FEATURE Added Datepicker Year/Month Edit Option + allRows Public Method#914bitshark wants to merge 1 commit intovolosoft:masterfrom
bitshark wants to merge 1 commit intovolosoft:masterfrom
Conversation
Added feature to have default value in options so the user can select whether the datepicker in jTable forms let's the user directly change the month and the year. Added feature to allow user to call public jTable.getAllRows(), analogous to jTable.getSelectedRows(). Instead of just returning the selected rows, we now return all the rows in the jTable (and thus underlying data). Modified both the jquery.jtable.js source with these changes, as well as the underlying dev source with identical changes.
|
I'd like the allRows Public Method Then I can make unread rows bold in recordsLoaded, something like: for allRows { |
|
Workaround: $('.jtable-data-row').each(function (index) {
var key = $(this).attr('data-record-key');
var row = $('#id').jtable('getRowByKey',key);
var record = row.data('record');
if(!record.download_time) {
row.addClass('bold');
}
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added feature to have default value in options so the user
can set whether the datepicker in jTable forms lets
the user directly change the month and the year. This is
done via options defaultDateChangeYear and
defaultDateChangeMonth which by default are set to false,
but either one or both can be set to true by the user
during jTable initialization. Doing so modifies the behavior
of the datepicker object in table create/edit forms, letting
the user optionally direct select the year and/or month
(rather than having to scroll through time).
A second feature to allows the user to call public jTable.allRows(),
analogous to jTable.selectedRows(). In addition to just
returning the selected rows, we now return all the rows
in the jTable (and thus underlying data) by calling allRows().
Modified both the jquery.jtable.js source with these changes,
as well as the underlying dev source with identical changes.