Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Supporting Different Inputs #9

Open
frankV opened this issue Jun 25, 2014 · 2 comments
Open

Supporting Different Inputs #9

frankV opened this issue Jun 25, 2014 · 2 comments

Comments

@frankV
Copy link

frankV commented Jun 25, 2014

Is there a way to support different input types in individual cells? Like selects or checkboxes?

@tungstencarbide
Copy link

Looking at the code, I don't think there is an easy way to do this. The editor value is a function called at initialization time. I looked through the PRs here and didn't see anything offhand that does this. If there was a way to defer calling the editor function until you actually needed it, it might be possible to then craft a function that takes into account what you actually clicked and provide the appropriate editor at use time.

I could really use this functionality so I will play around with it and see if I can come up with something. I see this issue is almost three years old, and this repo looks kind of abandoned? So if you solved this problem with something else, I'd love to see it.

@tungstencarbide
Copy link

I have a version that does this in my branch: https://github.com/tungstencarbide/editable-table

wc-table-editor.js is a partial re-write with a little bit of cleanup and it should work as a drop-in replacement for the original. The README shows you how to specify a callback function that allows you to change the editor control. It Works For Me™ for my uses, but it's not been exhaustively tested.

HTH.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants