자바스크립트에서 테이블 렌더링에 많이 쓰는 datatables
하지만 태고적 라이브러리인지라 jQuery에 의존적인 문제가 있다
simple-datatables 는 타입스크립트로 만들어서 바닐라js로 트랜스파일된 테이블 라이브러리로
datatables와 비슷하지만 jQuery 의존성이 없다
https://github.com/fiduswriter/simple-datatables/
GitHub - fiduswriter/simple-datatables: DataTables but in TypeScript transpiled to Vanilla JS
DataTables but in TypeScript transpiled to Vanilla JS - GitHub - fiduswriter/simple-datatables: DataTables but in TypeScript transpiled to Vanilla JS
github.com
아래 사이트에서 다양한 데모를 확인해볼 수 있다
https://fiduswriter.github.io/simple-datatables/demos/
Demos
fiduswriter.github.io
데모 Editing 쪽에 화면에서 제외될 컬럼(excludeColumns)을 옵션으로 넣으면 에러가 발생하는 버그가 있어서 이슈를 등록했다
https://github.com/fiduswriter/simple-datatables/issues/341
[BUG] When saving a row, an error occurs if you have excludeColumns. · Issue #341 · fiduswriter/simple-datatables
Describe the bug When saving a row, an error occurs if you have excludeColumns. The parameters of the function saveRow(data, row) Arrays data and row, have different lengths. I will Pull request th...
github.com
현재는 고쳐진 상태로 아래 링크된 커밋으로 수정되었다
https://github.com/fiduswriter/simple-datatables/commit/e186ebd01b16617734dd04e4b04143b05b34a5ef
resolve issue with excluded columns during editing, fixes #341 · fiduswriter/simple-datatables@e186ebd
johanneswilm committed Nov 13, 2023
github.com
editor = makeEditable(table, {
contextMenu: true,
hiddenColumns: true,
excludeColumns: [1],
inline,
menuItems: [
{