EzPopup

EzPopup

Members

(readonly) id :string

Description:
  • 현재 popup의 id

현재 popup의 id

Type:
  • string

(readonly) opener :nexacro.FormBase

Description:
  • 현재 pop업을 호출한 opener

현재 pop업을 호출한 opener

Type:

(static) BTN_FONT_BASE :string

Description:
  • 메시지 팝업 크기 계산용 버튼 폰트값

메시지 팝업 크기 계산용 버튼 폰트값

Type:
  • string

(static) DEFAULT_DRAG_MOVE_TYPE :string

Description:
  • 일반 팝업 dragmovetype 기본값

일반 팝업 dragmovetype 기본값

Type:
  • string

(static) DEFAULT_FRAME_URL :String

Description:
  • 일반 팝업 Frame 경로

일반 팝업 Frame 경로

Type:

(static) DEFAULT_MARGIN :Object

Description:
  • 프레임 사용시 외각선 두께

Properties:
Name Type Description
left number

좌측 외각선

right number

우측 외각선

top number

상단 외각선

bottom number

하단 외각선

프레임 사용시 외각선 두께

Type:
  • Object

(static) EMPTY_MARGIN :Object

Description:
  • 프레임 미사용시 외각선 두께

Properties:
Name Type Description
left number

좌측 외각선

right number

우측 외각선

top number

상단 외각선

bottom number

하단 외각선

프레임 미사용시 외각선 두께

Type:
  • Object

(static) FRAME_BORDER :number

Description:
  • 프레임 외각선 두께

프레임 외각선 두께

Type:
  • number

(static) MSG_FONT_BASE :string

Description:
  • 메시지 팝업 크기 계산용 폰트값

메시지 팝업 크기 계산용 폰트값

Type:
  • string

(static) MSG_MARGIN :Object

Description:
  • 메시지 외각선 두께

Properties:
Name Type Description
left number

좌측 외각선

right number

우측 외각선

top number

상단 외각선

bottom number

하단 외각선

메시지 외각선 두께

Type:
  • Object

(static) MSG_SIZE :Object

Description:
  • 메시지 크기 계산용 설정

Properties:
Name Type Description
minHeight number
minWidth number
btnMaxWidth number
btnMinWidth number
btnMargin number
textareaMargin number

메시지 크기 계산용 설정

Type:
  • Object

(static) MSG_URL :string

Description:
  • 메시지 팝업 경로

메시지 팝업 경로

Type:
  • string

(static) SHOW_MSG_TITLE :boolean

Description:
  • 메시지팝업 타이틀영엽 표시 여부

메시지팝업 타이틀영엽 표시 여부

Type:
  • boolean

(static) SHOW_POPUP_TITLE :boolean

Description:
  • 프레임팝업 타이틀영엽 표시 여부

프레임팝업 타이틀영엽 표시 여부

Type:
  • boolean

(static) TITLEBAR_BTN_GAP :number

Description:
  • 타이틀영엽 버튼 넓이

타이틀영엽 버튼 넓이

Type:
  • number

(static) TITLEBAR_BTN_SIZE :number

Description:
  • 타이틀영엽 버튼 넓이

타이틀영엽 버튼 넓이

Type:
  • number

(static) TITLEBAR_HEIGHT :number

Description:
  • 타이틀영엽 높이

타이틀영엽 높이

Type:
  • number

(static) USE_POPUP_FRAME :boolean

Description:
  • 프레임팝업 사용여부

프레임팝업 사용여부

Type:
  • boolean

(static) i18nConfig :Object

Description:
  • EzPopup 내장 다국어 정보 객체

EzPopup 내장 다국어 정보 객체

Type:
  • Object

Methods

alert(msg, iconopt) → {Promise}

Description:
  • 알림창 호출

Example
this.pop.alert("알림 메시지","q");
Parameters:
Name Type Attributes Default Description
msg string

알림창에 표시할 메시지

icon "d" | "i" | "q" | "w" | "e" <optional>
'd'

알림창에 표시할 아이콘

  • d - 기본아이콘
  • i - 느낌표아이콘
  • q - 물음표아이콘
  • w - 경고마크아이콘
  • e - 에러마크아이콘
Returns:

팝업 종료시 처리할 Promise

Type
Promise

close(e)

Description:
  • 팝업 종료

Example
this.pop.close({
  id : "conf001",
  msg : "질문 메시지",
})
Parameters:
Name Type Description
e Object

되돌려줄 정보 이벤트

confirm(confirmInfo) → {Promise}

