glib-web 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7582120728da9ff799f1e96c09441e9901c382dff1f6cc8f75915bcc4a001bc3
|
4
|
+
data.tar.gz: d3416f026945a4394b53c75fabac68bfe0221891ce799dcc8e69df17c6bfb103
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51b62f4e1432cb3282677e709f8e87f0d20f4fbb7b9e016b9ab704fed340664ee60fcf4c8ac34032bf74705da09cf5e576749c8944ff237f07b0110eab38ed8b
|
7
|
+
data.tar.gz: e62724ed3687f6f8905740c05655a1f797caafd5b4125b0d9bb770552a8c0b804b45a89134a57c5cd1f049f5125979b1ee5f8acccdbf0bf8cfa85f33efb0c064
|
@@ -10,8 +10,11 @@ class Glib::JsonUi::ActionBuilder
|
|
10
10
|
string :viewId
|
11
11
|
action :onScroll
|
12
12
|
bool :animate
|
13
|
-
string :placement
|
13
|
+
string :placement # `top` or `bottom`
|
14
14
|
string :panelId
|
15
|
+
|
16
|
+
# Scroll even when the target component is already in view.
|
17
|
+
bool :force
|
15
18
|
end
|
16
19
|
end
|
17
20
|
end
|
@@ -11,8 +11,13 @@ section.rows builder: ->(template) do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
template.thumbnail title: 'panels/scrollTo', onClick: ->(action) do
|
14
|
-
action.panels_scrollTo
|
15
|
-
|
16
|
-
|
14
|
+
action.panels_scrollTo \
|
15
|
+
viewId: 'scroll_anchor',
|
16
|
+
force: true,
|
17
|
+
animate: true,
|
18
|
+
placement: 'top',
|
19
|
+
onScroll: ->(subaction) do
|
20
|
+
subaction.dialogs_alert message: 'Component becomes in view'
|
21
|
+
end
|
17
22
|
end
|
18
23
|
end
|