account(required) - Your account ID
selector(required) - CSS selector where to inject the badge
enabled- a boolean value if the widget should automatically initialize itself. If set to
falseit's up the the developer to initialize the widget with
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_configbut anything, for example:
Headway.init()again will destroy the previous widget and replace it with a new instance.
titlechanges the title of the widget from Latest awesome changes to anything you wish
labelswill replace current labels with provided ones
readMorechanges the read more link from Read the whole scoop
footerlink at the bottom of the widget