1つ質問があります。
kViewerの明細画面に「印刷ボタン」を配置したいのですが、可能でしょうか
カスタマイズで実装してみたのですが、うまく表示されません。
どなたか教えていただければ幸いです。
jQuery.noConflict();
(function($) {
‘use strict’;
var pButton=document.createElement(‘button’); //ボタン生成
pButton.id=‘aaButton’; //ボタンID
pButton.style.height=‘30px’; //ボタンの高さ
pButton.style.width=‘150px’; //ボタンの横幅
pButton.innerHTML=‘台紙を印刷する’; //ボタンの表示名
pButton.style.borderRadius=‘10px 10px 0px 0px’; //ボタンのデザイン
pButton.onclick=function() {
window.print();
return false;
};
kv.events.view.detail.mounted= [function(state) {
$(kv.detail.getElementByCode(“PrintSpace”)).appendChild(pButton);
return state;
}];
})(jQuery);