Comments (5)
Hi @watchingfun
The mentioned ColorPicker
editor is used for the 2nd column, which is not editable. Once you remove the following line
cellProperties: {readOnly: true}, //line 21
the editor in the 2nd column opens on a double click/enter.
Now, on the image, you show us the htDimmed
(readOnly class) in the last column. So I am not sure what is the desired outcome in this situation. Would you like the last column (header D
) to be editable?
from handsontable.
上述
ColorPicker
编辑器用于第二列,不可编辑。删除以下行后cellProperties: {readOnly: true}, //第 21 行
双击/输入即可打开第二列中的编辑器。
现在,在图像上,您向我们展示了
htDimmed
最后一列中的(readOnly 类)。所以我不确定在这种情况下期望的结果是什么。您希望最后一列(标题D
)可编辑吗?
The last column and the penultimate column are both set to readonly, and then only the last column has the htDimmed
class name;
I hope that the columns that are set to read-only will have htDimmed style
from handsontable.
I found the solution, manually adding the class using the beforeRenderer hook
from handsontable.
Thank you for the update. Yes, I was going through the code (not all of it) and in some cases the editor is not possible but it is not due to the readOnly
mode (that gives the htDimmed
class name) but through settings like this one (blocking click events)
methods: {
stopMousedownPropagation(e) {
e.stopPropagation();
}
from handsontable.
Thank you for the update. Yes, I was going through the code (not all of it) and in some cases the editor is not possible but it is not due to the
readOnly
mode (that gives thehtDimmed
class name) but through settings like this one (blocking click events)methods: { stopMousedownPropagation(e) { e.stopPropagation(); }
Thank you answer
Yes, I know how to implement read-only functionality. My problem here is that the hotcolumn
component only has read-only functionality after the read-only
attribute, and there is no read-only html style.
from handsontable.
Related Issues (20)
- `columnSummary` does not include formulated cells HOT 1
- [Bug]: vue dev-tools, Select a component HOT 2
- Unnecessary reactivity on the hotInstance when using with Vue 2. HOT 5
- Issue with paste data with smart quotes and new line \n HOT 1
- Cannot read properties of null (reading 'view') when table is unhidden by changing display: none -> block HOT 9
- Handsontable does not respond in Adobe Illustrator HOT 1
- Uncaught TypeError: Cannot read properties of null (reading 'getSheetDimensions') HOT 4
- Table inside iframe does not trigger change when typing and then clicking outside the iframe on in another iframe HOT 3
- At the same web page,copy handsontable then cannot copy anything HOT 7
- [Bug]: At the same page,copy handsontable then cannot copy anything HOT 1
- Handsontable 14.4.0 is here!
- npm error Cannot read properties of null (reading 'matches') HOT 3
- Cell value missing HOT 1
- [Bug]: Display bug in iphone HOT 2
- After adding a border, insert a line above the border without moving it down HOT 1
- CopyPaste plugin paste(...) function doesn't work when outsideClickDeselects setting is set to false HOT 1
- Search function is including less results then before HOT 3
- npm run build error,when version from 14.0.0 to 14.4.0 HOT 5
- Remove `-ms-high-constrast` in CSS as it is being deprecated!! HOT 2
- Closed as duplicate of: https://github.com/handsontable/handsontable/issues/11016 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from handsontable.