Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
npm install mellowtel-elements
import { MellowtelElements } from 'mellowtel-elements'; // 拡張IDと設定キーで初期化 const mellowtel = new MellowtelElements('your-extension-id', 'your-config-key'); // 要素を作成 await mellowtel.createElement('opt-in-container', { type: 'opt-in' }); await mellowtel.createElement('opt-out-container', { type: 'opt-out' }); await mellowtel.createElement('settings-container', { type: 'settings' });
<!DOCTYPE html> <html> <head> <title>MellowTel Elementsの例</title> </head> <body> <!-- 要素のためのコンテナdiv --> <div id="opt-in-container"></div> <div id="opt-out-container"></div> <div id="settings-container"></div> <!-- CDNからロード --> <script src="https://cdn.jsdelivr.net/npm/mellowtel-elements@latest/dist/index.global.js"></script> <script> // MellowTel Elementsを初期化 const mellowtel = new window.MellowtelElements.default('your-extension-id', 'your-config-key'); // 要素を作成 mellowtel.createElement('opt-in-container', { type: 'opt-in' }); mellowtel.createElement('opt-out-container', { type: 'opt-out' }); mellowtel.createElement('settings-container', { type: 'settings' }); </script> </body> </html>