Skip to content

Commit

Permalink
Merge pull request #220 from frknakk/master
Browse files Browse the repository at this point in the history
feat: add className method to Editor Field
  • Loading branch information
yajra authored May 31, 2024
2 parents 57ef5e8 + dafcf2d commit c444448
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Html/Editor/Fields/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,4 +375,16 @@ public function nullDefault(bool $value = true): static

return $this;
}

/**
* @return $this
*
* @see https://editor.datatables.net/reference/option/fields.className
*/
public function className(string $className): static
{
$this->attributes['className'] = $className;

return $this;
}
}

0 comments on commit c444448

Please sign in to comment.