Skip to content

Commit 06a3feb

Browse files
committed
Add support for inline create and AJAX in relationship field
1 parent e4d946d commit 06a3feb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Fields/HasMany.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ public function subFields(array $fields): self
3434
return $this;
3535
}
3636

37-
public function tab(string $tab = 'General'): self
37+
public function ajax(bool $value = true): self
3838
{
39-
$this->props['tab'] = $tab;
39+
$this->props['ajax'] = $value;
4040

4141
return $this;
4242
}
4343

44-
public function wrapperClass(string $class): self
44+
public function inlineCreate(bool | array $value = true): self
4545
{
46-
$this->props['wrapper']['class'] = $class;
46+
$this->props['inline_create'] = $value;
4747

4848
return $this;
4949
}

0 commit comments

Comments
 (0)