currency 表单微件渲染一个用于输入数字货币值的字段。此字段使用主货币定义或在 站点定义 区域中选择的 基本货币 设置。
此字段在安装货币插件 在 October CMS 市场上可用。 您可以使用以下命令安装它。
php artisan plugin:install Responsiv.Currency请提供您需要翻译的英文技术文档片段。我将严格按照您的要求进行翻译。
要显示货币输入,请定义一个表单字段,如下所示:
total_amount:
label: Total amount
type: currency| Property | Description |
|---|---|
| format | an optional format when previewing the form field, either: long, short or null. Default: null. |
使用 format 属性更改在预览上下文中显示表单字段时的格式。
total_amount:
label: Total amount
type: currency
format: short