Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text editor function #1664

Closed
yangyeongwon opened this issue May 4, 2022 · 3 comments
Closed

text editor function #1664

yangyeongwon opened this issue May 4, 2022 · 3 comments
Labels

Comments

@yangyeongwon
Copy link

yangyeongwon commented May 4, 2022

tutorial : https://nhn.github.io/tui.grid/latest/tutorial-example03-custom-editor

version : v4.21.0

issue

Imported rows cannot be edited, but is there a way to edit only added rows?

screen
appendRow
shot

@jajugoguma
Copy link
Contributor

@yangyeongwon
You can edit a cell of the appended row by double-clicking it.

@yangyeongwon
Copy link
Author

yangyeongwon commented May 6, 2022

If I do not give the editor option and double-click it, the edit mode does not work. What option should I give?

grid = new tui.Grid({
  el: document.getElementById('grid'),
  scrollX: false,
  scrollY: false,
  rowHeight : "auto",
  rowHeaders: ['rowNum','checkbox'],
  columns: [
	  {
		  header: "사용자순번",
		  name: "userSeq",
		  align: "center",
		  width: "100",
	  },
	  {
		  header: "유저 아이디",
		  name: "userId",
		  align: "center",
		  width: "200",
  // 								editor: "text",						
	  },
	  {
		  header: "유저명",
		  name: "userName",
		  align: "center",
		  editor: "text",
	  },
	  {
		  header: "부서",
		  name: "teamCode",
		  align: "center",
		  formatter: "listItemText",
		  editor: {
			  type: 'select',
			  options: {
				  listItems: teamCodeList
			  }
		  },
	  },
	  {
		  header: "사용여부",
		  name: "useStat",
		  align: "center",
		  formatter: "listItemText",
		  editor: {
			  type: 'select',
			  options: {
				  listItems: [
					  {text: "여", value: "1"},
					  {text: "부", value: "0"},
				  ]
			  }
		  },
	  },
	  {
		  header: "",
		  name: "",
		  width: "800",
	  }
  ]
  });

@jajugoguma
Copy link
Contributor

@yangyeongwon
Unfortunately, the feature is not supported.

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

No branches or pull requests

2 participants