glib-web 0.5.94 → 0.5.95

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: bf0645de0de3f3b975e5d4ac6d7334e7f04343af59f24197e2b5c25abff24d64
4
- data.tar.gz: eca8bf174b02e480ff616e7da1918225097e06f54985e28c8051005faf7911d2
3
+ metadata.gz: 9cb9b3907a46c36dad7a924d84b450afc471d6ab1a693be9e931ce27b9b9311a
4
+ data.tar.gz: f3043a444591cd9cc1458beac075b0d540851147947b34778f8d249489c16489
5
5
  SHA512:
6
- metadata.gz: 31cc51adb4a0f77c58c0d37713f7f286ca8ff69410c1ecf4a18040c1ea58ad193be72c557ae4e32a73b2a47e45f57e214627a15115b97fd5d35d74fb3530f50f
7
- data.tar.gz: f42f4173e1faa5eddb83332bdeef89e97d51f38462f8f4db64fa2ec95d3b49434f5a9d4aa4327b8a94b7ef30021e969fbac262e1f9d9e9508e37f42fa59360ed
6
+ metadata.gz: ce1ce72300b95f4a9ac7db885cdc89e322fb4d605cf91822784933cee7945b755d0019636f1508df2ac62e4d9b3e575d3c485d8a18b34cb39fac601b12e55ad6
7
+ data.tar.gz: ac71cd656382ca60cffddf0765d08be6b3490ff72e577d67b1a757981c4bc7025fec2b5c6b8ae3bf697e5f2d532b03ed8709e3f8bbf940bba2dd7b4461c944a9
@@ -33,6 +33,7 @@ module Glib
33
33
  hash :showIf
34
34
  hash :valueIf
35
35
  hash :analytics
36
+ hash :tooltip
36
37
 
37
38
  # def initialize(json, page)
38
39
  # super(json, page)
@@ -164,6 +165,7 @@ module Glib
164
165
  string :text, cache: true
165
166
  action :onClick
166
167
  color :color
168
+ bool :disabled
167
169
  end
168
170
 
169
171
  class Fab < View
@@ -5,25 +5,46 @@ render "#{@path_prefix}/nav_menu", json: json, page: page
5
5
 
6
6
  page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
7
7
  scroll.h2 text: 'Button'
8
- scroll.spacer height: 6
9
- scroll.button text: 'Click me', onClick: ->(action) do
8
+ scroll.spacer height: 20
9
+
10
+ scroll.button text: 'Button', onClick: ->(action) do
11
+ action.dialogs_alert message: 'Perform action'
12
+ end
13
+ scroll.spacer height: 20
14
+
15
+ scroll.button text: 'Buton with build-in classes', styleClasses: ['rounded', 'outlined', 'tile', 'depressed'], onClick: ->(action) do
10
16
  action.dialogs_alert message: 'Perform action'
11
17
  end
18
+ scroll.spacer height: 20
19
+
20
+ scroll.button icon: 'info', text: 'Button with Icon and Tooltip', tooltip: { text: 'Tooltip text'}, onClick: ->(action) do
21
+ action.dialogs_alert message: 'Perform action'
22
+ end
23
+ scroll.spacer height: 20
24
+
25
+ scroll.button \
26
+ icon: 'info',
27
+ styleClass: 'icon',
28
+ tooltip: { text: 'Disabled Icon button with tooltip text and custom tooltip position', position: 'right'},
29
+ disabled: true
30
+ scroll.spacer height: 20
31
+
32
+
12
33
 
13
34
  scroll.spacer height: 20
14
35
  scroll.h2 text: 'Chip'
15
- scroll.spacer height: 6
36
+ scroll.spacer height: 10
16
37
  scroll.chip styleClass: 'success', text: 'Success'
17
- scroll.spacer height: 6
38
+ scroll.spacer height: 10
18
39
  scroll.chip text: 'With Action', onClick: ->(action) do
19
40
  action.dialogs_alert message: 'Perform action'
20
41
  end
21
- scroll.spacer height: 6
42
+ scroll.spacer height: 10
22
43
  scroll.chip text: 'With Badge', badgeContent: '99'
23
44
 
24
45
  scroll.spacer height: 20
25
46
  scroll.h2 text: 'Switch'
26
- scroll.spacer height: 6
47
+ scroll.spacer height: 10
27
48
  scroll.switch \
28
49
  text: 'Email notification',
29
50
  onEnabled: ->(action) do
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.94
4
+ version: 0.5.95
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''