Skip to content

Instantly share code, notes, and snippets.

@skttl
Created September 15, 2020 08:25
Show Gist options
  • Save skttl/af173d08c9d2986dcd4b7d16fb0b7677 to your computer and use it in GitHub Desktop.
Save skttl/af173d08c9d2986dcd4b7d16fb0b7677 to your computer and use it in GitHub Desktop.
Rowview for Umbraco Block list
<div class="rowview">
<div style="margin:0 0 10px;border:1px dashed #ccc;">
<div style="margin:0 -5px;padding:10px;display:flex;">
<div
ng-repeat="property in block.content.variants[0].tabs[0].properties"
ng-if="property.editor == 'Umbraco.BlockList'"
style="flex-grow:1;padding:0 5px;">
<umb-property property="property">
<umb-property-editor model="property"></umb-property-editor>
</umb-property>
</div>
</div>
</div>
</div>
<style type="text/css">
.rowview .umb-control-group .control-header {
float:none;
width:auto;
display:flex;
}
.rowview .controls {
margin-left:0;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment