Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Nov 7, 2022
1 parent 5bb84a7 commit 08c5443
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Fields/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ public function __construct(string $label, string $value)
]);
}

/**
* Set the disabled attribute.
*
* @param bool $value
* @return $this
*/
public function disabled(bool $value = true): static
{
return $this->setAttribute('disabled', $value);
}

/**
* Get the instance as an array.
*
Expand Down

0 comments on commit 08c5443

Please sign in to comment.