Hi Coders
Terms of reference.
Updating Existing Layout Files
1. Read a layout file and read the properties of each view. Save this as a map variable. E.g. the key can be the view and its value can be a map of the properties.
2. Change the properties of any view from the layout using the map object from 1.
3. Update / Recreate the layout with same / another name.
4. Should work with any type of view.
Should be in vanilla javascript, (no framework necessary), for example
Enjoy!
Terms of reference.
Updating Existing Layout Files
1. Read a layout file and read the properties of each view. Save this as a map variable. E.g. the key can be the view and its value can be a map of the properties.
2. Change the properties of any view from the layout using the map object from 1.
3. Update / Recreate the layout with same / another name.
4. Should work with any type of view.
Should be in vanilla javascript, (no framework necessary), for example
- Use input (file) to select a layout file, trap change event and parse the layout file contents, can save this as json object.
- Changing a property (both built in and custom properties)
- Update the json object
- Update the layout file using the json object
- Save the layout file using new file name / existing file name
- Use the newly updated layout file in a project without issues.
Enjoy!