2016-10-20 7 views
0

Im Pnotifyプラグインを使用していますが、閉じるボタンが表示されていません。PNotifyがありません。

new PNotify({ 
       title: 'Sucesso', 
       text: response.message, 
       type: 'success', 
       styling: 'bootstrap3', 
       closer: true, 
       labels: {close: "Fechar", stick: "Manter"} 
      }); 

この現象に関するご意見はありますか?

generated pnotify example

インクルードファイルは、以下のとおりです。 pnotify.css pnotify.js読ん後

答えて

1

documentation of Pnotifyあなたもbuttons {}オプション内部closerlabelsをラップする必要があります。

new PNotify({ 
    title: 'Sucesso', 
    text: response.message, 
    type: 'success', 
    styling: 'bootstrap3', 
    buttons: { closer: true, 
     labels: {close: "Fechar", stick: "Manter"} 
    }, 
}); 
+0

回答aldanuxのTksも、それほど問題なく動作します。 –

+0

私のブートストラップのテーマに付属のプラグインが正しく動作していないことに気付きました。私はサイトからagaingをダウンロードしました。今働いている!私は今この質問で何をすべきかわかりません –

+0

あなたの元の質問のコードは動作しますか? – aldanux

関連する問題