본문 바로가기

js

(48)
[jsgrid] custom type 만들기 var defaultFields = [ { name: "Title", type: "text", width: "", title: "제목", css : "col-md-4 col-sm-4 col-xs-4" }, { name: "MenuType_Code", type: "text", width: "", title: "위치", css : "text-center" }, { name: "Location_Code", type: "text", width: "", title: "순서", css: "text-center" }, { name: "Region_Code", type: "text", width: "", title: "지역", css: "text-center" }, { name: "Start_Date", type: "..
[tooltipster] 툴팁 안에서 링크, 스크립트 실행 $('.tooltip').tooltipster({animation: 'fade',delay: 0,theme: ['tooltipster-noir', 'tooltipster-noir-customized'],interactive: true,trigger: 'click'});
[jsgrid] json datetime column convert to javascript datetime on with custum format var defaultFields = [ { name: "Title", type: "text", width: "", title: "용어명", css: "text-left col-md-9 col-sm-9 col-xs-9" }, { name: "RegisterId", type: "text", width: "", title: "등록자", css: "text-center col-md-1 col-sm-1 col-xs-1" }, { name: "RegistDate", type: "date", width: "", title: "등록일시", css: "text-center col-md-1 col-sm-1 col-xs-1" }, { name: "UseYn", type: "text", width: "", title: "사용..
[jsGrid] 우측 스크롤바 없애기
[jsgrid] header sort 마크 제거 jsGeid에서 header 나 외부 이벤트로 컬럼들이 정렬되었을때 기본 설정 시 대상 컬럼에 sort 방향이 표시가 되는데 마크를 없애고 싶을 때 소스입니다. jsGrid sort 가 완료되었을때 함수에서 jQuery.removeClass 를 실행시켜주면 됩니다. 대상 클래스는 jsgrid-header-sort 이고 방향에 따라서는 jsgrid-header-sort-asc , jsgrid-header-sort-desc 가 추가되기도 하지만 jsgrid-header-sort만 없애주면 이하 방향은 표시되지 않습니다. 아래에는 해당 소스입니다. jQuery(document).ready(function ($) { $("#btnSortingCltrMnmtNo").on("click", function () { ..
[jsgrid] options fields 변경하기 var defaultFields = [ { name: "CLTR_MNMT_NO", type: "checkbox", width: 20, title: "" }, { name: "CLTR_MNMT_NO_TEXT", type: "text", width: 100, title: "물건번호물건종류(용도)", validate: "required" }, { name: "CLTR_NM", type: "text", title: "소재지", width: "40%" }, { name: "MIN_BID_PRC_TEXT", type: "text", title: "감정가(원)최저입찰가(원)", width: 100 }, { name: "PBCT_CLTR_STAT_NM", type: "text", title: "진행상태", width:..
[validate] 예제 js include html 아이디 비밀번호 로그인 js code $(function () { $('#loginForm').validate({ debug: false, onfocusout: false, rules: { LoginId: { required: true, rangelength: [2, 20] }, Password: { required: true, rangelength: [2, 20] } }, messages: { LoginId: { required: '아이디를 입력하세요.', rangelength: $.validator.format('{0}자 내로 입력하세요.') }, Password: { required: '비밀번호를 입력하세요.', rangelength: $.validator.format(..
Div 전체 Disabled jQuery 1.6 이상 $("#Div").find("input, select, button, textarea").prop("disabled",true);