Onset
  • Guide
    • Custom Domains
    • Page Privacy
      • Password protected
      • JWT single sign-on
  • Developers
    • Widget
      • Install
      • Configuration
      • Events
      • Methods
    • Webhooks
      • Creating webhooks
      • Events
    • API Reference
    • Browser SDK
    • Widget SDK
    • Node.js SDK
    • Widget Builder
Powered by GitBook
On this page
  • page​
  • project​
  • title​
  • allowSubscribers​
  • hideBadge​
  • width​
  • height​
  • direction​
  • customTrigger​
  • showOnLoad​
  • showRoadmap​
  • triggerText​
  • triggerTextColor​
  • triggerBgColor​
  • triggerDirection​
  • theme​
  1. Developers
  2. Widget

Configuration

PreviousInstallNextEvents

Last updated 2 years ago

Once you have installed Onset on your site, you should see the widget trigger on the right of your screen. You may now want to tailor how the widget appears on your site.

onsetWidgetSettings = {
  page: 'releases.onset.io',
  triggerText: "🔔 What's New",
};

page

The unique domain of your Onset Page. It also supports custom domains.

  • Required

  • Type: String

Examples:

  • example.onset.io - Onset Page Domain

  • releases.example.com - Custom domain page

project

Default selected project.

  • Default: all

  • Type: String

title

Widget header text.

  • Default: Release Notes

  • Type: String

Enable / Disable subscribe button.

  • Default: true

  • Type: Boolean

Enable / Disable trigger badge count.

  • Default: false

  • Type: Boolean

Widget window width.

  • Default: 400px

  • Type: string

Widget window height.

  • Default: 95%

  • Type: string

The direction from which the widget window appears.

  • Default: right

  • Type: String

  • Values: left, right, center

Disable the default widget to use your custom action button.

  • Default: false

  • Type: Boolean

Automatically show the widget on load.

  • Default: false

  • Type: Boolean

Toggle to the roadmap tab.

  • Default: false

  • Type: Boolean

Widget action button text.

  • Default: null

  • Type: String

Text color of the action button.

  • Default: #FFFFFF

  • Type: String

The background color of the action button. If no color is provided, we default to "Accent Color" from your Onset Appearance Settings.

  • Default: #3e45eb

  • Type: String

The direction of the widget trigger.

  • Default: right

  • Type: String

  • Values: left, right

Widget theme. The auto value sets the theme based on the user's system preference.

  • Default: light

  • Type: String

  • Values: system, light, dark

allowSubscribers

hideBadge

width

height

direction

customTrigger

showOnLoad

showRoadmap

triggerText

triggerTextColor

triggerBgColor

triggerDirection

theme

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​