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
samsasbaOP14mo ago
bump
SS
SS14mo ago
Hi
samsasba
samsasbaOP14mo ago
hi help
ZedoX
ZedoX14mo 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
samsasbaOP14mo ago
how to import print-js ? as it's installed using npm ? any help
awcodes
awcodes14mo ago
Also, please be patient. Nobody is sitting around waiting for help topics to come in and answer them.
Want results from more Discord servers?
Add your server