Edwin Xu 3 лет назад
Родитель
Сommit
d9f9070f1e
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      src/Form/Row.php

+ 13 - 0
src/Form/Row.php

@@ -167,6 +167,19 @@ class Row implements Renderable
         return $this->form->model();
     }
 
+    /**
+     * Set default width for field.
+     *
+     * @param  int  $width
+     * @return $this
+     */
+    public function defaultWidth(int $width = 12)
+    {
+        $this->defaultFieldWidth = $width;
+
+        return $this;
+    }
+
     /**
      * Set width for a incomming field.
      *