Datepicker

가이드 모음

기본 가이드

  • 설계 단계의 특별한 UX 요청이나 개발 환경에 따른 제약으로 개발 요청 사항이 없다면 테스트 완료된 코드를 복사 붙여 넣기를 기본으로 합니다.
  • 공식 사이트: Vanilla JS Datepicker
  • 데모 사이트: Vanilla JS Datepicker Demo

협의 할 점

  • 가이드를 작성 합니다.

Datepicker

  • 구성 요소
    • 컴포넌트 클래스: component-datepicker
달력
표제목 : 제목1, 제목2, 제목3, 제목4
Name Description Type Default
state
열림, 닫힘 상태
string
close
direction
PC/Mobile 열기 타입
string
center/botom
footerSticky.leaveback
푸터에 빠져나올때 실행
function
null
afterClose
닫고 난 후 콜백
function
null
afterOpen
열고 난 후 콜백
function
null
beforeClose
닫기 전 콜백
function
null
footerSticky
푸터 전에 붙는 기능
boolean, function
false
scrollLock
body 스크롤 잠금, 해제 기능
boolean
true
onResize
window resize 이벤트 발생후 발생 ( debounce 속성 )
function
null
beforeOpen
열기 전 콜백
function
null
dimm
dimm 여부
boolean
true
onInit
component init 후 발생
function
null
dimmClick
dimm 클릭시 닫힘 속성
boolean
true
esc
Key ESC 누름 닫힘 기능
boolean
trune
footerSticky.enter
푸터에 진입후 실행
function
null
close
닫기
null
null
open
열기
null
null
update
업데이트
null
null

RangePicker

  • 구성 요소
    • 컴포넌트 클래스: .component-rangepicker
    • 필수 클래스: component-datepicker, component-input
    • 시작일 인풋 네임: range-start
    • 종료일 인풋 네임: range-end
달력
달력
=