NextDom\Helpers\Utils::sendVarToJs
Add javascript variable in HTML code
Signature
public function sendVarToJs(string
$varName,
string|array
$varValue )
Parameters
$varName
— string- Name of javascript variable
$varValue
— object- Value of the javascript variable