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 +4 -4
- data/README.md +8 -0
- data/lib/bootstrap_builders/button_drop_down.rb +1 -1
- data/lib/bootstrap_builders/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b16250320abcfd9d1a5a1eb47b2e6ec71a1ce82
|
|
4
|
+
data.tar.gz: 429313189458ab2e8c6bb5966e98a3ff362adcfa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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]
|
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.
|
|
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-
|
|
11
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|