nfg_ui 0.9.17 → 0.9.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nfg_ui/components/traits/icon.rb +9 -1
- data/lib/nfg_ui/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55cbb21a1840083ecb35ef107fe61fbb98c89975cee73b51252772b8f73d8f80
|
4
|
+
data.tar.gz: 9064214361078d0faceb38795a62d08b2cf8812b21129838d8a561426d1602ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1c2774f650a8c4570f9173e5d20c9e6aadb57f07654e4e2809bfa582c89aa892e88053f03077305c597737ff98a34bb6fdb2abf0ad1ac2d392a0f1004d9ec3d
|
7
|
+
data.tar.gz: a166a12fd10e92785230fba27e017ede80d8f7f99ac1c130fea8d401ec7c6955c8148b18680b416f5ed6d6bdfcc5219ce15400dd8097cd56783517fcd2d55d7a
|
@@ -5,11 +5,19 @@ module NfgUi
|
|
5
5
|
module Traits
|
6
6
|
# Access to pre-designed Icon traits
|
7
7
|
module Icon
|
8
|
-
TRAITS = %i[loader].freeze
|
8
|
+
TRAITS = %i[loader tip].freeze
|
9
9
|
|
10
10
|
def loader_trait
|
11
11
|
options[:icon] = 'spinner spin fw'
|
12
12
|
end
|
13
|
+
|
14
|
+
# The defacto "(?)" tip icon
|
15
|
+
# Usage:
|
16
|
+
# ui.nfg :icon, :tip, tooltip: 'The tip'
|
17
|
+
def tip_trait
|
18
|
+
options[:icon] = 'question-circle-o'
|
19
|
+
options[:theme] = :info
|
20
|
+
end
|
13
21
|
end
|
14
22
|
end
|
15
23
|
end
|
data/lib/nfg_ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nfg_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Roehm
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-09-
|
12
|
+
date: 2019-09-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrap
|