stimulus-overlay-helpers 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/stimulus_overlay_helpers/view_helpers.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd73c40c3f20afb36a51b7a1990210151b6fca78a2e6a592f06cc313f8f5b9e4
|
|
4
|
+
data.tar.gz: 1548190eb2bf9bff381f70454e4f5b28debe5a8ed335a9eb0dafc1e2bd2f3638
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5922da66fb9a269059baa7883b45fd806333eddd92ec5715ece68ebbad66fd1aed93bee8ab49602015b545e38677e01a4c17e92365a37e44b2393441b4316ae9
|
|
7
|
+
data.tar.gz: 304fbd447b8b5dc7f1a898dcbf8d53258f46f819ce324592bb179ab85b7067dd6d8d92032e8363a8a005a31010712ef6408d27e2cdc45ea1c862832c59554ccd
|
data/README.md
CHANGED
|
@@ -63,7 +63,7 @@ This matches the behavior of the [Svelte overlays from `@csedl/hotwire-svelte-he
|
|
|
63
63
|
tooltip-content
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
## Create Dropdown-Panel on opening
|
|
66
|
+
## Create Dropdown-Panel or Modal on opening
|
|
67
67
|
|
|
68
68
|
When `src` attribute is passed and, on opening, no panel is rendered, which is the case when:
|
|
69
69
|
|
|
@@ -104,6 +104,7 @@ module StimulusOverlayHelpers
|
|
|
104
104
|
if src.present?
|
|
105
105
|
button_options['data-src'] = src
|
|
106
106
|
button_options["data-overlay-class"] = panel_class
|
|
107
|
+
button_options["data-overlay-title"] = title
|
|
107
108
|
end
|
|
108
109
|
button_element = content_tag(:div, button_content, button_options)
|
|
109
110
|
|