glib-web 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/glib/home_controller.rb +1 -1
- data/app/helpers/glib/json_ui/action_builder/dialogs.rb +1 -0
- data/app/helpers/glib/json_ui/action_builder/http.rb +1 -0
- data/app/helpers/glib/json_ui/view_builder/fields.rb +1 -0
- data/app/views/json_ui/garage/forms/_partial_update_execute.json.jbuilder +23 -0
- data/app/views/json_ui/garage/panels/horizontal.json.jbuilder +11 -7
- 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: 72eecba2c1fe97bbb3ef6f0be03e4d0f79a23a4dcca8c7f16bf3d1be9083a5b7
|
4
|
+
data.tar.gz: 526316d03db695e57c5a2a7e81110cb52f14d73ab5524ca7866c73a6e9230ffc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc68d49b58d90e62fa5c4f2cd82bbf2bde03123a63ecc3f3fe09875d8a886db320f0151c53c31cfc417d2cc88993f66b10350f2d9f00f8c70dda54bdccef1075
|
7
|
+
data.tar.gz: e4faf34c6746d568277406474f5c75ce05f52c0ce262102879adf13ac595e8f03102a169047d9a9993f952d6d3978de6f22677b9068796d14cb1b3fba3b6d878
|
@@ -4,5 +4,28 @@ action.components_update targetId: 'greeting', views: ->(update) do
|
|
4
4
|
vertical.label text: "Hello #{name},"
|
5
5
|
vertical.spacer height: 8
|
6
6
|
vertical.label text: 'Nice to meet you'
|
7
|
+
|
8
|
+
vertical.spacer height: 8
|
9
|
+
vertical.panels_horizontal childViews: ->(horizontal) do
|
10
|
+
horizontal.label text: "Column1 #{DateTime.current.to_i}"
|
11
|
+
horizontal.spacer width: 8
|
12
|
+
|
13
|
+
horizontal.panels_vertical childViews: ->(inner_vertical) do
|
14
|
+
inner_vertical.label text: "Row1 #{DateTime.current.to_i}"
|
15
|
+
inner_vertical.label text: "Row2 #{DateTime.current.to_i}"
|
16
|
+
|
17
|
+
inner_vertical.panels_split content: ->(split) do
|
18
|
+
split.left childViews: ->(left) do
|
19
|
+
left.label text: "Left1 #{DateTime.current.to_i}"
|
20
|
+
left.label text: "Left2 #{DateTime.current.to_i}"
|
21
|
+
end
|
22
|
+
|
23
|
+
split.right childViews: ->(right) do
|
24
|
+
right.label text: "Right1 #{DateTime.current.to_i}"
|
25
|
+
right.label text: "Right2 #{DateTime.current.to_i}"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
7
30
|
end
|
8
31
|
end
|
@@ -119,13 +119,17 @@ json_ui_page json do |page|
|
|
119
119
|
|
120
120
|
scroll.spacer height: 20
|
121
121
|
scroll.h1 text: 'Label combo (with onClick)'
|
122
|
-
scroll.panels_horizontal
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
122
|
+
scroll.panels_horizontal \
|
123
|
+
padding: { left: 20, right: 20, top: 10, bottom: 10 },
|
124
|
+
styleClasses: ['rounded-corner'],
|
125
|
+
backgroundColor: '#b3bac2',
|
126
|
+
childViews: ->(panel) do
|
127
|
+
panel.label text: 'Label 1'
|
128
|
+
panel.label backgroundColor: '#ffffff', text: 'Label 2'
|
129
|
+
panel.label text: 'Label 3'
|
130
|
+
end, onClick: ->(action) do
|
131
|
+
action.windows_open url: json_ui_garage_url(path: 'home/blank')
|
132
|
+
end
|
129
133
|
|
130
134
|
scroll.spacer height: 20
|
131
135
|
scroll.h1 text: 'Drag-and-drop support'
|