redtally/currency-field_type

本包最新版本(1.0.0)无可用许可信息。

货币下拉字段类型。

安装: 47

依赖: 0

建议者: 0

安全性: 0

星星: 0

分支: 0

类型:streams-addon

1.0.0 2018-01-22 02:20 UTC

This package is auto-updated.

Last update: 2024-09-23 11:19:29 UTC


README

此字段类型是基于ISO 4217货币代码和HTML实体的选择字段类型。

安装

composer require redtally/currency-field_type

php artisan addon:install redtally.field_type.currency

使用

请参阅选择字段类型的配置详情:[链接](https://pyrocms.com/documentation/select-field-type/latest)

echo $aStream->currency_field; // 输出 'AUD'

展示器

echo $aStream->decorated->currency_field->code(); 输出 'AUD'`

echo $aStream->decorated->currency_field->name(); 输出 'Australia'`

echo $aStream->decorated->currency_field->symbol(); 输出 '$'