|
|
@@ -4,6 +4,7 @@ namespace Dcat\Admin\Grid\Column;
|
|
|
|
|
|
use Dcat\Admin\Widgets\Tooltip;
|
|
|
use Illuminate\Contracts\Support\Renderable;
|
|
|
+use Illuminate\Support\Str;
|
|
|
|
|
|
class Help implements Renderable
|
|
|
{
|
|
|
@@ -35,18 +36,20 @@ class Help implements Renderable
|
|
|
*/
|
|
|
public function render()
|
|
|
{
|
|
|
- $tooltip = Tooltip::make('.grid-column-help');
|
|
|
+ $random = Str::random(8);
|
|
|
+
|
|
|
+ $tooltip = Tooltip::make('.grid-column-help-'.$random);
|
|
|
|
|
|
if ($this->style && method_exists($tooltip, $this->style)) {
|
|
|
$tooltip->{$this->style};
|
|
|
}
|
|
|
|
|
|
$tooltip->content($this->message)
|
|
|
- ->top()
|
|
|
+ ->bottom()
|
|
|
->render();
|
|
|
|
|
|
return <<<HELP
|
|
|
-<a href="javascript:void(0);" class="grid-column-help" >
|
|
|
+<a href="javascript:void(0);" class="grid-column-help-{$random}" >
|
|
|
<i class="fa fa-question-circle"></i>
|
|
|
</a>
|
|
|
HELP;
|