24/09/27 문자전송 > 대량등록 width 값 수정
This commit is contained in:
parent
3c6e83d10b
commit
9517a328c2
@ -11,7 +11,7 @@
|
||||
var $tableExcel = null; //엑셀입력 탭
|
||||
var $tableError = null; //엑셀입력 탭
|
||||
$(document).ready(function(){
|
||||
|
||||
|
||||
//Tabulator AJAX Data Loading
|
||||
$tableError = new Tabulator("#tabulator_error", {
|
||||
height:"255px",
|
||||
@ -49,7 +49,7 @@ $(document).ready(function(){
|
||||
cell.getRow().toggleSelect();
|
||||
}
|
||||
},
|
||||
{formatter:"rownum", align:"center" ,title:"No", hozAlign:"center", headerHozAlign:"center", width:40},
|
||||
{formatter:"rownum", align:"center" ,title:"No", hozAlign:"center", headerHozAlign:"center", width:120},
|
||||
{title:"A", field:"A", hozAlign:"center", headerHozAlign: "center", width:140, validator:["maxLength:100", "string"]},
|
||||
{title:"B", field:"B", hozAlign:"center", headerHozAlign: "center", width:140, validator:["maxLength:100", "string"]},
|
||||
{title:"C", field:"C", hozAlign:"center", headerHozAlign: "center", width:140, validator:["maxLength:100", "string"]},
|
||||
@ -73,15 +73,17 @@ $(document).ready(function(){
|
||||
|
||||
|
||||
// 타뷸레이터 width값 변경 시 위에 select width 값 변경
|
||||
var titleArray = ["A","B","C","D","E","F"];
|
||||
var titleArray = ["No","A","B","C","D","E","F"];
|
||||
|
||||
$tableExcel.on("columnWidth",function(column){
|
||||
var titleIndex = titleArray.indexOf(column._column.definition.title);
|
||||
titleIndex += 1;
|
||||
|
||||
if(titleIndex != 0){
|
||||
$('.select_adr_hd>div').eq(titleIndex).css('width', column._column.width);
|
||||
}else{
|
||||
$('.select_adr_hd>div').eq(0).css('width', column._column.width + 40);
|
||||
$('.select_adr_hd>div').eq(0).css('width', column._column.width);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@ -813,7 +815,8 @@ function popMore(e){
|
||||
<div class="adr_excel" style="margin-top: 13px; overflow-x:auto;">
|
||||
<!-- <div class="adr_excel" style="margin-top: 13px;"> -->
|
||||
<!-- thead -->
|
||||
<div class="adr_hd select_adr_hd" data-group="tableExcel">
|
||||
<div class="adr_hd select_adr_hd msg" data-group="tableExcel">
|
||||
<div style="width: 100px;"></div>
|
||||
<div style="width: 100px;"></div>
|
||||
<div style="width: 140px;">
|
||||
<label for="" class="label"></label>
|
||||
|
||||
@ -97,6 +97,7 @@
|
||||
.adr_excel .adr_hd.select_adr_hd{background:#e0e0e0;}
|
||||
.adr_excel .adr_hd>div select{width:calc(100% - 8px);height:36px;background:transparent url(/publish/images/select_search.png) no-repeat 90% 15px;background-size:16px auto;margin:-8px 0 0 0;border:0;text-align:center;line-height:1.3;}
|
||||
.adr_excel .adr_hd>div:last-child::after{display:none;}
|
||||
.adr_excel .adr_hd.msg>div:first-child::after{display:none;}
|
||||
|
||||
/* 붙여넣기 colgroup */
|
||||
/* .excel_paste .adr_hd>div:nth-child(1), .excel_paste .adr_bd>div:nth-child(1) {width: 40px;}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user