Blocks
Last updated
Last updated
⚙️ Powered by Rock RMS
Rock Mobile uses blocks the same way as Rock Web does. You create pages, add blocks to them, and configure them. Then when you deploy your app all that information will get bundled up so the mobile app knows how to communicate with your site.
Note that Page and Block security only works for Roles, not individual User accounts.
Many blocks are self-explanatory, though we're not saying they don't need some documentation too. We'll continue adding some helpful hints about all the blocks, such as what is available in Lava merges and what-not.
If there is missing or unclear documentation, please feel free to file a documentation request on our issues board.
Some blocks will have built-in scrolling mechanics. This means that the Zone in which the block resides should not be placed within any sort of layout that provides scrolling (such as ScrollView
). These blocks will have a special badge in the documentation, that looks like this:
In some cases, you may want a block to stretch to the full height of the zone (in 99% of cases, this entails the entire screen). In Xamarin, this was achieved by the use of a now-deprecated FillAndExpand
property.
In MAUI, this is achieved through the use of an attached property. Within the block, you want to expand add a Rock:Zone.Expands="true"
property on the outermost layout.
Currently, for other block types (blocks with the tag), we have an internal flag that gets set to mark a block to expand.