Class: CustomerList

CustomerList

new CustomerList()

A List of the login user's customers
Properties:
Name Type Description
customers Array Array of customers.
Source:
See:
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:

addDomainFilter(string)

Adds the domain filter
Parameters:
Name Type Argument Description
string <optional>
domain - domain value to filter
Source:

addLoginFilter(string)

Adds the login filter
Parameters:
Name Type Argument Description
string <optional>
name - name value to filter
Source:

addNameFilter(string)

Adds the name filter
Parameters:
Name Type Argument Description
string <optional>
name - name value to filter
Source:

generateUrl()

Overrides Resource's generateUrl method to return the request url
Source:
See:

loadPreset()

Overrides Resource's loadPreset method.
Source:
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:
See:

removeCustomerFilter()

Removes the customer filter
Source:

removeDomainFilter()

Removes the domain filter
Source:

removeLoginFilter()

Removes the login filter
Source:

removeNameFilter()

Removes the name filter
Source: