承接 dmstr/yii2-ajax-button 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

dmstr/yii2-ajax-button

最新稳定版本:1.0.2

Composer 安装命令:

composer require dmstr/yii2-ajax-button

包简介

Widget to manage ajax calls for Yii2 Framework

README 文档

README

Yii 2 Ajax Button based on "JQuery". Widget to manage ajax calls for Yii2 Framework

USAGE

Example usage of ajax button widget

Basic usage

dmstr\ajaxbutton\AjaxButton::widget([ 'method' => 'get', 'url' => ['/path/to/action','name' => 'key'] ]); 

Advanced usage

dmstr\ajaxbutton\AjaxButton::widget([ 'method' => 'post', 'params' => ['status' => 'active'], 'url' => ['/path/to/action'], 'options' => ['class' => 'btn btn-primary'], 'errorExpression' => new JsExpression('function(resp,status,xhr) {if (xhr.status === 200) {button.html("Success")}}'), 'successExpression' => new JsExpression('function(xhr) {if (xhr.status === 404) {button.html("Error");console.error(xhr.responseJSON)}}') ]); 

Installation

The preferred way to install this extension is through composer.

Add repository url to the required section of your composer.json file.

"repositories": [ { "type": "git", "url": "https://github.com/dmstr/yii2-ajax-button.git" } ], 

Either run

php composer.phar require dmstr/yii2-ajax-button or composer require dmstr/yii2-ajax-button

or add

"dmstr/yii2-ajax-button": "*" 

to the required section of your composer.json file.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固