Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Tips and Tricks for Writing Components

James Burke edited this page Mar 12, 2019 · 1 revision
  • Take advantage of the set_invalid() function when you need to easily enable/disable a component from rendering.
  • When possible, handle string concatenation and string translations in your component. This makes the rendering cleaner.
  • Use the Image component for all images rather than passing the source URL as a config item.
  • Only pass config values that need to be rendered.
Clone this wiki locally