Print action

Hi, i want to create a custom action that can use javascript methods e.g. without sending actions to server like x-on:click which i will use to print an element using print-js
7 Replies
samsasba
samsasbaOP17mo ago
bump
SS
SS17mo ago
Hi
samsasba
samsasbaOP17mo ago
hi help
ZedoX
ZedoX17mo ago
->extraAttributes([
'x-on:click' => new HtmlString(<<<JS
() => {
//YOUR JS TO PRINT
}
JS),
])
->extraAttributes([
'x-on:click' => new HtmlString(<<<JS
() => {
//YOUR JS TO PRINT
}
JS),
])
samsasba
samsasbaOP17mo ago
how to import print-js ? as it's installed using npm ? any help
awcodes
awcodes17mo ago
Also, please be patient. Nobody is sitting around waiting for help topics to come in and answer them.

Did you find this page helpful?