Last active
December 26, 2015 10:19
-
-
Save fraserdeans/7136006 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// shutlQuoteReponse received via Shutl API | |
shutlQuoteResponse = { | |
"quote_collection": { | |
"id": "51d6b5dfe4b0d901fbcfce1a" | |
... | |
} | |
} | |
new Shutl.PriceCalendar({ | |
quoteResponse: shutlQuoteResponse, | |
container: '#shutl-quote-container', | |
quoteIdElement: '#result-quote-id', | |
selectedQuoteId: '51d6b5dfe4b0d901fbcfce1a-1374055484', | |
quoteSelectionCallback: function(quote) { | |
// Do something with selected quote. | |
// All quote attributes are accessible: id, vehicle, merchant_price, | |
// customer_price, pickup_start, pickup_finish, delivery_start, delivery_finish, | |
// valid_until, delivery_promise, delivery_promise_text. | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment