I could then use the value to set another class to the posts.
I nicer solution could be to add a layout setting, and enable adding custom layout options to select. Maybe itemLayout should be an array (itemLayouts) where we add options, which we then add to the splx-gridItemPost--layout-[layoutoption] class:
Instead of creating multiple blocks with different
itemLayout
settings, we could add a layout setting in the inspector controls as default.I just tried this using a custom control:
I could then use the value to set another class to the posts.
I nicer solution could be to add a layout setting, and enable adding custom layout options to select. Maybe
itemLayout
should be an array (itemLayouts
) where we add options, which we then add to thesplx-gridItemPost--layout-[layoutoption]
class:Output: