Place Bid (optional)
Last updated
Last updated
The bidding widget is the main widget which needs to be implemented. The bidding widget has a red "bid button". After clicking this button a popup will be opened in which the user has to enter its details. This popup is the "place bid widget" which is described on this page. The place bid widget is already implemented in the bidding widget out of the box. This page describes how to open it manually.
It might be desired to create another "bid button" outside of the bidding widget. This is something we used at our own website.
First load the SDK of TheNextBid on to the website. This will provide the window.TNB
function to initialise the place bid widget. Call this function to programmatically open the place bid widget.
methodName: string - the name of the SDK method to be called. For creating this widget this must be "placeBid"
.
settings: an object containing the following keys
sourceName: string - a static name for the API providing information about the desired listing. The value of this field will be provided by TheNextBid. For example all listings served by the API of "Voorbeeld Makelaar B.V." will be stored at TheNextBid with a sourceName of "voorbeeldmakelaar". The value provided to the widget should correspond this value. Check out this link for more information.
objectId: string|number - just like the sourceName serves as an identifier for the entire API, objectId serves as an identifier to specify the right listing. This should correspond to the object ID provided by the API. Check out this link for more information.