Umbau custom blocks
This commit is contained in:
9
public/assets/js/bridge/blocks-custom/elements/spacer.js
Normal file
9
public/assets/js/bridge/blocks-custom/elements/spacer.js
Normal file
@@ -0,0 +1,9 @@
|
||||
(function(){
|
||||
window.BridgeBlocksCustomElements = window.BridgeBlocksCustomElements || [];
|
||||
window.BridgeBlocksCustomElements.push(function(ctx){
|
||||
const { bm, addOnce, css } = ctx;
|
||||
addOnce(bm, 'cust-spacer', { id:'cust-spacer', label:'↕ Spacer',
|
||||
content:`<div style="${css({height:'24px'})}"></div>`
|
||||
});
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user