Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
blocks:app-note:spot-block-list [2025-09-15 08:56] – [How it works] mattias | blocks:app-note:spot-block-list [2025-09-15 10:48] (current) – [How it works] mattias | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====List spots and blocks on a remote control===== | =====List spots and blocks on a remote control===== | ||
- | This application | + | This application |
==== Installation ==== | ==== Installation ==== | ||
Line 9: | Line 9: | ||
We have prepared a PIXILAB-blocks-root folder containing everything you need to run the examples. | We have prepared a PIXILAB-blocks-root folder containing everything you need to run the examples. | ||
- | {{ : | + | |
+ | {{ : | ||
If you don't know how to do this, read the instructions in the [[blocks: | If you don't know how to do this, read the instructions in the [[blocks: | ||
Line 42: | Line 43: | ||
{{: | {{: | ||
- | To see the child replication binding, edit the Control/ | + | To view the child replication binding, edit the Control/ |
- | source of the child replication can be seen in the property panel of the scroller. In this case is is bound to the indexed property Script.feed.Spots.Spotgroup1. | + | |
{{: | {{: | ||
===Items in the list=== | ===Items in the list=== | ||
- | For every item in the indexed property provided by the feed script the SpotItem child will be replicated. This can be seen as the layout template. | ||
- | The layout can use all sorts of propertieds relative to a spot. In this case we show the spot name from the feed, the connection and the block property from the spot itself. We also use the spotPath value from the feed in the selevt button. | ||
+ | For every item in the indexed property provided by the feed script, a SpotItem child is replicated. This acts as the layout template. | ||
+ | The layout can use various properties relative to the spot and the feed. In this example, it shows the spot name from the feed, and the connection and block property from the spot itself. | ||
+ | The block name is provided by a text element bound to Relative/ | ||
+ | {{: | ||
+ | |||
+ | The Select button sets the local parameter Local/ | ||
+ | {{: | ||
+ | |||
+ | ===Custom property path=== | ||
+ | For the connected indicator and the spot’s playing block, custom property paths must be used to get values relative to the spot list item. This feature is not currently supported by the property path picker, so the paths must be written manually using bracket notation. | ||
+ | |||
+ | For example: | ||
+ | Spot[Relative.spotPath].connected | ||
+ | |||
+ | Here, the value of Relative.spotPath is substituted into the path to reference the correct property. | ||
+ | |||
+ | To enter a custom property path, click the pen icon next to the property picker in the property panel. | ||
+ | {{: | ||
+ | |||
+ | |||
+ | ====Styling==== | ||
+ | |||
+ | This Remotecontrol block uses some CSS to style the button appearance and create a custom paragraph text size. | ||
+ | The custom // | ||
- | |||