Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

선택된 테이블의 속성을 설정합니다.


Parameters:

NameTypeDescription
actionNameString액션 이름
propertiesObject

{ style: {Object}, caption: {Object}, head: {Object}, ..}


Example:

// 표 제목 설정
editor.execCommand('setTableProperties', {
	caption: {
		position: 'top',   // 'none', 'top', 'bottom'
		text: '표의 제목'
	}
});

// 제목 셀 설정
editor.execCommand('setTableProperties', {
	head: {
		scope: false,
		value: 'row' // 'none', 'row', 'col', 'both'
	}
});

// 표 테두리 스타일 설정
editor.execCommand('setTableProperties', {
	style: {
		border: {
			style: 'dotted', // 'solid', 'dotted', 'dashed', 'double'
			width: 10, // 단위 px
			color: { r: 255, g: 0, b: 0 }
		}
	}
});

// 표 너비, 높이 설정
editor.execCommand('setTableProperties', {
	style: {
		width: { value: 800, unit: 'px' },
		height: { value: 300, unit: 'px' }
	}
});

// 표 정렬 설정
editor.execCommand('setTableProperties', {
	style: {
		blockAlign: 'center' // 'left', 'center', 'right'
	}
});

// 표 기타 스타일 설정
editor.execCommand('setTableProperties', {
	style: {
		tableLayout: 'auto', // 'auto', 'fixed'
		display: 'table' // 'table', 'inline-table'
	}
});
  • No labels