定制 eminos/statamic-set-header-toggle 二次开发

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

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

eminos/statamic-set-header-toggle

最新稳定版本:v1.1.0

Composer 安装命令:

composer require eminos/statamic-set-header-toggle

包简介

A Statamic addon to be able to add extra mini toggles to replicator and bard set headers.

README 文档

README

A Statamic plugin to add a "Set Header Toggle" Fieldtype. Add toggles to Replicator and Bard set headers.

Screenshot of Set Header Toggle

Installation

Install this plugin using composer.

composer require eminos/statamic-set-header-toggle

Features

  • Add tiny toggles to Replicator or Bard set headers.
  • Set any color you want.
  • Choose between two sizes.
  • Add one or any number you want.
  • Shows the field display label on hover.

Usage

Just add the Set Header Toggle field inside any Replicator or Bard set. It will show up in the header of that set!

This can be useful to control some rarely used or advanced settings, or if you'd want to control the visibility of other fields.

Here is an example of a Set Header Toggle controlling the visibility of a Tab. Tabs can be added with the Statamic Tabs addon.

Screenshot of a Set Header Toggle controling the visibility of a Tab

Possible improvements

  • Optionally group multiple toggles in a dropdown.
  • Tiny labels.
  • Add to Grid fieldtype item header.

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

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