h1
tag:account
(required) - Your account IDselector
(required) - CSS selector where to inject the badgeenabled
- a boolean value if the widget should automatically initialize itself. If set to false
it's up the the developer to initialize the widget with Headway.init()
or Headway.init(config)
translations
- See Translations section below.position.x
(experimental) - force horizontal position of the widget ("left" or "right")position.y
(experimental) - force vertical position of the widget ("top" or "bottom")trigger
- Selector for externally triggering the widget popover. The popover will still be anchored to the badge, not the external trigger.callbacks.onWidgetReady
- callback fired when widget has loaded.callbacks.onShowWidget
- callback fired when widget is shown.callbacks.onShowDetails
- callback fired when an item in the widget is clicked.callbacks.onReadMore
- callback fired when user clicks on readMore link.callbacks.onHideWidget
- callback fired when user closes the widget.Headway.init()
– this will create a new widget instance.Headway.init(config)
which is the config object, in this case it doesn't have to be named HW_config
but anything, for example:Headway.init()
again will destroy the previous widget and replace it with a new instance.title
changes the title of the widget from Latest awesome changes to anything you wishlabels
will replace current labels with provided onesreadMore
changes the read more link from Read the whole scoopfooter
link at the bottom of the widget