bootstrap_builders 0.0.36 → 0.0.37

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: 4571e92b44351b95c299f60199ae1737a88b83d0
4
- data.tar.gz: 8e10bc455d5a0ed5cd63b77971d3a6db934b028f
3
+ metadata.gz: 8b16250320abcfd9d1a5a1eb47b2e6ec71a1ce82
4
+ data.tar.gz: 429313189458ab2e8c6bb5966e98a3ff362adcfa
5
5
  SHA512:
6
- metadata.gz: 123d8be3ff044d9d0f4677203a4581616ed5315518ced3f908f3d9a396df1cad76caf90326b313f6b35c967b0c0a3c97d913daec191509032aa630ba27b8963a
7
- data.tar.gz: 25351832e0a318d5fedce2761d1fbbb88130f77da77de21fcf867416fe966b1273e5692e85f15b391d2980654c51d3d9506af9dcca6d5327399f5052480b4c10
6
+ metadata.gz: 5c7858b756d52a4f91cd91ad7302d1415cdc739583715c5c6583c9a3566ef103f979084b299b0ff83004feb3f3e1d1a4733399bdc12d4adabfd2b3836fed1698
7
+ data.tar.gz: 86bee7d9cbe63c85d61d2b83505bdc07bad4bba9bf7100f8d0392f3c1d17f1e722288e1f4bbd4fb15d653854349a6337bd7ac184ab787badaad1074dc9a4e0a7
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # BootstrapBuilders
2
2
 
3
+ The following examples are shown in HAML syntax but the project can of course be used with ERB and Slim as well.
4
+
3
5
  ## Install
4
6
 
5
7
  Add to your Gemfile and bundle:
@@ -77,6 +79,12 @@ You can add custom classes like this:
77
79
  %td Test
78
80
  ```
79
81
 
82
+ You can make the panel collapsed with the title functioning as the open toggle like this:
83
+ ```haml
84
+ = bb_panel "Title", :collapsable, :collapsed do
85
+  Content
86
+ ```
87
+
80
88
  ### Table
81
89
 
82
90
  1. Adds Bootstrap classes: "table", "table-hover", "table-striped"
@@ -51,7 +51,7 @@ class BootstrapBuilders::ButtonDropDown
51
51
  a_href = li.add_ele(:a, attr: {href: url}, classes: BootstrapBuilders::ClassAttributeHandler.short(button[:class]))
52
52
 
53
53
  a_href.data[:confirm] = I18n.t("are_you_sure") if button[:confirm]
54
- a_href.data[:method] = button[:method]
54
+ a_href.data[:method] = button[:method] if button[:method].present?
55
55
  a_href.data.merge!(button[:data]) if button[:data]
56
56
 
57
57
  if button[:icon]
@@ -1,3 +1,3 @@
1
1
  module BootstrapBuilders
2
- VERSION = "0.0.36".freeze
2
+ VERSION = "0.0.37".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_builders
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.36
4
+ version: 0.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaspernj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-07 00:00:00.000000000 Z
11
+ date: 2017-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails