Giter Club home page Giter Club logo

handsontable-checkboxes-demo's Introduction

Checkboxes Demo

Intro

This project demos a Handsontable custom editor.

The code for the editor itself was taken from the link below, as suggested here:

Problem

We'd like to understand how to handle focus correctly, using either the button in the editor or the ENTER key, to end editing and pass back focus to the table. We'd like this to work with single and multiple cell selections.

The original forum post with more detail is here:

UI preview:

UI Preview

Non-working and working flow:

UI Preview

Project structure

There seem like a lot of files, as we've broken them out of a larger project, with reusable config, settings, etc.

The handsontable-specific files are in:

src/plugins/handsontable/*

The editor-specific files are in:

src/plugins/handsontable/editors/*

The key files in context are:

+- src
    +- components
    |   +- Demo.vue                         Main demo
    |   +- DemoTable.vue                    Reusable Demo Table
    +- config
    |   +- index.js                         Config for editor
    +- plugins
        +- handsontable
            +- config
            |   +- columns.js               Reusable columns definitions
            |   +- settings.js              Helper function to build custom settings and handlers
            +- editors
            |   +- CheckboxesEditor.js      Main editor component logic
            |   +- CheckboxesView.vue       Main editor view
            +- renderers
            |   +- CollateralRenderer.js    Custom renderer for the checkboxes output
            +- ...

Note that the editor / renderer combination uses JSON to store the array of checkbox array results.

We assume this is the only way based on this post ?

Libraries

Handsontable

Vue JS

Element UI

Project setup

npm install
npm run dev

handsontable-checkboxes-demo's People

Contributors

davestewart avatar mrpiotr-dev avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.