Description:
  • 질문창 호출

Example
this.pop.confirm({
  id : "conf001",
  msg : "질문 메시지",
  icon : "d",
  cfn : "fn_callback",
})
Parameters:
Name Type Description
confirmInfo Object

질문창 정보 객체

Properties
Name Type Attributes Default Description
id string

질문창 고유 식별값

msg string

질문창에 표시할 메시지

icon "d" | "i" | "q" | "w" | "e" <optional>
'd'

질문창에 표시할 아이콘

  • d - 기본아이콘
  • i - 느낌표아이콘
  • q - 물음표아이콘
  • w - 경고마크아이콘
  • e - 에러마크아이콘
cfn String <optional>

질문창이 닫힐 때 처리할 콜백함수명, 파라미터양식은 여기를 참조하세요

Returns:

팝업 종료시 처리할 Promise

Type
Promise

msg(msgInfo)

Description:
  • 메시지창 호출

Example
this.pop.msg({
  id : "msg001",
  title : "메시지",
  msg : "메시지창에 표시할 메시지 내용",
  iconType : "confirm",
  icon : "d",
  btn : {
    yes : {
      text : "예",
      value : true,
      fn : function(e){
        trace(e.data)
      }
    },
    no : {
      text : "아니오",
      value : false,
      fn : function(e){
        trace(e.data)
      }
    },
    cancel :{
      text : "취소",
      fn : function(e){
        trace(e.data)
      }
    }
  },
  cfn : "fn_callback"
});
Parameters:
Name Type Description
msgInfo Object

메시지 정보 객체

Properties
Name Type Attributes Default Description
id String

메시지창 고유 식별값

title String <optional>

메시지창 상단 제목줄에 표시할 문구

msg String

메시지창에 표시할 문구

iconType "alert" | "confirm" <optional>
'confirm'

메시지창 아이콘 타입

icon "d" | "i" | "q" | "w" | "e" <optional>
'd'

메시지창에 표시할 아이콘

  • d - 기본아이콘
  • i - 느낌표아이콘
  • q - 물음표아이콘
  • w - 경고마크아이콘
  • e - 에러마크아이콘
btn Object

버튼 정보 객체

Properties
Name Type Attributes Description
yes EzPopup.PopupMsgBtnInfo <optional>

예 버튼 정보 객체 기본값 { text: '예', value: true }

no EzPopup.PopupMsgBtnInfo <optional>

아니오 버튼 정보 객체 기본값 { text: '아니오', value: false }

cancel EzPopup.PopupMsgBtnInfo <optional>

취소 버튼 정보 객체 기본값 { text: '취소', value: null }

cfn string <optional>

메시지 팝업 종료시 실행할 함수 명, 파라미터양식은 여기를 참조하세요

Description:
  • 팝업 호출

Example
this.pop.popup({
  id : "popup001",
  title : "팝업",
  url : "COMP::comcd_pop.xfdl",
  arg : {
    HI_CD : "001",
  },
  width : 500,
  height : 300,
  resizable: false,
  cfn : "fn_callback"
});
Parameters:
Name Type Description
popInfo Object

팝업 호출 정보

Properties
Name Type Attributes Default Description
id string

팝업 고유식별값

title string <optional>

팝업 상단 제목표시줄 문구

url string

팝업 호출 경로

arg Object <optional>

팝업으로 전달 할 값을 가지고 있는 Object

width number <optional>

팝업창 넓이, 미입력시 화면 꽉체움, desktop일경우, width, height가 모두 미입력 상태일경우, frame크기에 맞게 뜸

height number <optional>

팝업창 높이, 미입력시 화면 꽉체움, desktop일경우, width, height가 모두 미입력 상태일경우, frame크기에 맞게 뜸

isframerect boolean <optional>
false

팝업창 크기가 프레임이 기준인지 여부, 프레임이 기준이 아닐경우 프레임 값을 넓이, 높이에 자동추가한다.

resizable noolean <optional>
false

팝업창 크기 수정가능 여부

dragmovetype "none" | "normal" | "all" <optional>
"all"

팝업창 드래그 가능한 범위 옵션

  • none - 드래그 불가
  • normal - Title이 있는 경우, Title, 없는경우 Frame에서 드래그 가능
  • all - Title과 Frame 모두에서 드래그 가능
showclosebutton string <optional>
true

닫기 버튼 표시 여부

cfn string <optional>

팝업 후처리 콜백 함수 명, 파라미터양식은 여기를 참조하세요

Returns:

팝업 후처리용 Promise객체

Type
Promise