Build a Custom View for a Block
Write your own HTML view
<button type="button" ng-click="block.edit()">
<h2 ng-bind="block.data.headline"></h2>
<p ng-bind="block.data.description"></p>
</button>Make Block List Editor custom view draggable
<button type="button" class="blockelement__draggable-element" ng-click="block.edit()">
<h2 ng-bind="block.data.headline"></h2>
<p ng-bind="block.data.description"></p>
</button>Add the Areas for Block Grid Editor
Adding custom implementation to your View
Example: Displaying an image from a Media Picker
1. Retrieve the image using a filter directly in your custom view
2. Retrieve the image using an AngularJS controller
Last updated
Was this helpful?