定制 becklyn/rad-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

becklyn/rad-bundle

最新稳定版本:8.0.0

Composer 安装命令:

composer require becklyn/rad-bundle

包简介

This bundle provides basic components

README 文档

README

This bundle provides RAD related functionality for the usage in Symfony.

becklyn/rad-bundle <= v7 is deprecated and was replaced by becklyn/rad v8+

AJAX Protocol

This bundle uses a default AJAX protocol, that is used in the AjaxResponseBuilder and can be used for your project. The ajax call will always return an error 200, as it shouldn't flood the error tracking (with error 400 AJAX request).

The protocol looks like this:

interface AjaxResponse
{
    /**
     * Whether the call succeeded.
     */
    ok: boolean;

    /**
     * Any string status, like "ok" or "invalid-id" that
     * you can react to in your code (if you need to).
     */
    status: string;

    /**
     * The response data.
     */
    data: Record<number|string, any> | Array<any>;

    /**
     * A redirect target, where the AJAX handler should 
     * redirect to.
     */
    redirect?: string;

    /**
     * A toast message with optional type and action target.
     */
    message?: {
        text: string;
        impact: "positive" | "negative" | "neutral";
        action?: {
            label: string;
            url: string;
        };
    };
}

There is a corresponding fetch client implementation in mojave that can be used. This type above is also available as generic TypeScript type in mojave.

Form Extensions

This bundle automatically adds several form extensions.

Collection Labels Extension

This extension adds three additional optional labels for Collection form fields:

  • empty_message is displayed if there is no entry.
  • entry_add_label is the label of the "add entry" button.
  • entry_remove_label is the label of every "remove entry" button.

统计信息

  • 总下载量: 6.65k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 1

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2013-11-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固