The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Spreadsheet::HTML::Presets::Handson - Handsontable tables for Perl!

DESCRIPTION

This is a container for Spreadsheet::HTML preset methods. These methods are not meant to be called from this package. Instead, use the Spreadsheet::HTML interface:

  use Spreadsheet::HTML;
  my $generator = Spreadsheet::HTML->new( data => [[1],[2]] );
  print $generator->handson( );

  # or
  use Spreadsheet::HTML qw( handson );
  print handson( data => [[1],[2]] );

METHODS

  • handson( jquery, handsonjs, css, %params )

    Styles table with Handsontable, a "data grid component with and Excel-like appearance."

    Generate an empty 100x20 data grid:

      handson( fill => '100x20' )

    Uses Handsontable's JS API unless you specify another URI via the handsonjs param. Also uses their CSS unless you override with the css param.

      handson(
          handsonjs => '/dist/handsontable.full.js',
          css       => '/dist/handsontable.full.css',
      )

    Uses Google's jQuery API unless you specify another URI via the jquery param. Javascript will be minified via Javascript::Minifier if it is installed.

SEE ALSO

http://www.handsontable.com/
Spreadsheet::HTML
Spreadsheet::HTML::Presets

AUTHOR

Jeff Anderson, <jeffa at cpan.org>

LICENSE AND COPYRIGHT

The MIT License effective as of January 12, 2015. Copyright (c) 2012-2014 Marcin Warpechowski Copyright (c) 2015 Handsoncode sp. z o.o. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.