Skip to content

Releases: datazenit/sensei-grid

Release v0.3.14 – Selectable rows

07 Dec 17:24
Compare
Choose a tag to compare

This release introduces one major addition - selectable rows and keyboard shortcuts to manage selection.

Add {selectable: true}} to Sensei Grid settings and rows will be made selectable. By default a checkbox is displayed per each row that can be used to toggle the selected state of a row. However a few keyboard shortcuts can be used instead of clicking, e.g., space to toggle the current row. Use shift+up/down to extend selection up or down (this will also select the current row). Press shift+a to select/unselect all rows in one go. More info about keyboard shortcuts and a live demo can be found on the full demo page.

Release v0.3.11

02 Dec 16:32
Compare
Choose a tag to compare

This release introduces two new features - column sorting events and option to skip a specific column on row duplication.

Column sorting

Enable sorting on a grid with an option {sortable: true} passed to Sensei Grid instance. When enabled column headers will be clickable and on a click an icon will indicate the sorting order. Also an event will be fired: "column:sort". Use this event to sort and transform the data as needed. The data sorting itself is not implemented in Sensei Grid core, but a simple demo is provided in example.js file. The sorting implementation is left out of Sensei Grid because each use case requires a different implementation, for example, in some cases you would need to make an remote request for the sorted data, but in other cases a local sorting is just fine.

Skip values when duplicating a row

A row can be duplicated by pressing ctrl+d or cmd+d and until now all row data was cloned. A new option is added to configure which values should be left out when a row is duplicated. Pass {skipOnDuplicate: ["id", "foo", "bar"]}} to Sensei Grid instance to define which columns should be omitted.

Usage examples can be found in example.js file.

Release v0.3.10 - Introducing RowActions

29 Sep 16:48
Compare
Choose a tag to compare

This release brings a new feature - RowActions. Sensei Grid ships with two sample RowActions to demonstrate how to create and apply them. RowActions can be used to create buttons in the grid, for example, to create a "Delete" button. This is exactly what DeleteRowAction example shows. Currently there is no real documentation for the new functionality, but it is something we are aware of and will keep working on.

To get started, check out the examples found in sensei-row-actions.js file.

screen shot 2015-09-29 at 19 46 59

Click the image to go to live demo.

Row saving made easier

19 Sep 21:56
Compare
Choose a tag to compare
Pre-release

This release introduces a new event "row:save", made especially for saving rows as a whole.

More info here: Sensei Grid row saving

New row support

15 Sep 14:11
Compare
Choose a tag to compare
New row support Pre-release
Pre-release

The biggest addition in this release is new row support and handling. This is implemented as an empty row at the end of table.

The empty row can be enabled/disabled via configuration setting: emptyRow: false. By default the functionality is enabled.

screen shot 2014-09-15 at 17 14 19

Core tests finalized

11 Sep 22:03
Compare
Choose a tag to compare
Core tests finalized Pre-release
Pre-release

This release marks the end of core testing. Next release will deliver new functionality, especially new row support.

Blog post.

More testing

11 Sep 22:06
Compare
Choose a tag to compare
More testing Pre-release
Pre-release

This release consists mostly of more tests, particularly DOM event tests.

Read more in my blog - More testing [v0.1.2]

API tests and value parsers

09 Sep 20:56
Compare
Choose a tag to compare
Pre-release

This is a minor release. Some of the changes include: more tests, especially for public data access API methods and value parsers that convert string values from table cells to corresponding data type when you access cells via data API, e.g. getCellData.

JSHint is now enabled on source files and executed every time when project is being built and tested (locally or on Travis CI server).

Full changelist:

  • Add value parsers to dist assets.
  • Add slack notifications.
  • Add tests for remaining public data api methods in apiSpec.
  • Add more cell and row related tests to apiSpec.
  • Add getGridData test to apiSpec.
  • Fix jasmine styles config param.
  • Add getCellDataByKey tests to apiSpec.
  • Add getCellDataByIndex tests to apiSpec.
  • Add apiSpec test suite and basic API method tests.
  • Add cell value parsers and implement value parsing in getCellData API method
  • Add correct column types to test data generator.
  • Change domSpec title.
  • Rename basicSpec to domSpec and add more dom tests.
  • Build dist files from latest src changes.
  • Add unicode to test data generator.
  • Adjust project roadmap.
  • Move Editor base class to sensei-editors.js file.
  • Enable jshint on source files.
  • Add build status to README.
  • Add node version to travis configuration.

Sensei Grid is now available as a bower package

08 Sep 12:31
Compare
Choose a tag to compare

Sensei Grid is moving forward and is now available as bower package. Installation is really simple: bower install sensei-grid. The project is still unstable, but we are moving forward to a stable release and hope to release it soon.