Gridview replaceTags
optimized to render content only if necessary using callbacks
#1072
Labels
replaceTags
optimized to render content only if necessary using callbacks
#1072
This enhancement will update the
GridView::replaceTags
property behaviorreplaceTags
array, tags to replace in the rendered layout. Enter this as an associative array of the format$key => $callback
, where:$key
: string, defines the flag.$callback
: string|array, the callback function name that will return the value to be replaced. This can be aglobal function name or a callback setting in an array format as understood by PHP's
call_user_func_array
method. For example:For example:
Alternatively you can return a function name from your class or object as an array format. For example:
The text was updated successfully, but these errors were encountered: