npm install nuxt-trengo
import { defineNuxtConfig } from 'nuxt/config';
export default defineNuxtConfig({
modules: ['nuxt-trengo'],
trengo: {
key: 'YOUR_TRENGO_WIDGET_KEY',
},
});
export interface ModuleOptions {
addPlugin: boolean // If plugin from module should be loaded;
key: string // Trengo Key;
hideWidget: boolean // see Appearance in trengo docs;
hideGifPicker: boolean // see Appearance in trengo docs;
hideEmojiPicker: boolean // see Appearance in trengo docs;
hideFilePicker: boolean // see Appearance in trengo docs;
hidePanelHeader: boolean // see Appearance in trengo docs;
hideOnlineStatus: boolean // see Appearance in trengo docs;
delay: number; // delay after load of dom to display widget
detectPageChange: boolean // detect page change for spa;
extraOffsetX: number | null // see Appearance in trengo docs;
extraOffsetY: number | null // see Appearance in trengo docs;
}
This widget will display the trengo widget on your website.