Skip to content

Commit

Permalink
feat: add className option to popup
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Beachill authored and Kyle Beachill committed Sep 17, 2020
1 parent dd3635b commit bb9abf0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/api/popup.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@
- **Description:** A string representing the value for the maximum width. (ex: '400px')
- **See:** `maxWidth` in [Popup](https://docs.mapbox.com/mapbox-gl-js/api/#popup#setmaxwidth)

### `className`

- **Type**: `String`
- **Description:** Space-separated CSS class names to add to popup container
- **See:** `className` in [Popup](https://docs.mapbox.com/mapbox-gl-js/api/markers/#popup#addclassname)

## Slots

### `default`
Expand Down
8 changes: 8 additions & 0 deletions src/components/UI/Popup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@
},
props: {
/**
* Mapbox GL popup option.
* Space-separated CSS class names to add to popup container
*/
className: {
type: String,
default: undefined,
},
/**
* If `true`, a close button will appear in the top right corner of the popup.
* Mapbox GL popup option.
Expand Down

0 comments on commit bb9abf0

Please sign in to comment.