glib-web 0.5.84 → 0.5.85

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8116fc99211801035ca26ac6284a27e6c4755a75af4b2e65497562462b0ef49c
4
- data.tar.gz: f692e4208192bad86abea45c5e4b49dfe7b4be7969f9a1932d82311de87f10db
3
+ metadata.gz: dbc3d54d9b3330ceaf201ca6a3b1fe2a2c773eec342568356e7fa92962c3e3c3
4
+ data.tar.gz: 31c246e1afd7ee0a31eae925b3ddf227a7299c05b2b7972f85972768025527c4
5
5
  SHA512:
6
- metadata.gz: f2e18e112d13a1286fb0de001a5c07ee504ab61e74e0d5110334205be708ad76b3e3f4b3dd2776b8c7068e06386a7dec8d0f680a35b4982edd7f4d33941bfec7
7
- data.tar.gz: 706026d095427cc82fcd07a6a3a01c21b5e65f895d73180c4ce06fe9ae1a8135875250ed87bbe2b1c28d0a5d15b1a7e55e7729b74ffab56a6150537a8c40ee10
6
+ metadata.gz: 065e4399ffd15e49e072b4c30c71b823d977397f6435ca112a8ad0e5aabf43c2c544e3806d9e93dd572cc7c9a3d2cafa79ec0f5f6d60fb02a075637e36635bf1
7
+ data.tar.gz: c55ace7298dd9294d003e5b55b778f8b384a6caf5a5cb69f6a0496e2ac59771e1f4a362777d4d4c48a3b0d9269920be2e8d6cd908a0b3244dce16a4f5ce4ba69
@@ -5,8 +5,8 @@ json_ui_page json do |page|
5
5
 
6
6
  page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
7
7
  scroll.panels_column lg: { cols: 8 }, childViews: ->(column) do
8
- column.h2 text: 'Tab Bar'
9
- column.tabBar height: 75, buttons: ->(menu) do
8
+ column.h2 text: 'Tab Bar with Badge'
9
+ column.tabBar buttons: ->(menu) do
10
10
  {
11
11
  'FIRST' => 'home',
12
12
  'SECOND' => 'schedule',
@@ -19,13 +19,21 @@ json_ui_page json do |page|
19
19
  badgeColor: [nil, '#272551', '#008000'][index],
20
20
  disabled: params[:tab].to_i == index,
21
21
  onClick: ->(action) do
22
- action.windows_reload url: json_ui_garage_url(path: 'pages/tab_bar', tab: index)
22
+ action.windows_reload \
23
+ url: json_ui_garage_url(
24
+ path: 'pages/tab_bar',
25
+ tab: index,
26
+ tab_2: params[:tab_2],
27
+ tab_3: params[:tab_3]
28
+ )
23
29
  end
24
30
  end
25
31
  end
26
32
  column.spacer height: 10
33
+
27
34
  column.label text: "Tab index #{params[:tab].to_i} selected"
28
35
  column.spacer height: 10
36
+
29
37
  10.times do |i|
30
38
  column.label text: "Line #{i + 1}"
31
39
  end
@@ -33,32 +41,50 @@ json_ui_page json do |page|
33
41
  end
34
42
 
35
43
  scroll.panels_column lg: { cols: 8 }, childViews: ->(column) do
36
- column.h2 text: 'Tab Bar with full-width-divider'
44
+ column.h2 text: "Tab Bar with 'full-width-divider'"
37
45
  column.tabBar styleClass: 'full-width-divider', buttons: ->(menu) do
38
46
  5.times do |index|
39
47
  menu.button \
40
48
  text: "Tab #{index}",
41
- disabled: params[:tab_with_grow].to_i == index,
49
+ disabled: params[:tab_2].to_i == index,
42
50
  onClick: ->(action) do
43
- action.windows_reload url: json_ui_garage_url(path: 'pages/tab_bar', tab_with_grow: index)
51
+ action.windows_reload \
52
+ url: json_ui_garage_url(
53
+ path: 'pages/tab_bar',
54
+ tab: params[:tab],
55
+ tab_2: index,
56
+ tab_3: params[:tab_3]
57
+ )
44
58
  end
45
59
  end
46
60
  end
61
+ column.spacer height: 10
62
+
63
+ column.label text: "Tab-2 index #{params[:tab_2].to_i} selected"
47
64
  column.spacer height: 40
48
65
  end
49
66
 
50
67
  scroll.panels_column lg: { cols: 8 }, childViews: ->(column) do
51
- column.h2 text: 'Tab Bar with grow'
52
- column.tabBar styleClass: 'grow', buttons: ->(menu) do
68
+ column.h2 text: "Tab Bar 'with no-grow'"
69
+ column.tabBar styleClass: 'no-grow', buttons: ->(menu) do
53
70
  5.times do |index|
54
71
  menu.button \
55
72
  text: "Tab #{index}",
56
- disabled: params[:tab_with_grow].to_i == index,
73
+ disabled: params[:tab_3].to_i == index,
57
74
  onClick: ->(action) do
58
- action.windows_reload url: json_ui_garage_url(path: 'pages/tab_bar', tab_with_grow: index)
75
+ action.windows_reload \
76
+ url: json_ui_garage_url(
77
+ path: 'pages/tab_bar',
78
+ tab: params[:tab],
79
+ tab_2: params[:tab_2],
80
+ tab_3: index
81
+ )
59
82
  end
60
83
  end
61
84
  end
85
+ column.spacer height: 10
86
+
87
+ column.label text: "Tab-3 index #{params[:tab_3].to_i} selected"
62
88
  column.spacer height: 40
63
89
  end
64
90
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glib-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.84
4
+ version: 0.5.85
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''