A Laravel Nova tool for customizing forms
composer require bhnow/nova-field-customizer
Add � Bhnow\NovaFieldCustomizer\NovaFieldCustomizer inside NovaServiceProvider.php
public function tools()
{
return [
new Bhnow\NovaFieldCustomizer\NovaFieldCustomizer(),
];
}The first parameter is a string, which represents all the class names you want to add. The second parameter is optional and if you set it true, it will clear all the default classes before it set your custom classes.
->formRowClasses($string, $clear = false)
->wrapperClasses($string, $clear = false)
->wrapperLabelClasses($string, $clear = false)
->wrapperFieldClasses($string, $clear = false)
->labelClasses($string, $clear = false)
->fieldClasses($string, $clear = false)
->stack() <- Stacks label & field (label top, field bottom)>
->half() <- Width 1/2>
->third() <- Width 1/3>
->forth() <- Width 1/4>
->fifth() <- Width 1/5>
->clear() <- Clears all classes>
->removeBorder() <- Remove field's bottom border>
->charCount($limit = 170) <- Works for textfield, textarea & password>