Custom property as boolean
I'm trying to add a custom property as boolean, but architect always add a '' inside code.
Ex.: Adding a property called fullscreen with value true result as fullscreen: 'true' while I want fullscreen: true
Anyone know how to do it?
This annoyed me in ExtDesigner before, but I don't think it has been fixed in Architect as the properties are still stored in JSON.
You could probably solve this with an override, though this will get tedious if you have a lot of fields like this. In my case I ran into problems with checkboxes having the inputValue "true" and unchecked value "false" submitting their value as strings rather than booleans. My solution was to fix the data prior to submit, though this is by no means the final answer.
as a workaround you can edit the metadata of that view for changing property from string to boolean
Chances are you should not be marking a component as fullscreen: true. We already do this for the component which is marked as the initial view.
When you add a custom property, if you specify a type at definition time it will be that type.
"fullscreen: true" and then clicking Add
Seeing how @bionicmaster suggests the type is actually stored in the metadata: any plans on allowing us to specify the type explicitly, possibly via context menu?
Originally Posted by aconran