Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nova Field Customizer

A Laravel Nova tool for customizing forms

1) Install

composer require bhnow/nova-field-customizer

2) Register Tool

Add � Bhnow\NovaFieldCustomizer\NovaFieldCustomizer inside NovaServiceProvider.php

public function tools()
{
    return [
        new Bhnow\NovaFieldCustomizer\NovaFieldCustomizer(),
    ];
}

Available methods

Add classes to specific part of the field/form row

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)

Helper functions

->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>

About

A Laravel Nova tool for customizing forms

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages