jqh 5 năm trước cách đây
mục cha
commit
ad728ba065
2 tập tin đã thay đổi với 1 bổ sung25 xóa
  1. 1 18
      src/Grid/Filter.php
  2. 0 7
      src/SimpleGrid.php

+ 1 - 18
src/Grid/Filter.php

@@ -63,7 +63,6 @@ class Filter implements Renderable
 {
     use HasBuilderEvents;
 
-    const MODE_PANEL = 'panel';
     const MODE_RIGHT_SIDE = 'right-side';
 
     /**
@@ -342,22 +341,6 @@ class Filter implements Renderable
         return $this;
     }
 
-    /**
-     * @return $this
-     */
-    public function panel()
-    {
-        return $this->mode(self::MODE_PANEL);
-    }
-
-    /**
-     * @return $this
-     */
-    public function rightSide()
-    {
-        return $this->mode(self::MODE_RIGHT_SIDE);
-    }
-
     /**
      * Get filter ID.
      *
@@ -694,7 +677,7 @@ class Filter implements Renderable
 
         $this->callComposing();
 
-        $this->view = $this->mode === self::MODE_RIGHT_SIDE ? 'admin::filter.right-side-container' : 'admin::filter.container';
+        $this->view = 'admin::filter.right-side-container';
 
         return view($this->view)->with([
             'action'             => $this->action ?: $this->urlWithoutFilters(),

+ 0 - 7
src/SimpleGrid.php

@@ -27,11 +27,4 @@ class SimpleGrid extends Grid
             $content->full();
         }, true);
     }
-
-    protected function setupFilter()
-    {
-        parent::setupFilter();
-
-        $this->filter()->panel();
-    }
 }