Download the PHP package sitegeist/monocle-proptypes without Composer
On this page you can find all versions of the php package sitegeist/monocle-proptypes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sitegeist/monocle-proptypes
More information about sitegeist/monocle-proptypes
Files in sitegeist/monocle-proptypes
Package monocle-proptypes
Short Description An addon for Sitegeist.Monocle that generates a rich prop editor configuration from PackageFactory.AtomicFusion.PropTypes
License MIT
Informations about the package monocle-proptypes
Sitegeist.Monocle.PropTypes
An addon for Sitegeist.Monocle that generates a rich prop editor configuration from PackageFactory.AtomicFusion.PropTypes
![ScreenShot of @propTypes configuration in Fusion](./prop-types.png) :arrow_down: :arrow_down: :arrow_down: ![ScreenCast Sitegeist.Monocle with rich prop editor configuration](./monocle.gif)
Sitegeist.Monocle.PropTypes is a zero-configuration addon for Sitegeist.Monocle that scans your @propTypes
annotation and provides the Monocle UI with a corresponding prop editor configuration.
Authors & Sponsors
- Wilhelm Behncke - [email protected]
The development and the public-releases of this package was generously sponsored by our customer https://www.cornelsen.de and our employer https://www.sitegeist.de.
Installation
Prop Editors
PropType | Editor |
---|---|
PropTypes.boolean |
CheckBox |
PropTypes.string |
Text |
PropTypes.integer |
Text, but cast to integer |
PropTypes.float |
Text, but cast to float |
PropTypes.oneOf |
SelecBox (with options that match the arguments of oneOf ) |
PropTypes.anyOf |
Provides the editor for the first PropType within its arguments |
Configuration
You don't need to configure anything for Sitegeist.Monocle.PropTypes to work. In rare cases however, it might be that the PropTypes validator factory from PackageFactory.AtomicFusion.PropTypes (that is usually found under the context name PropTypes
) is linked under a different context name.
In that case, you can provide the differing context name in the configuration for this package like this:
Contribution
We will gladly accept contributions. Please send us pull requests.
License
See LICENSE
All versions of monocle-proptypes with dependencies
packagefactory/atomicfusion-proptypes Version *