aiman/thaana-text-area-field
Composer 安装命令:
composer require aiman/thaana-text-area-field
包简介
A Laravel Nova field.
README 文档
README
This Nova Package allow you to use Nova field with Thaana Keyboard on a Text Area
Installation
composer require aiman/thaana-text-area-field
Usage
In your Nova resource add the use declaration and use the NovaTinyMCE field:
use Aiman\ThaanaTextAreaField\ThaanaTextAreaField;
/**
* Get the fields displayed by the resource.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function fields(Request $request)
{
return [
ID::make()->sortable(),
ThaanaTextAreaField::make('Content'),
];
}
Thaana
You can turn thaana translation. by default it is true.
ThaanaTextAreaField::make('Content', 'content')->thaana()
Keyboard Type
You can turn thaana keyboard type. by default it is phonetic.
ThaanaTextAreaField::make('Content', 'content')->type()
Thaana to Latin Convertion
install this Thaana Latin Field in order for the function to work ThaanaTextAreaField supports auto latin convertion
ThaanaTextAreaField::make('Content', 'content')->convertToLatin('latin_content'),
ThaanaLatinField::make('Latin Content', 'latin_content'),
Important
This package is tested for nova 2.0+ Latest tested on nova v3.6.0
Credit
Huge Credit goes for @Jawish Hameed for his thaana translation plugin Thaana Keyboard
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-07-02