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

MKPLKN/nova-field-customizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published