Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
N

Charcounted Fields

This package is possibly abandoned. Please proceed with care.

Installation Instructions

You can require this package using composer:

composer require elevate-digital/nova-charcounted-fields

You can add the field with a resolver as follows:

use ElevateDigital\CharcountedFields\CharcountedText;
use ElevateDigital\CharcountedFields\CharcountedTextarea;

CharcountedText::make('Meta title')

Usage

You can use the text and textarea fields with charactercounters on you Nova model. The max number of characters aren't enforced, but just encouraged with warning colors and the counter. (You could enforce the max number of characters with Nova's build in rules).

CharcountedText::make('Meta title')
    ->maxChars(60)
    ->warningAt(50),

CharcountedTextarea::make('Meta description')
    ->maxChars(160)
    ->warningAt(150),

The maxChars and warningAt are both optional. The color of the counter will change when the max or warningAt limit is reached. Image of character counter with indication

Readme

Readme not found. Refer to the project website: https://github.com/elevate-digital/nova-charcounted-fields

Back to Top
Added 7 years ago

This package is listed on the Packagist API, but has no stable tags.

Please note that the Packagist cache is pretty long, so some times you just need to check back in an hour.

Favorites

27 users favorited

Rating

5.00
(out of 5)
★★★★★
★★★★
★★★
★★
11 ratings

Tags

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas