f.MessageBox().addBtn()
f.MessageBox().addBtn(title, eventName)
개요
addBtn()를 통해 메세지박스에 버튼을 설정을 할 수 있습니다.
파라미터
파라미터명
필수여부
타입
제약사항
설명
title
Yes
String
버튼 이름
eventName
Yes
String
버튼 클릭시 실행할 이벤트명
color
No
Boolean
버튼 회색 색상 사용 여부
예시
// Some code
let msgBox = f.MessageBox();
...
msgBox.addBtn("확인", "saveEvent");
msgBox.addBtn("취소", null, true); // 취소 버튼의 색상은 회색으로 사용합니다.
msgBox.show();
Last updated
Was this helpful?