Skip to content

Commit 307dd7f

Browse files
authored
Add className method to Editor Field
1 parent 57ef5e8 commit 307dd7f

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)