Download the PHP package beromir/neos-studio-toggle-editor without Composer
On this page you can find all versions of the php package beromir/neos-studio-toggle-editor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download beromir/neos-studio-toggle-editor
More information about beromir/neos-studio-toggle-editor
Files in beromir/neos-studio-toggle-editor
Package neos-studio-toggle-editor
Short Description The toggle editor for Neos Studio: select one or multiple of a set of configured values, rendered as a button group, radio/checkbox list or color swatches. Registers as Beromir.ToggleEditor/Editor.
License GPL-3.0-or-later
Informations about the package neos-studio-toggle-editor
Beromir.NeosStudio.ToggleEditor
The toggle editor for Neos Studio (Medienreaktor.NeosStudio). It lets
you select one — or, with multiple, several — of a set of configured values,
rendered as a button group, a radio/checkbox list or color swatches.
The editor registers as Beromir.ToggleEditor/Editor. The
Beromir.ToggleEditor
package provides the same editor for the classic Neos UI under the same id;
both can be installed side by side, so one node type configuration serves
both interfaces.
Layouts
- grid (default): buttons in a grid;
columns/maximalColumnscontrol the wrapping - flex: one row, buttons share the available width
- flex-start: buttons wrap, left-aligned, natural width
- list: a vertical list — radio buttons, or checkboxes with
multiple - color: color swatches (one or several colors per swatch,
transparentrenders a checkerboard) with the label below
Installation
Run the following command in your site package:
Then run composer update in your project root and flush the Flow caches.
Configuration
Add a property of type string (or array for multiple) to your node type
definition:
Limitations
- Data sources are not supported. The Studio plugin API exposes no access
to the authenticated backend API, so
dataSourceIdentifier,dataSourceUri,dataSourceAdditionalDataanddataSourceDisableCachingrender a hint instead of options. Configure staticeditorOptions.values. - No i18n. Labels and descriptions are rendered as configured;
Vendor:Source:id-style translation ids are shown verbatim. - ClientEval expressions in editor options are not evaluated; a
ClientEval:string inhidden/disabledis treated as false instead of misinterpreted as true.
Building
The bundle is prebuilt into Resources/Public/Plugin/. To rebuild:
Then flush Flow caches and reload /neos/studio. Use npm run dev to rebuild
on change while developing.
Note: @medienreaktor/neos-studio (type declarations of the Studio plugin
API) is a file: dependency pointing at the installed
Medienreaktor.NeosStudio package under Packages/Application/. If your
Studio package lives elsewhere, adjust the path in
Resources/Private/Plugin/package.json.
License
This package is free software, released under the GNU General Public License, version 3 or later.