This is an extenstion to Islandora XML forms (part of Islandora) which allows to run Handsontable as a Drupal form element.
Handsontable is a Javascript extension that provides an Excel-like interface (grid) within the web browser. This extension integrates handsontable with Islandora XML forms. You can define columns which will end up as XML element in the resulting document.
This Drupal module requires the following Drupal modules/libraries:
Additionally, this PHP extension needs to be enabled
- libxml2 version 2.7+
- Download the zip file from the release page.
- Unpack it in the
sites/all/modules/contrib
directory. - Enable the module on the Administration -> Module page.
Alternatively, you can download directly from the source repository. You need to use yarn to get all Javascript dependencies. Like this:
cd sites/all/modules/contrib
git clone https://github.com/MaastrichtUniversity/handsontable.git
cd handsontable
yarn install
The basic configuration is shown in this screenshot.
In short, create a handsontable element and as a child a handsontable_row element. The children of the row element will be columns of the table. These can be text fields.