2014-07-01 2 views
3

사용자에게 상태 정보를 표시하려면 noty.js 플러그인 (http://ned.im/noty/)을 사용하고 있습니다. 사용자가 표시되면 noty.js 메시지를 클릭하면 메시지가 숨김을 얻습니다.jquery noty.js 비활성화하려면 클릭하십시오.

클릭하여 숨기기 기능을 어떻게 비활성화 할 수 있습니까? 메시지를 자동 숨기기 또는 프로그램 명령을 숨길 때까지 메시지가 계속 나타나길 바랄뿐입니다.

감사합니다.

$.noty.defaults = { 
    layout: 'top', 
    theme: 'defaultTheme', 
    type: 'alert', 
    text: '', // can be html or string 
    dismissQueue: true, // If you want to use queue feature set this true 
    template: '<div class="noty_message"><span class="noty_text"></span><div class="noty_close"></div></div>', 
    animation: { 
     open: {height: 'toggle'}, 
     close: {height: 'toggle'}, 
     easing: 'swing', 
     speed: 500 // opening & closing animation speed 
    }, 
    timeout: false, // delay for closing event. Set false for sticky notifications 
    force: false, // adds notification to the beginning of queue when set to true 
    modal: false, 
    maxVisible: 5, // you can set max visible notification for dismissQueue true option, 
    killer: false, // for close all notifications before show 
    closeWith: ['click'], // ['click', 'button', 'hover'] 
    callback: { 
     onShow: function() {}, 
     afterShow: function() {}, 
     onClose: function() {}, 
     afterClose: function() {} 
    }, 
    buttons: false // an array of buttons 
}; 

공지 사항이 속성 :

closeWith: ['click'], // ['click', 'button', 'hover'] 

전화 할 경우 :

다음
noty({ 
    ... 
    closeWith: [] 
}); 

가 종료되지 않습니다 문서에서

답변

4

, 여기에 기본 값입니다 당신이 그것을 클릭하십시오.

+0

"콜백"이 도움이되었습니다. 감사 앙트완 –

관련 문제