Page generated at 2016-08-19 09:38:26 +0000
Layer Component
Utility for overlay creation
Example
<script>
$(function(){
component.require(['layer'], function(layerComponent){
var layer = layerComponent.instance(); // with unattached div as placeholder
layer.setPosition('bottom center');
layer.$e.text('Layer');
layer.$e.css({
'background': '#fff',
'padding': '30px',
'border': 'dashed 4px #f00'
});
console.log('layer', layer);
});
});
</script>