DataTables releases feed http://www.datatables.net/ en-us Software release information for DataTables and its extensions Editor 1.7.3 released Editor 1.7.3 is primarily a bug fix release that addresses known issues, however it also introduces a few new features into the Javascript library. Of particular interest is the new scope option in form-options - this new option provides the ability to tell Editor if the whole row should be edited, or just the specifically selected cell(s). This is useful for cases where you might wish to update hidden values in the form while inline editing a single cell. The default behaviour (row) restores the default behaviour of Editor 1.6 and earlier.

There are also a few other new features and these are discussed fully below.

New

  • Javascript
    • pre*Cancelled events (e.g. preSubmitCancelled) which can be used to trigger code when an action has been cancelled.
    • datetime now has a keyInput option which can be set to false to disallow the end user from typing into the field - instead forcing them to enter data via the calender.
    • scope option for formOptions. This allows control over the data that is used to populate the form - it can either be set to be row (which it is by default) in which case the data for the whole row being edited is populated, even if only a single cell is being edited, or cell, in which case only the data for the cells that are to be edited are populated.
    • preUpload event which can be used to cancel a file upload on the client-side (i.e. before it is uploaded to the server) using client-side validation logic.

Updates

  • JS
    • Standalone editor will now look for elements with a matching id, not just data-editor-id when collection editing.
  • Styling
    • Bootstrap 4 support for the block custom class to get full width fields in the modal

Fixes

  • Javascript
    • If a field was added (add()) while in create or edit mode, an error would occur when attempting to submit the form.
    • Allow a node or jQuery instance containing a node to be given as an identifier for standalone editing.
    • Next arrow button for date picker wouldn't show up unless a max date was set
    • Bootstrap 3 integration - an error would be thrown if a modal-content element was used inside Editor's own model content.
    • If a null value was given to the form and not modified, Editor would incorrectly determine that the field's value was changed.
    • inError could incorrectly report that the form was in error, even when not.
  • PHP
    • Legacy validation error - maxLen in the legacy was actually using minLen
    • Improved handling of as aliases inside a sub-select
    • Function results couldn't be read from SQL Server
  • .NET
    • SQL function results couldn't be read from SQL Server
  • NodeJS
    • Allow 0 as a primary key value
    • Support for Knex 0.14
  • Styling
    • Compatibility with Foundation 6.4
  • Examples
    • Make it clearer how to trigger editing in display controller example

Download Editor 1.7.3

]]>
Wed, 21 Mar 2018 15:08:32 GMT http://www.datatables.net/#289 http://www.datatables.net/
Editor 1.7.2 released An issue was found in the 1.7.1 release that effected how the client-side submitted data to the server-side when creating a new row - in essence the data was simply not submitted, resulting in an error. This release addresses that issue.

  • Javascript
    • Submission of data when creating a row would not include the information entered by the end user, resulting in no data other than the action being submitted to the server.
  • Examples
    • Remove a debug flag from the staff example in the NodeJS package.

Download Editor 1.7.2

]]>
Mon, 29 Jan 2018 17:08:39 GMT http://www.datatables.net/#288 http://www.datatables.net/
Editor 1.7.1 released Our first update of the Editor 1.7 series since it was initially announced focuses on addressing issues that have been found since that release. On the server-side the debug() method has been modified to be able to pass your own messages back to the client-side, which is useful for debuging event handlers - simply enable the debug mode as before and then call debug() with any messages or data you want to be able to see in the trace information.

