You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -248,6 +248,18 @@ will produce an output
248
248
The main benefit of this is that you can define any html element to behave the way you want. The main logic under this is the `handle` method which does the actual rendering.
249
249
> When redefining the behavior of an element, do not call the element as a function in its own definition, this can result in an infinite recursion.
250
250
251
+
*Definition of the handle function*
252
+
```php
253
+
/**
254
+
* @param string $name - The name of the element
255
+
* @param array $args - The list of arguments passed to the function
256
+
* during creation. For example pm::div(...args)
257
+
* @param bool $return - should the created string be printed or
0 commit comments