buyNowPrice - if a user sets a bet, which is equal or more then this number, a lot closes
closed - is a lot closed (boolean)
Lot module (angular)
Provider - LotList.
Returns an object , which contains a list of lots.
confiig options:
* readUrl - an Url, where we can get list of lots
* lotConfig - a default set of options for Lot item
parameters:
* LotList - a list of lot items
methods:
* createLot (values, config)
creates a new Lot item
<h3>parameters:</h3>
* values - if an object, method applies values to the returned object, if a string - loads an object from the storage, using values like identifier, if none - creates a default Lot object
* config - config options for a new Lot object
* loadData(filter, callbacl) - loads data from the storage, using a filter param
Lot object
config options
baseApiUrl - an api url prefix. Defaults to '/api'
addModelUrl - an url to add a lot. Defaults to '/Auctions'
updateModelUrl - an url to update a model. Defaults to '/Auctions/{id}'
readModelUrl - an url to read a model. Defaults to '/Auctions/{id}'
deleteModelUrl - an url to delete a model. Defaults to '/Auctions/{id}'
addModelSuccessCallback - callback function which is called after a success add model response.
parameters
response - a server response
addModelFailureCallback - callback function which is called after a failure add model response.
parameters
response - a server response
updateModelSuccessCallback - callback function which is called after a success update model response.
parameters
response - a server response
updateModelFailureCallback - callback function which is called after a failure update model response.
parameters
response - a server response
deleteModelSuccessCallback - callback function which is called after a success delete model response.
parameters
response - a server response
deleteModelFailureCallback - callback function which is called after a failure delete model response.
parameters
response - a server response
Properties
config - set of config parameters
values - set of lot's fields values
Methods
addModel - adds a model to the storage
updateModel - updates a model in the storage
deleteModel - deletes a model from the storage
getModel - reads a model from the storage
Parameters
id - an id of the model
callback - a callback function, which is called after a request.
set - set a field or a set of fields into specified values.
Fields
Lot module (angular)
Provider - LotList.
Returns an object , which contains a list of lots.
confiig options:
parameters:
methods:
Lot object
config options
parameters
parameters
parameters
parameters
parameters
parameters
Properties
Methods
getModel - reads a model from the storage
Parameters
set - set a field or a set of fields into specified values.
Parameters