Download the PHP package fabianmichael/kirby-multi-toggle-field without Composer
On this page you can find all versions of the php package fabianmichael/kirby-multi-toggle-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fabianmichael/kirby-multi-toggle-field
More information about fabianmichael/kirby-multi-toggle-field
Files in fabianmichael/kirby-multi-toggle-field
Package kirby-multi-toggle-field
Short Description Toggle field with multiple options
License MIT
Informations about the package kirby-multi-toggle-field
⚠️ Deprecation notice: The multi-toggle field will become part of Kirby’s core from 3.7 onwards, called `toggles` field. This repository will be aarchived once the final version of Kirby 3.7 has been released. Read the announcement by the Kirby team |
Multi-Toggle field for Kirby 3
An exploration of a new UI element/field for Kirby CMS, resembling the multi-toggles ususally found in desktop software for things, such as text alignment and various other settings. Could especially be useful for the blocks/layout fields, because it’s way more compact and visually appearing, than radio buttons. Could also be a handy alternative for the select field in many cases, because it requires only one click to select an option and all options are visible at first glance.
Unlike most Kirby fields, the multi-toggle does not cover the whole available width, to give it a lighter appearance. But it has a min-height set, so it won’t look weird, when placed next to another field in a multi-column layout.
Installation
Either download this repo, extract and copy into site/plugins
or install using composer:
Blueprint usage
System Requirements
- Kirby 3.5+
- PHP 7.3+
Caveats
The field layout could lead to problems on very small screens. The developer is responsible for not adding too many options. One solution could be to collapse the field on mobile or replacing it with a select box, when not enough space is available.
License
This plugin is licensed under the MIT license with the exception of the included icons from the Nucleo set. See src/index.js for further information on the icons’ license.