선택된 테이블의 속성을 설정합니다.
Parameters:
| Name | Type | Description |
|---|---|---|
| actionName | String | 액션 이름 |
| properties | Object | { 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'
}
});