New Component Features

From Flowcode Help
Jump to navigationJump to search

Exposing Properties

Selecting Properties

Any properties of sub-components you wish to expose to the user via your component can now be easily done by right clicking the property you wish to bring through and selecting expose from the menu.


You can see which property items will be available to the user by left clicking on a blank area of the panel or by choosing Panel from the drop down menu at the top of the properties window.


Typical properties you might wish to bring through include pin connections, communications channel, user adjustable configuration parameters, or anything else you want the user of your component to be able to access.


Organising Properties

You can create new categories to help organise the exposed properties.


Hidden Properties

Note that some components such as the UART or SPI master has hidden properties such as re-mappable pins which are useful to bring through to the user if they are using a target device that requires them.

To see all the hidden properties use the View -> Component Debugger menu item.

In the Component Debugger window click the "Expose Full Component Tree In Property Pane" check box.


When you next select your component all of the hidden properties will become visible allowing you to expose them to the user.


Note: Remember to un-tick the "Expose Full Component Tree In Property Pane" check box when you're done exposing hidden properties.

Exposing Macros

Selecting Macros

As well as being able to expose properties to the user, you can also expose macros to allow the component macros nested inside your component to be available to the user.


Exposed macros are also automatically set to be available in the Interface manager which is now available from the File -> Component Configuration menu


Any macros you have exposed or created for your component and set to be publicly available can be seen from the Macros tab of the properties window.