Giter Site home page Giter Site logo

Comments (5)

warpech avatar warpech commented on May 21, 2024

Hi, actually it is possible with the Legend feature:

legend: {
  match: function (row, col, data) {
    return (col === 0); //if it is first col
  },
  readOnly: true //make it read-only
}

Does this solve your problem? Do you think I could describe it better in the README/example page?

from handsontable.

buroli avatar buroli commented on May 21, 2024

Hi,

Yes, I made a screenshot : http://i46.tinypic.com/idapn9.png

When you click of a checkbox, the cell on his right become readOnly.

Possible ?

Thanks.

from handsontable.

warpech avatar warpech commented on May 21, 2024

This is totally possible. Could you set up this grid on JSFiddle? I will show you how to configure legend then

from handsontable.

buroli avatar buroli commented on May 21, 2024

Yes of course.

Here are: http://jsfiddle.net/rxxQ9/6/

Thanks.

from handsontable.

warpech avatar warpech commented on May 21, 2024

Unfortunately I was wrong, it is not possible with the legend.

I created a custom jQuery code to do that: http://jsfiddle.net/jXdyA/

Also please note that you used allowHtml param incorrectly. In my fiddle I fixed this:

$("#example2grid").handsontable("loadData", data, [allowHtml = true]);

To this:

$("#example2grid").handsontable("loadData", data, true);

The fragment [allowHtml = true] in README is a JSDoc convention to show default value for a parameter (see http://code.google.com/p/jsdoc-toolkit/wiki/TagParam)

from handsontable.

Related Issues (20)

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.