jqh hace 5 años
padre
commit
a6c708a747
Se han modificado 1 ficheros con 7 adiciones y 5 borrados
  1. 7 5
      src/Grid/Tools/AbstractTool.php

+ 7 - 5
src/Grid/Tools/AbstractTool.php

@@ -14,15 +14,17 @@ abstract class AbstractTool extends Grid\GridAction
     /**
      * @var string
      */
-    protected $style = 'btn btn-outline-primary';
+    protected $style = 'btn btn-white waves-effect';
 
     /**
-     * @return void
+     * @return string
      */
-    public function setupHtmlAttributes()
+    protected function html()
     {
-        $this->addHtmlClass($this->style);
+        $this->appendHtmlAttribute('class', $this->style);
 
-        parent::setupHtmlAttributes();
+        return <<<HTML
+<button {$this->formatHtmlAttributes()}>{$this->title()}</button>
+HTML;
     }
 }