# When search is opened

## Example
```js
// npm
myComponent.register(DocComponentEvent.SEARCH_BOX_OPEN, function(data) {
});

// sdk
myComponent.register('SEARCH_BOX_OPEN', function(data) {
});
```

## return
|Properties| Type| Description|
| ---|----- | ------- |
|data| Object | Response data parameters refer to the table below **data** |

### data
|Properties| Type| Description|
| ---|----- | ------ |
|duration| Number| The time between when the user presses the open button for the first time and when the search panel opens (if the user presses it many times during this period, only the first time will be recorded)
|openTimes| Number| The number of times the user opened the panel