effective_bootstrap 0.5.3 → 0.5.4

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
  SHA1:
3
- metadata.gz: 386c2ba1dfd4aee2162688fd16b987a983f5df44
4
- data.tar.gz: a659c7b4cf707a1f299f18f82b3fc5e56354a998
3
+ metadata.gz: 8224123bc10440a8cd960c788e6ae79e1d756d5d
4
+ data.tar.gz: 352ad70c20e806cd2a24c5b01542f50c5017e02d
5
5
  SHA512:
6
- metadata.gz: 694539152c7dbf0b449ce3e0c193c4baa41ded5302fda0f32dd4f711474c7ec57e9ba0534a1bc68fbef52a4df8fd12191a64ead6791f3f3e6fc9ce761b12ce1f
7
- data.tar.gz: 78c5e80b4740406b26d0ea483c89c1b53dda44c27f72dec9a60db70bdbaa93c42807b6fcc7b6307a93192078129464a00cd5fcd87d631e19c7e4c6725cb0f989
6
+ metadata.gz: d0b02d46800dff70563557caaeb1138be1ae6adfa3ac656a147b1a4fd2db1c4c2139bc3f4abbfae0cb6ac16bdddce5837fbdbd4c10ebe8f434d76c7b323ce18d
7
+ data.tar.gz: 95502f78f26eb34af3253a4c80f4b8d8dcdd0cc230318168aac248734c0e3773affbf8a86a0e109a04d34004d812a30d8596459df8782460059efeb9edcd21c9
data/README.md CHANGED
@@ -48,16 +48,17 @@ And to your `application.scss`:
48
48
 
49
49
  ## View Helpers
50
50
 
51
+ All these examples are in [haml](https://github.com/haml/haml).
52
+
51
53
  ### Collapse
52
54
 
53
55
  https://getbootstrap.com/docs/4.0/components/collapse/
54
56
 
55
57
  ```haml
56
- = collapse('Click to collapse') do
58
+ = collapse('Click to collapse/expand') do
57
59
  %p You have revealed me!
58
60
  ```
59
61
 
60
-
61
62
  ### Dropdown
62
63
 
63
64
  https://getbootstrap.com/docs/4.0/components/dropdowns/
@@ -115,6 +116,23 @@ https://getbootstrap.com/docs/4.0/components/navbar/
115
116
 
116
117
  `nav_link_to` will automatically insert the `.active` class based on the request path.
117
118
 
119
+ ### Tabs
120
+
121
+ https://getbootstrap.com/docs/4.0/components/navs/#tabs
122
+
123
+ ```haml
124
+ = tabs do
125
+ = tab 'Demographics' do
126
+ %p Demographics tab
127
+
128
+ = tab 'Orders' do
129
+ %p Orders tab
130
+
131
+ - if resource.logs.present?
132
+ = tab 'Logs' do
133
+ %p Logs tab
134
+ ```
135
+
118
136
  ## Icon Helpers
119
137
 
120
138
  Unfortunately, Bootstrap 4 dropped support for glyphicons, so we use a combination of [Inline SVG](https://github.com/jamesmartin/inline_svg), with [Feather Icons](https://feathericons.com) and [FontAwesome](https://fontawesome.com) .svg images (no webfonts) to get back this functionality, even better than it was before.
@@ -5,6 +5,8 @@ this.EffectiveBootstrap ||= new class
5
5
  $element = $(element)
6
6
  options = $element.data('input-js-options')
7
7
 
8
+ return true unless (options['method_name'] || '').length > 0
9
+
8
10
  method_name = options['method_name']
9
11
  delete options['method_name']
10
12
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.5.3'.freeze
2
+ VERSION = '0.5.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-30 00:00:00.000000000 Z
11
+ date: 2019-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails