diff --git a/docs/componentsguide/mapcontrols/contextmenu/index.md b/docs/componentsguide/mapcontrols/contextmenu/index.md index 49a390f2..fba99271 100644 --- a/docs/componentsguide/mapcontrols/contextmenu/index.md +++ b/docs/componentsguide/mapcontrols/contextmenu/index.md @@ -23,30 +23,49 @@ Add context menu to map ## Properties -### eventType +### Props from OpenLayers -- **Type**: `String` -- **Default**: `contextmenu` +Properties are passed-trough from `ol-contextmenu` directly. +Their types and default values can be checked-out [in the official docs](https://github.com/jonataswalker/ol-contextmenu). +Only some properties deviate caused by reserved keywords from Vue / HTML. +This deviating props are described in the section below. -The listening event type (You could use 'click', 'dblclick') +### Deviating Properties -### defaultItems +None. -- **Type**: `Boolean` -- **Default**: `true` +## Events -Whether the default items (which are: Zoom In/Out) are enabled +You have access to all Events from the underlying control. +Check out [the official docs](https://github.com/jonataswalker/ol-contextmenu) to see the available events tht will be fired. -### width +```html + +``` -- **Type**: `Number` -- **Default**: `150` +## Methods -The menu's width +You have access to all Methods from the underlying control. +Check out [the official docs](https://github.com/jonataswalker/ol-contextmenu) to see the available methods. -### items +To access the source, you can use a `ref()` as shown below: -- **Type**: `Array` -- **Default**: `[]` +```vue + -An array of object|string + +```