oeb-message is a javascript component for add custom messages from external URL ans show it as a notification in a webpage.
- To use NPM package version:
npm i @inb/oeb_messages
-
CDN version
-
Javascript directly module
Just import CustomMessage.js file in your component
Import depend on installation type:
- NPM version To use NPM version, node recomended version is at least 18.x.x (recommended 20.x.x)
import oeb-messages from 'oeb-messages':
- CDN version
<script src="CDN/oeb-messages.js"></script>
- Javascript directly module use:
import CustomMessage from './CustomMessage.js'
To use OEB messages component declare the component:
<custom-message url="YOUR_JSON_URL_HERE"></custom-message>
By default OEB messages component include OEB styles. To customize others styles, declare it on component:
<custom-message
border="1px solid lightsteelblue"
backgroundColor="azure"
textColor="gray"
url="YOUR_JSON_URL_HERE"
>
</custom-message>