This package contains a Nova field to add Thaana Field to resources. Under the hood it uses the jawish/jtk.
You can install this package in to a Laravel app that uses Nova via composer:
composer require ninesixtymv/nova-thaana-field
To make an Text field support Thaana, you can use the Ninesixtymv\NovaThaanaField\ThaanaTextField
field in your Nova resource:
namespace App\Nova;
use Ninesixtymv\NovaThaanaField\ThaanaTextField;
class Post extends Resource
{
// ...
public function fields(Request $request)
{
return [
// ...
ThaanaTextField::make('Title'),
// ...
];
}
}
To make an Textarea field support Thaana, you can use the Ninesixtymv\NovaThaanaField\ThaanaTextareaField
field in your Nova resource:
namespace App\Nova;
use Ninesixtymv\NovaThaanaField\ThaanaTextField;
class Post extends Resource
{
// ...
public function fields(Request $request)
{
return [
// ...
ThaanaTextareaField::make('Description'),
// ...
];
}
}
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please create an issue.
The javascript that enable Thaana in the fields is based on the JTK package created by Jawish Hameed
The MIT License (MIT). Please see License File for more information.