From e2a6bc81776530a375f02466323a2642625cba57 Mon Sep 17 00:00:00 2001 From: Martin Rocek Date: Thu, 4 Feb 2021 00:21:03 +0100 Subject: [PATCH] :memo: comment dots in examples --- readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 234a8ff..3b46040 100644 --- a/readme.md +++ b/readme.md @@ -137,7 +137,7 @@ is to use the `ref` attribute and then call the method `openOverlay` on the `$re ``` and then the method `openOverlay` can be called from your method: ```javascript -... +// ... methods: { // the index parameter is optional, however it should be set if you're opening // the overlay on different position than the beginning of the gallery @@ -145,19 +145,19 @@ methods: { this.$refs.silentbox.openOverlay(item, index) } } -... +// ... ``` However, in case you just want to open an item without any context, it might be a better choice to call the global `open` method that SilentBox provides. ```javascript -... +// ... methods: { openOverlayProgramaticallyWithoutContext (item) { this.$silentbox.open(item) } } -... +// ... ```