admin管理员组文章数量:1396102
I'm new to reactjs, the column 'Savings" does not appear on the screen when I do click on a print button that uses window.print()
native javascript, just to print into PDF format.
On the computer screen it does appear, in the PDF it does not appear.
I see that the variable id_savings
have no value at the preview of window printing.
Into the tableBody.js reactjs component:
{id_savings >= 12 && <th>Savings</th> }
and:
{
id_savings >= 12 &&
<td>
{data.ind_savings === 1 ? 'Yes' : 'No'}
</td>
}
I just call using onClick()
the function:
printScreen = () => {
window.print();
};
本文标签: onclickReactjs how to print data using windowprint native JSStack Overflow
版权声明:本文标题:onclick - Reactjs how to print data using window.print native JS - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744438320a2606296.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论