***Available as of 17th Feb 2020, BidJS V2.3 and Modules 1.7***


 If you wish to use one of the BidJS Modules on a separate page to the rest of your BidJS installation, you are able to do so, by setting the defaultModule option.

e.g.:

window.bidjs = {
...
options: {
...
defaultModule: 'auctionsArchived'
}
}


This will mean that instead of loading the auction calendar on page load, the selected module will load instead.


It's also possible to show the user's login status and ensure that navigation buttons still work (i.e. Visual Hooks) without having any of the BidJS software showing. You can do so by using the below configuration: 

window.bidjs = {
...
options: {
...
defaultModule: 'empty'
}
}


By setting the defaultModule to empty you ensure that your user's login status in any navigation you have set up continues to work, even when not browsing a page containing the rest of BidJS.





***Please use the following information for BidJS version 2.2/Modules version 1.6 and below.***

In order to make sure that buttons and BidJS dependant elements (such as displaying the "Welcome Username" message, there must be elements of BidJS included on those pages but subsequently hidden (e.g. via CSS). We recommend using the My Sales module to achieve this so that it has the least performance impact. 


Include the following in the <script> tags within the <head>: 

window.bidjs = {
config: {
apiBase: '//<<APPLICATION_URL>>/auction-007/api',
clientId: '<%= clientId %>',
googleMapsApiKey: "<<APIKEY>>",
staticBase: '//<<APPLICATION_URL>>/static/<%= version %>',
staticCDN: 'https://static.<%= domain %>',
staticVersion: '<%= moduleVersion %>',
templateVariant: 'bootstrap3'
},
modules: {
mySales: true
},
options: {
standalone: true
}
}


Insert the following into the HTML body, where you wish this element to "appear" on the page, although you will hide it later: 

<div class="container bidlogix-app">
<div id="bidjs"></div>
</div>


Insert this final code at the end of the <body>: 

<script src="https://static.<%= domain %>/<%= moduleVersion %>/bootstrap3/js/bidjs-modules.chunk.js"></script>



Then hide the My Sales element using CSS.