orchidsoftware / platform

Orchid is a @laravel package that allows for rapid application development of back-office applications, admin/user panels, and dashboards.
https://orchid.software
MIT License
4.45k stars 655 forks source link

Add addClass() method to Field class for easier class manipulation #2909

Closed iamarsenibragimov closed 1 month ago

iamarsenibragimov commented 1 month ago

Add addClass() method to Field class

This PR introduces a new addClass() method to the Field class. This method allows adding new classes to the existing ones without overwriting them.

Changes

Usage


$field->addClass('new-class');
$field->addClass(['class1', 'class2']);