"hidden" if the value returned by a callback
function is empty. It is the inverse of the @onshow() directive.
function sayHi($value = '') {
return $value;
}
@onhide()
to know if the returned value is empty. If an empty value is returned, then
the attribute "hidden" will be added to the html element. A sample is shown below
<div @onhide('sayHi')>
some text here
</div>
<div hidden="hidden">
some text here
</div>
"hidden" attribute was added because the function returned a
an empty value. No attribute will be added if a value was returned by the function. If we need to supply any
argument to this directive, the arguments should come after the first argument which function name.