1.0.5 • Published 5 years ago
tile-preview v1.0.5
tile-preview
This a webcomponent based on html lit element is use to load HTML content in a tile
Installation
npm i tile-preview
Usage
you can add custom html string as the property "htmlContent". For using an image use width=100% for proper formatting
<tile-preview
scaleContent = 0
onClick="console.log('HI')"
title="Email Content"
autoScroll={true}
controlWidth = 300
controlHeight=400
htmlContent="<img width='100%' src='./dev/pig.png' />">
</tile-preview>
dependencies
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.js"></script>
more information
https://lit-element.polymer-project.org/
CXM Webcomponents
https://stage.cxm-salescloud.com/modules/web-components/demo/index.html