The DQE JavaScript client API maintains a list of events specific to the address completion engine.
Each time an item is selected from the list of choices, an event is triggered and returns the value that was selected.
The following JQuery events are triggered automatically:
- number(event, number): is triggered when a number is chosen;
- street(event, number): is triggered when a street is chosen;
- city(event, city_id, city_name): is triggered when a city is chosen;
- compl(event, complement): is triggered when an additional address information is chosen;
- company(event, name): is triggered when a company is chosen with the city (CEDEX).