new CustomerList()
A List of the login user's customers
- Source:
- Customer/CustomerList.js, line 34
- See:
Properties:
Name | Type | Description |
---|---|---|
customers |
Array | Array of customers. |
Example
Load customers
var custList = new CustomerList();
custList.load({
onSuccess:function(){
alert('List Loaded \n'+custList.customers.length+' customers on list');
}
});
Methods
-
addCustomerFilter(string)
-
Adds the customer filter
Parameters:
Name Type Argument Description string
<optional>
customerId - id of the customer to filter - Source:
- Customer/CustomerList.js, line 102
-
addDomainFilter(string)
-
Adds the domain filter
Parameters:
Name Type Argument Description string
<optional>
domain - domain value to filter - Source:
- Customer/CustomerList.js, line 119
-
addLoginFilter(string)
-
Adds the login filter
Parameters:
Name Type Argument Description string
<optional>
name - name value to filter - Source:
- Customer/CustomerList.js, line 153
-
addNameFilter(string)
-
Adds the name filter
Parameters:
Name Type Argument Description string
<optional>
name - name value to filter - Source:
- Customer/CustomerList.js, line 136
-
generateUrl()
-
Overrides Resource's generateUrl method to return the request url
- Source:
- Customer/CustomerList.js, line 53
- See:
-
loadPreset()
-
Overrides Resource's loadPreset method.
- Source:
- Customer/CustomerList.js, line 47
- See:
-
loadSet(rObject)
-
Overrides Resource's loadSet method to set local variables after request.
Parameters:
Name Type Description rObject
json JSON representation of the loaded data. - Source:
- Customer/CustomerList.js, line 63
- See:
-
removeCustomerFilter()
-
Removes the customer filter
- Source:
- Customer/CustomerList.js, line 112
-
removeDomainFilter()
-
Removes the domain filter
- Source:
- Customer/CustomerList.js, line 129
-
removeLoginFilter()
-
Removes the login filter
- Source:
- Customer/CustomerList.js, line 159
-
removeNameFilter()
-
Removes the name filter
- Source:
- Customer/CustomerList.js, line 146