glib-web 0.5.48 → 0.5.49
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: de169b420305a05364d54456a0673cd84551e04ada3db96d93fd68c3b0e7fff5
|
4
|
+
data.tar.gz: 7c51e166d6e95ca1edb404c4faaf900b6a28a6f5ca940cabe7f534eddbfa8720
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f00a06fe4f39340bc75b19553e19ce2f65f0d5f6bf64ea2287357b7e68475cc774062417cbd854e727905f7c3d434a0705f5322f083c22f4ace99dce79be7cc6
|
7
|
+
data.tar.gz: fe0894ee4fd7580f86c603e9cd3572ff0550fb772ace25cc63f5a74002fe1a3ec5a9aecd5446b04d2c8823a7de9a8a19f4e82c7fe4f8dc2816b23eafee9dd1e8
|
@@ -73,6 +73,11 @@ module Glib::Json::Traversal
|
|
73
73
|
traverse_vertical_content view['center'], block
|
74
74
|
traverse_vertical_content view['right'], block
|
75
75
|
|
76
|
+
# List template
|
77
|
+
traverse_multiple view['editButtons'], block
|
78
|
+
traverse_multiple view['leftButtons'], block
|
79
|
+
traverse_multiple view['rightButtons'], block
|
80
|
+
|
76
81
|
# TODO: crawl header and footer
|
77
82
|
# Table/List
|
78
83
|
if (sections = view['sections']).is_a? Array
|
@@ -38,7 +38,11 @@ module Glib
|
|
38
38
|
bool :avatar
|
39
39
|
action :onReorder
|
40
40
|
string :paramNameForFormData
|
41
|
-
string :
|
41
|
+
string :paramNameForNewAbsoluteIndex
|
42
|
+
string :paramNameForNewSectionIndex
|
43
|
+
string :paramNameForNewSectionedRowIndex
|
44
|
+
|
45
|
+
string :paramNameForNewIndex # Deprecated
|
42
46
|
|
43
47
|
# # NOTE: Experimental. Still deciding whether this needs to be a full blown panel or
|
44
48
|
# # an array of badges (with relevant properties, e.g. text, color, etc)
|
@@ -18,7 +18,17 @@ else
|
|
18
18
|
|
19
19
|
render "#{@path_prefix}/nav_menu", json: json, page: page
|
20
20
|
|
21
|
-
page.list nextPage: next_page,
|
22
|
-
|
23
|
-
|
21
|
+
page.list nextPage: next_page, sections: [
|
22
|
+
->(section) do
|
23
|
+
section.header padding: glib_json_padding_list, childViews: ->(header) do
|
24
|
+
header.h3 text: 'Section One'
|
25
|
+
end
|
26
|
+
end,
|
27
|
+
->(section) do
|
28
|
+
section.header padding: glib_json_padding_list, childViews: ->(header) do
|
29
|
+
header.h3 text: 'Section Two'
|
30
|
+
end
|
31
|
+
render 'json_ui/garage/lists/autoload_section', page: page, page_index: page_index, reorder: true
|
32
|
+
end
|
33
|
+
]
|
24
34
|
end
|