nk-o/carbon-field-react-select
Composer 安装命令:
composer require nk-o/carbon-field-react-select
包简介
Carbon Fields extension, that adds a React_Select field type.
README 文档
README
Added functionality of react-select in Carbon Fields plugin.
Install
Using Composer:
composer require nk-o/carbon-field-react-select
Usage
Default:
Field::make( 'react_select', 'alignment', 'Alignment' ) ->add_options( array( 'left' => 'Left', 'center' => 'Center', 'right' => 'Right', ) ),
Icons:
Field::make( 'react_select', 'alignment', 'Alignment' ) ->add_options( array( array( 'icon' => '<svg xmlns="http://www.w3.org/2000/svg">...</svg>', 'label' => esc_html__( 'Icon 1', '@@text_domain' ), 'value' => 'icon_1', ), array( 'icon' => '<svg xmlns="http://www.w3.org/2000/svg">...</svg>', 'label' => esc_html__( 'Icon 2', '@@text_domain' ), 'value' => 'icon_2', ), ) ) ->set_props( array( 'icons' => true, ) ),
Available Props:
Field::make( 'react_select', 'alignment', 'Alignment' ) ->add_options( array( 'left' => 'Left', 'center' => 'Center', 'right' => 'Right', ) ) ->set_props( array( 'clearable' => true, 'disabled' => false, 'autoFocus' => false, 'closeOnSelect' => true, 'ignoreAccents' => true, 'ignoreCase' => true, 'labelKey' => 'label', 'multi' => false, 'onBlurResetsInput' => true, 'onCloseResetsInput' => true, 'onSelectResetsInput' => true, 'openOnClick' => true, 'openOnFocus' => false, 'removeSelected' => true, 'pageSize' => 5, 'rtl' => false, 'scrollMenuIntoView' => true, 'searchable' => true, 'simpleValue' => false, 'tabSelectsValue' => true, 'trimFilter' => false, 'valueKey' => 'value', 'className' => '', 'icons' => false, 'placeholder' => 'Select...', 'clearAllText' => 'Clear all', 'clearValueText' => 'Clear value', 'noResultsText' => 'No results found', 'searchPromptText' => 'Type to search', ) ),
Props descriptions read here - https://github.com/JedWatson/react-select#select-props
nk-o/carbon-field-react-select 适用场景与选型建议
nk-o/carbon-field-react-select 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 195 次下载、GitHub Stars 达 6, 最近一次更新时间为 2018 年 01 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 「carbon-field」 「carbon-field-react-select」 「react-select」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 nk-o/carbon-field-react-select 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nk-o/carbon-field-react-select 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 nk-o/carbon-field-react-select 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Carbon Fields extension, that adds a Icon field type.
Carbon Fields extension, that adds a SmartLink field type.
Carbon Fields extension, that adds a Rich Text field type with no media.
A basic Carbon Fields extension, that adds support for Number type field.
Carbon Fields extension, that adds a URL picker field type.
Carbon Fields extension, that adds a Radio_Image_Enhanced field type.
统计信息
- 总下载量: 195
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2018-01-03