HTMLDwebConfigElement
WebComponentConfigLess than 1 minute
A WebComponent that implements configuration data;
Inherits from HTMLElement;
<dweb-config></dweb-config>
Properties
plugin
The property value is the ConfigPlugin object;
public_url
The property value is the ConfigPlugin.public_url property value;
Methods
- None
Events
Supports any events, no predefined events;
Example
<body>
<dweb-config></dweb-config>
<button>check</button>
<script type="module">
import "@plaoc/plugins"
const config = document.querySelector("dweb-config")!
const btn = document.querySelector('button');
btn.addEventListener('click', async () => {
const url = await config.public_url;
})
</script>
</body>
Platform Compatibility
Properties/Methods/Events | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
plugin | ✅ | ✅ | ✅ | X |
public_url | ✅ | ✅ | ✅ | X |
Related Links
Powered by Waline v2.15.7