Skip to content

Commit c444448

Browse files
authored
Merge pull request #220 from frknakk/master
feat: add className method to Editor Field
2 parents 57ef5e8 + dafcf2d commit c444448

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Html/Editor/Fields/Field.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,4 +375,16 @@ public function nullDefault(bool $value = true): static
375375

376376
return $this;
377377
}
378+
379+
/**
380+
* @return $this
381+
*
382+
* @see https://editor.datatables.net/reference/option/fields.className
383+
*/
384+
public function className(string $className): static
385+
{
386+
$this->attributes['className'] = $className;
387+
388+
return $this;
389+
}
378390
}

0 commit comments

Comments
 (0)