Skip to content

Commit

Permalink
Add support for inline create and AJAX in relationship field
Browse files Browse the repository at this point in the history
  • Loading branch information
phpfour committed Nov 24, 2022
1 parent e4d946d commit 06a3feb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Fields/HasMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ public function subFields(array $fields): self
return $this;
}

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

return $this;
}

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

return $this;
}
Expand Down

0 comments on commit 06a3feb

Please sign in to comment.