nhn / tui.grid

πŸžπŸ”‘ The Powerful Component to Display and Edit Data. Experience the Ultimate Data Transformer!
http://ui.toast.com/tui-grid/
MIT License
2.4k stars 386 forks source link

feat: export to xls for compatibility mode #1983

Closed jajugoguma closed 8 months ago

jajugoguma commented 8 months ago

Please check if the PR fulfills these requirements

Description

Added support for exporting to XLS format for use in older versions of Excel that do not support XLSX format.

And added an option excelCompatibilityMode to change the default format for excel export from xlsx to xls for compatibility mode. If you set this option to true, it will export files in xls format by default when excel exporting.

const grid = Grid({
  // ...
  exportOptions: {
      excelCompatibilityMode: true,
  },
  // ...
});

Thank you for your contribution to TOAST UI product. πŸŽ‰ 😘 ✨

jajugoguma commented 8 months ago

κ³ μƒλ§ŽμœΌμ…¨μŠ΅λ‹ˆλ‹€. 리뷰 μ™„λ£Œν•©λ‹ˆλ‹€.

P4 : μ§μ ‘μ μœΌλ‘œ xls포맷을 λ„˜κ²¨ ν…ŒμŠ€νŠΈν•˜λŠ” 건 ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€. κ°€μ΄λ“œμ—μ„  excelCompatibilityMode: true둜 μ„€μ •ν•˜λΌκ³  μΆ”κ°€ν•΄λ‘μ…¨λ˜λ° ν•΄λ‹Ή μ„€μ •μœΌλ‘œ ν…ŒμŠ€νŠΈν•˜λŠ” 건 μ—†μ–΄λ³΄μ΄λ„€μš”. μΆ”κ°€ν•˜λŠ”κ±΄ μ–΄λ– μ„Έμš”?

ν˜Έν™˜ λͺ¨λ“œμ—μ„œ 포맷을 μ‹€μ œ νŒŒμΌμ„ μ“°κΈ° 직전에 λ°”κΏ”μ„œ μ΄λ²€νŠΈμ—μ„œλŠ” 이λ₯Ό μ•Œμ•„λ‚Ό 수 μ—†λŠ”λ°μš”, κ΄€λ ¨λœ λͺ¨λ“ˆμ„ λͺ¨ν‚Ήν•΄λ³΄λ € ν–ˆμœΌλ‚˜ μ˜¬λ°”λ₯΄κ²Œ λ™μž‘ν•˜μ§€ μ•Šμ•„ ν…ŒμŠ€νŠΈλ₯Ό μž‘μ„±ν•  수 μ—†μ—ˆμŠ΅λ‹ˆλ‹€.. γ… γ… 

sunyoungBae commented 8 months ago

μ‹€μ œ νŒŒμΌμ„ μ“°κΈ° 직전에 λ°”κΏ”μ„œ μ΄λ²€νŠΈμ—μ„œλŠ” 이λ₯Ό μ•Œμ•„λ‚Ό 수 μ—†λŠ”λ°μš”, κ΄€λ ¨λœ λͺ¨λ“ˆμ„ λͺ¨ν‚Ήν•΄λ³΄λ € ν–ˆμœΌλ‚˜ μ˜¬λ°”λ₯΄κ²Œ λ™μž‘ν•˜μ§€ μ•Šμ•„ ν…ŒμŠ€νŠΈλ₯Ό μž‘μ„±ν•  수 μ—†μ—ˆμŠ΅λ‹ˆλ‹€.. γ… γ… 

μ•— κ·Έλ ‡κ΅°μš” μ•Œκ² μŠ΅λ‹ˆλ‹€γ…œγ…œ