stub of the row editor
This commit is contained in:
@@ -29,8 +29,17 @@ class AppServiceProvider extends ServiceProvider
|
||||
});
|
||||
|
||||
\Blade::directive('tooltip', function($arg) {
|
||||
$arg = trim($arg);
|
||||
$placement = '';
|
||||
if (starts_with($arg, ['top,', 'bottom,', 'left,', 'right,'])) {
|
||||
list($placement, $arg) = explode(',', $arg);
|
||||
$arg = trim($arg);
|
||||
}
|
||||
$arge = e($arg);
|
||||
return 'aria-label="' . $arge . '" title="' . $arge . '"';
|
||||
|
||||
$html = '';
|
||||
if ($placement) $html .= 'data-placement="' . $placement . '" ';
|
||||
return $html . 'data-toggle="tooltip" aria-label="' . $arge . '" title="' . $arge . '"';
|
||||
});
|
||||
|
||||
\Blade::directive('sr', function($arg) {
|
||||
|
||||
Reference in New Issue
Block a user