Skip to content

Commit e780e4b

Browse files
richpaulooschloerke
authored andcommitted
fix incorrect library name in morefeatures.Rmd (#592)
`htmlwidgets` (plural) is the library name, not `htmlwidget`
1 parent 419e07d commit e780e4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/morefeatures.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ leaflet() %>% addTiles() %>%
174174

175175
### Advanced Features
176176

177-
#### Custom JavaScript with `htmlwidget::onRender`
177+
#### Custom JavaScript with `htmlwidgets::onRender`
178178

179-
The `htmlwidget::onRender` function can be used to add custom behavior to the leaflet map using native Javascript. This is a some what advanced use case and requires you to know Javascript. Using `onRender` you can customize your map's behavior using any of the APIs as defined in the Leaflet.js [documentation](leafletjs.com/reference.html).
179+
The `htmlwidgets::onRender` function can be used to add custom behavior to the leaflet map using native Javascript. This is a some what advanced use case and requires you to know Javascript. Using `onRender` you can customize your map's behavior using any of the APIs as defined in the Leaflet.js [documentation](leafletjs.com/reference.html).
180180

181181
Below is an example where we sync the base layer of the mini-map with the baselayer of the main map, using the 'baselayerchange' event.
182182

0 commit comments

Comments
 (0)