定制 hounddd/wn-selfcomplete-plugin 二次开发

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

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

hounddd/wn-selfcomplete-plugin

最新稳定版本:v1.0.2

Composer 安装命令:

composer require hounddd/wn-selfcomplete-plugin

包简介

README 文档

README

A "text" formwidget which, like a "dropdown" field, offers options based on existing DB values.

Formwidget Selfcomplete in action

Why this formwidget

Simple text fields let only enter new values, while dropdown ones let only select between values.

This field will act as a text entry letting you enter any value consistent with the field, but at the same time will provide you with the previous unique values for that same field. In this way it is possible to see the values already present in the database and to avoid duplicates due to different entries by different users. It is still possible to enter whatever you want in the field.

How to use

The plugin register a new form field type : selfcomplete. You can use it in your backend fields definition.

city:
    label: City SelfComplete
    type: selfcomplete
    modelClass: \Winter\Test\Models\City
    # table: 'winter_test_cities'
    selectFrom: name

Options

None of these are required, if omited the form widget will use the current controller class and field name.

  • modelClass: Model class name to use.
  • table: Table name to use.
  • selectFrom: Field name to use.

Be careful when using it, this form widget has not been tested with other than text fields.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 2
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固