Daracl.multiSelect.setMessage({
up: '์',
down: '์๋',
add: '์ถ๊ฐ',
allAdd: '์ ์ฒด์ถ๊ฐ',
remove: '์ ๊ฑฐ',
allRemove: '์ ์ฒด์ ๊ฑฐ',
maxSizeMsg: "{maxSize} ๊ฐ ๊น์ง ๋ฑ๋ก ๊ฐ๋ฅํฉ๋๋ค.", // ์ถ๊ฐ ๊ฐ๋ฅํ max size๊ฐ ๋์์๊ฒฝ์ฐ ๋ฉ์์ง String
duplicate: "์ด๋ฏธ ๋ฑ๋ก๋ ํญ๋ชฉ์ด ์กด์ฌํฉ๋๋ค.",
addEmptyMessage: "์ถ๊ฐํ ํญ๋ชฉ์ ์ ํํด์ฃผ์ธ์.",
removeEmptyMessage: "์ ๊ฑฐํ ํญ๋ชฉ์ ์ ํํด์ฃผ์ธ์.",
})
const example1 = Daracl.multiSelect.create('#example1', {
mode: 'double' // single, double
, style: {
height: 300
}
, orientation: 'horizontal' // horizontal , vertical
, body: {
enableMoveBtn: true // ์ด๋ ๋ฒํผ ๋ณด์ด๊ธฐ ์ฌ๋ถ
, moveBtnSize: 50 // item move button ์์ญ width ๊ฐ
}
, footer: {
enable: true
}
, useMultiSelect: true
, useDragMove: true // dragํด์ ์ด๋ํ ์ง ์ฌ๋ถ.
, useDragSort: true // target drag ํด์ ์ ๋ ฌํ ์ง ์ฌ๋ถ.
, enableUpDown: true // updown ๋ฒํผ ํ์ฑํ์ฌ๋ถ.
, duplicateCheck: true
, valueKey: 'viewid'
, labelKey: 'uname'
, source: {
items: []
, enableLabel: true
, search: {
enable: true
, callback: (param) => {
console.log(param)
}
}
, completeMove: function (addItems) {
console.log('source completeMove fn', JSON.stringify(addItems));
return true;
}
, paging: {
enable: true
, unitPage: 10
, totalCount: 300
, currPage: 15
, callback: function (clickInfo) {
console.log(clickInfo)
}
}
}
, target: {
label: 'Target'
, enableLabel: true
, items: []
, limitSize: -1 // ์ถ๊ฐ ๊ฐ๋ฅํ max size
, emptyMessage: 'asdfasdf '
, completeMove: function (delItem) {
console.log(delItem);
}
, paging: {
enable: true
, unitPage: 10
, totalCount: 150
, currPage: 1
, callback: function (clickInfo) {
console.log(clickInfo)
}
}
}
});
<style>
table td, table th{
border: 1px solid #dddd;
vertical-align:top;
}
</style>