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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cb9b3907a46c36dad7a924d84b450afc471d6ab1a693be9e931ce27b9b9311a
|
4
|
+
data.tar.gz: f3043a444591cd9cc1458beac075b0d540851147947b34778f8d249489c16489
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
9
|
-
|
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:
|
36
|
+
scroll.spacer height: 10
|
16
37
|
scroll.chip styleClass: 'success', text: 'Success'
|
17
|
-
scroll.spacer height:
|
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:
|
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:
|
47
|
+
scroll.spacer height: 10
|
27
48
|
scroll.switch \
|
28
49
|
text: 'Email notification',
|
29
50
|
onEnabled: ->(action) do
|