tui.grid icon indicating copy to clipboard operation
tui.grid copied to clipboard

Question for "Custom Renderer"

Open shhong94 opened this issue 3 years ago β€’ 4 comments

Summary I want show "input" style without doubleclick or click, but it doesn't works.

Screenshots [As - is] custom renderer1 custom renderer2

In screenShot 1, There is no input style. In screenShot 2, After doubleclick or click specific cell, we can see a cell with input style.

[To - be] custom renderer3

Like screenShot 3, I want to show input style at beggning.(without doubleclick or click)

Version latest (4.20.3)

Additional context There are many issues and API guides, but it doesn't work. Because it seeams that all issue and API guide explain how to use custom renderer with "Vue or React or Other JS libraries". (https://github.com/nhn/tui.grid/issues/638 <- like this issue) But i am working with JSP.

So i want to see how to use custom renderer in JSP.

shhong94 avatar Mar 23 '22 05:03 shhong94

● The contents below are the same as the one above. The difference is only English and Korean.

μš”μ•½ input μŠ€νƒ€μΌμ„ λ”λΈ”ν΄λ¦­μ΄λ‚˜ 클릭 없이 μ²˜μŒλΆ€ν„° 보여주고 싢은데, 적용이 μ•ˆλ©λ‹ˆλ‹€.

μŠ€ν¬λ¦°μƒ· μ„€λͺ… [As - is] μŠ€ν¬λ¦°μƒ· 1μ—μ„œ 보듯이, μ…€ 클릭 μ—†μ΄λŠ” 에딧 λͺ¨λ“œκ°€ ν™œμ„±ν™”λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. μŠ€ν¬λ¦°μƒ· 2처럼 클릭을 ν•΄μ•Ό input μŠ€νƒ€μΌμ΄ ν™œμ„±ν™” λ©λ‹ˆλ‹€.

[To - be] μŠ€ν¬λ¦°μƒ· 3처럼 데이터λ₯Ό 뢈러온 ν›„, λ”λΈ”ν΄λ¦­μ΄λ‚˜ 클릭 없이 μ²˜μŒλΆ€ν„° 에딧 λͺ¨λ“œ(input μŠ€νƒ€μΌ)을 ν™œμ„±ν™” μ‹œν‚€κ³  μ‹ΆμŠ΅λ‹ˆλ‹€.

버전 μ΅œμ‹  버전 (4.20.3)

μΆ”κ°€ λ‚΄μš© μ»€μŠ€ν…€ λ Œλ”λŸ¬μ™€ κ΄€λ ¨λœ λ§Žμ€ μ΄μŠˆμ™€ κ°€μ΄λ“œ λ¬Έμ„œκ°€ μžˆμ§€λ§Œ, 제 μƒν™©μ—λŠ” λ§žμ§€ μ•ŠμŠ΅λ‹ˆλ‹€. κ΄€λ ¨ λ¬Έμ„œλ“€μ΄ Vueλ‚˜ React, 기타 μžλ°”μŠ€ν¬λ¦½νŠΈ 라이브러리 용으둜 μž‘μ„±λ˜μ„œμΈ λ“― ν•©λ‹ˆλ‹€. (https://github.com/nhn/tui.grid/issues/638 <- 이런 μ΄μŠˆμ²˜λŸΌμš”) 근데 μ „ JSP둜 κ°œλ°œν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.

κ·Έλž˜μ„œ JSPμ—μ„œλ„ μ»€μŠ€ν…€ λ Œλ”λŸ¬λ₯Ό μ‚¬μš©ν•˜λŠ” 법을 μ•Œκ³  μ‹ΆμŠ΅λ‹ˆλ‹€. (ν•΄λ‹Ή κ°€μ΄λ“œλ¬Έμ„œλ‚˜ μ΄μŠˆμ— λ‚˜μ˜€λŠ” propsλ‚˜ render λ“±λ“±... jspμ—μ„œλŠ” ν•΄λ‹Ήλ˜μ§€ μ•ŠλŠ” 사항듀이 λ§ŽμŠ΅λ‹ˆλ‹€)

shhong94 avatar Mar 23 '22 05:03 shhong94

λžœλ”λŸ¬λ₯Ό 톡해 textλ‚˜ selectλ₯Ό κ°€κ³΅ν•˜μ—¬ λ§Œλ“€μˆœ μžˆμ§€λ§Œ style이 정상적이지 μ•Šμ•„ κ°•μ œμ μœΌλ‘œ μ‘°μ ˆν•΄μ€˜μ•Ό ν•˜λŠ” λ¬Έμ œκ°€ μžˆμŠ΅λ‹ˆλ‹€. λ˜ν•œ datepickerκ°™μ€κ²½μš°λ„ λ¬Έμ œκ°€ λ˜λŠ” 것 κ°™μ€λ°μš”.. 이전 μ΄μŠˆμ—λ„ λ‚˜μ˜¨ μ΄μ•ΌκΈ°μ΄μ§€λ§Œ useViewMode : false ν•΄λ‹Ή 속성이 사라진 μ΄ν›„λ‘œ λ°œμƒν•œ 것 같은데...

ν•΄λ‹Ή 속성을 μ‚΄λ €μ£Όμ‹€ 순 μ—†λ‚˜μš”??

MrILac avatar Mar 25 '22 00:03 MrILac

@shhong94 @MrILac

Currently, It is not supported. Thanks for the good comments. We will consider adding that feature.

jajugoguma avatar Apr 05 '22 06:04 jajugoguma

This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!

stale[bot] avatar Jun 12 '22 15:06 stale[bot]

This issue will be closed due to inactivity. Thanks for your contribution!

stale[bot] avatar Nov 13 '22 21:11 stale[bot]