0.1.14 • Published 5 years ago

ux-dialog v0.1.14

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

ux-dialog

demo 타입스크립트기반의 유려한 팝업.

UxDialog는 html로 된 컨텐츠를 쉽게 팝업에 담아 띄울 수 있습니다.
UxDialog는 버튼으로 팝업을 닫거나 컨펌기능을 실행할 수 있습니다.
UxDialog는 쉬운 방법으로 기본속성지정 및 일회성 속성을 지정할 수 있습니다.

실행

//기본
var saveContentPopup = new UxDialog(
  {
    title:'제목', 
    content: '내용'
  }
);
saveContentPopup.open();

var justOpenPopup = new UxDialog();
justOpenPopup.open(
  {
    title:'제목',
    content:'내용'
  }
);

var designedHtml = new UxDialog(
  {
    title:'공지', 
    content:'<div class="notice">...</div>'
  }
);
designedHtml.open();

컨텐츠 타입

interface Button {
    callback?: Function;
    text?: string;
}
interface Contents {
    title?: string;          //타이틀
    content?: string | Node; //컨텐츠
    confirm?: Button | null; //확인버튼 사용여부
    cancel?: Button | null;  //취소버튼 사용여부
    close?: boolean;         //닫기버튼 사용여부
    dimClose?: boolean;      //딤 클릭 시 닫힘 여부
    selfClose?: number;      //몇초 뒤 닫힘 기능 시간
    closeKey?: number;       //닫힘버튼 키바인딩. keyCode 입력
    cancelKey?: number;      //취소버튼 키바인딩. keyCode 입력
    confirmKey?: number;     //확인버튼 키바인딩. keyCode 입력
}

매소드

class UxDialog {
    public open(Contents);
    public close();
}
0.1.14

5 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago