MPopup Framework 에 대한 필수 API 를 정의
팝업 관련된 기능들을 제공
Changed in version 2.0.0
Arguments
Arguments
Example:
M.pop.alert('message');
M.pop.alert('message', function(index, setting) {
M.tool.log( "index", index );
console.log( "index: ", index );
});
M.pop.alert('message', {
title : 'title',
buttons : [ 'button0', 'button1']
});
M.pop.alert({
title: '공지',
message: '메세지를 확인합니다.',
buttons: ['확인', '취소'],
callback: function(index) {
console.log( "index: ", index );
}
});
Changed in version 2.0.0
Arguments
Arguments
Example:
M.pop.date({
dateType : 'YMD',
initDate : '20130714',
minDate : '19790101',
maxDate : '21001231',
callback : function(result, setting) {
console.log( JSON.stringify( result ));
}
});
M.pop.date({
type : 'HM12',
initDate : '1128PM'
}, function(result, setting) {
M.tool.log( result );
console.log( JSON.stringify( result ));
});
M.pop.date({
type : 'HM12',
initDate : '1145PM',
interval : 15
}, function(result, setting) {
M.tool.log( result );
console.log( JSON.stringify( result ));
});
M.pop.date({
type : 'HM24',
initDate : '2330'
}, function(result, setting) {
M.tool.log( result );
console.log( JSON.stringify( result ));
});
M.pop.date({
type : 'HM12',
initDate : '1130PM',
interval : 30
}, function(result, setting) {
M.tool.log( result );
console.log( JSON.stringify( result ));
});
M.pop.date({
type : 'HM12',
initDate : '1130PM',
interval : 10,
mode : "spinner"
}, function(result, setting) {
M.tool.log( result );
console.log( JSON.stringify( result ));
});
M.pop.date({
type : 'HM24',
initDate : '2330',
mode : "spinner"
}, function(result, setting) {
M.tool.log( result );
console.log( JSON.stringify( result ));
});
M.pop.date({
type : 'MMYYYY',
initDate : '072013'
}, function(result, setting) {
M.tool.log( result );
console.log( JSON.stringify( result ));
});
M.pop.date({
type : 'YYYY',
initDate : '2013'
}, function(result, setting) {
M.tool.log( result );
console.log( JSON.stringify( result ));
});
M.pop.date({
type : 'MM',
initDate : '07'
}, function(result, setting) {
M.tool.log( result );
console.log( JSON.stringify( result ));
});
M.pop.date({
type : 'DD',
initDate : '12'
}, function(result, setting) {
M.tool.log( result );
console.log( JSON.stringify( result ));
});
M.pop.date({
type : 'YMD',
initDate : '20130723',
startDate : '19790101',
endDate : '21001231'
}, function(result, setting) {
M.tool.log( result );
console.log( JSON.stringify( result ));
});
M.pop.date({
type : 'YM',
initDate : '201307',
startDate : '197901',
endDate : '210012'
}, function(result, setting) {
M.tool.log( result );
console.log( JSON.stringify( result ));
});
Changed in version 2.0.0
Arguments
Example:
M.pop.instance("message");
M.pop.instance("message", {time:1000});
M.pop.instance({message:"메세지입니다.", showTime:'SHORT'});
M.pop.instance("message", {time:'LONG'});
Changed in version 2.0.0
Arguments
Arguments
Example:
M.pop.list({
mode : 'SINGLE',
title : '선택',
buttons : ['확인', '취소'],
list : [
{ title : '데이타0', value : 'value0'},
{ title : '데이타1', value : 'value1'},
{ title : '데이타2', value : 'value2'},
{ title : '데이타3', value : 'value3'},
{ title : '데이타4', value : 'value4'}
],
selected : 2,
callback: function (buttonIdx, rowInfo, setting){
console.log( buttonIdx, JSON.stringify( rowInfo ) );
}
});
M.pop.list({
mode : 'MULTI',
title : 'title',
button : ['button0', 'button1', 'button2'],
list : [
{ title : 'row0', value : 'value0'},
{ title : 'row1', value : 'value1'},
{ title : 'row2', value : 'value2'},
{ title : 'row3', value : 'value3'},
{ title : 'row4', value : 'value4'}
],
selected : [0, 2],
}, function (buttonIdx, rowInfo, setting){
console.log( buttonIdx, JSON.stringify( rowInfo ) );
});