New

  • Javascript
    • upload and uploadMany now show "Processing" text on the upload button after the file has been uploaded and before the server returns the processed data. This can be controlled via the processingText option for both field types.
    • Standalone editor now allows multi-row editing by passing an array of ids to edit.
  • PHP
    • Format::DATE_USA constant for m-d-Y date format.
    • Editor->debug() can now be used to add debug messages to send to the client-side. This can be useful for tracing errors in event handlers and other Editor callbacks. To send a message back simply call the debug() method with the data you want to send back (e.g. a string or an array). You need to make sure that you have the debug mode already enabled (->debug( true )) for the messages to be sent to the client.
  • NodeJS
    • Add types option so TypeScript can pick up the included type files when compiling
    • Editor.debug() method which can be used to add debug messages to send to the client-side. This can be useful for tracing errors in event handlers and other Editor callbacks. To send a message back simply call the debug() method with the data you want to send back (e.g. a string or an array). You need to make sure that you have the debug mode already enabled (.debug( true )) for the messages to be sent to the client.
  • .NET
    • 'Format.DATE_USA' short hand for MM-dd-yyyy date format.
    • Editor.Debug() method which can be used to add debug messages to send to the client-side. This can be useful for tracing errors in event handlers and other Editor callbacks. To send a message back simply call the Debug() method with the data you want to send back (e.g. a string or an array). You need to make sure that you have the debug mode already enabled (.Debug( true )) for the messages to be sent to the client.
  • Examples
    • Soft delete example - don't actually delete a row from the database, but rather set a flag so it is hidden from the end user.

Updates

  • JS
    • Throw an error if display is set to something that is not a valid display controller.
  • PHP
    • Changing debugSql to debug in the returned data to reflect that it can contain more than just the SQL

Fixes

  • Javascript
    • Individual cell selection and editing wasn't working (multiItem example).
    • If columns or cells were selected with Select, the delete button would be enabled, but rows couldn't be deleted. Please note that this fix requires Select 1.2.5 or newer.
    • datetime will now not show the previous / next arrow icons if the minDate / maxDate is outside the range that can be selected (i.e. the user can't move on to a month they can't select from).
    • Changing Editor's key event listener (for return, esc, etc) to be keyup rather than keydown. The end user should notice basically no difference, but it allows external event handlers such as keypress and dependent() to listen for events before Editor attempts to modify the form (e.g. submit or close)
    • Throw an error when attempting to use standalone editor with an id that doesn't exist on the page
    • Allow ajax.data to return a string of data to be submitted to the server on upload.
    • Bootstrap integration didn't correctly add a class for styling to select elements
    • JS error would occur if a primary key value was used which had an @ or # in it.
  • Styling
    • Bootstrap 4 styling for inline editing improved
  • PHP
    • Validation functions would cause an error with PHP 5.3.
  • .NodeJS
    • When compiling with TypeScript, knex doesn't use a default export, so an error was given
  • .NET
    • null data from an options list could result in an exception being thrown
    • DbClean usage without a field name specified would result in an error
  • Examples
    • Confirm close example should ask for confirmation of closure, even if the X box is clicked, or esc presses, when values are different
    • Correct label for time duration field in row reorder example (typo)
    • Correct use of columns.className for field types example
  • Docs
    • Incorrect example in field().input() documentation
    • Upload field types use display not render

Download Editor 1.7.1

]]>
Sat, 27 Jan 2018 14:46:16 GMT http://www.datatables.net/#287 http://www.datatables.net/
Scroller 1.4.4 released Minor release with Bootstrap integration fixes.

  • Fix: Bootstrap 3 integration could show transparent rows when used with child rows
  • Fix: Rows were transparent in Bootstrap 4

Download Scroller 1.4.4

]]>
Fri, 26 Jan 2018 16:50:38 GMT http://www.datatables.net/#286 http://www.datatables.net/
Select 1.2.5 released A minor release with a new option to address a flaw in the UI Editor presents for the delete button and a small fix.

  • New: limitTo option for the selected button. This allows the enablement of the button to be limited to selection of specific items in the table (rows, columns or cells).
  • Fix: selected selector modifier should activate only when selected is given as a boolean value. Anything else (e.g. null) should be ignored.

Download Select 1.2.5

]]>
Fri, 26 Jan 2018 16:47:52 GMT http://www.datatables.net/#285 http://www.datatables.net/