Dialog

가이드 모음

기본 가이드

  • 설계 단계의 특별한 UX 요청이나 개발 환경에 따른 제약으로 개발 요청 사항이 없다면 테스트 완료된 코드를 복사 붙여 넣기를 기본으로 합니다.
  • Alert와 Confirm은 layer-wrap 내부에 동적으로 생성되므로, 모달과 달리 별도의 component-dialog 클래스를 추가할 필요가 없습니다.

협의 할 점

  • 가이드를 작성 합니다.

Alert

  • 구성 요소
    • 컴포넌트 클래스: component-dialog
표제목 : 제목1, 제목2, 제목3, 제목4
Name Description Type Default
state
열림, 닫힘 상태
string
close
message
메세지
string
null
esc
Key ESC 누름 닫힘 기능
boolean
true
title
타이틀
string
null
positionText
확인버튼 텍스트
string
확인
negtiveText
취소버튼 텍스트
string
취소
dimmClick
딤 클릭시 닫힘 기능
boolean
true
afterOpen
열릴 후 콜백
funciton
null
type
확인 : 알럴트, 확인,
취소 : 컨펌
string
alert
scrollLock
팝업 열릴떄 body 스크롤 잠김
boolean
false
close
닫기
null
null
open
열기
null
null

Alert(with title)

  • 구성 요소
    • 컴포넌트 클래스: component-dialog

Alert(with icon)

  • 구성 요소
    • 컴포넌트 클래스: component-dialog

Confirm

  • 구성 요소
    • 컴포넌트 클래스: component-dialog

Confirm(with title)

  • 구성 요소
    • 컴포넌트 클래스: component-dialog

confirm(with custom button name)

  • 구성 요소
    • 컴포넌트 클래스: component-dialog

preview images

  • 구성 요소
    • 컴포넌트 클래스: component-dialog