rails_accordion 0.1.5.pre.beta → 0.1.6.pre.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -11
- data/lib/rails_accordion/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ea3fe333f60ade1175aa01c95276b51dfc63926872b0796986a8f45b2f7d1bc
|
4
|
+
data.tar.gz: e74020dbf76050ee024f7220164289578ded3a57bfc41f89a8d05f0726091855
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15d0ebc7d8fb88b0b70c25b5f4f97537c62e9a845342cffcaba296e39eac0b205c3feeef9d9b1e1f74bdfd8227d513c7107f8e5e217b1baa26a7f85a8c971763
|
7
|
+
data.tar.gz: 885ad23a42b4bdbc3f841f5d33901742e7fa1b6ba74f74934394cccdde3e8ebe51d8e7cbd1d0188e314a196a2fae86bd928debdc629643921c050c54c72b127b
|
data/README.md
CHANGED
@@ -1,24 +1,35 @@
|
|
1
1
|
# RailsAccordion
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rails_accordion`. To experiment with that code, run `bin/console` for an interactive prompt.
|
3
|
+
rails_accordion is a Ruby gem that provides an easy-to-use accordion component for use in Rails web applications. With this gem, developers can create collapsible sections of content that can be expanded or collapsed with a single click. The accordion is a great way to improve the user experience of your web application, by providing a clean and intuitive way to display complex information.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
7
|
+
```rb
|
8
|
+
gem 'rails_accordion'
|
9
|
+
```
|
14
10
|
|
15
|
-
|
11
|
+
```bash
|
12
|
+
bundle install
|
13
|
+
```
|
16
14
|
|
17
|
-
|
15
|
+
```bash
|
16
|
+
rails generate rails_accordion:install
|
17
|
+
```
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
```erb
|
22
|
+
<%= accordion class: "bg-white rounded-xl overflow-auto", data: {controller: "tooltip"} do %>
|
23
|
+
<%= accordion_item do |item| %>
|
24
|
+
<% item.header do %>
|
25
|
+
Hello world
|
26
|
+
<% end %>
|
27
|
+
<% item.body do %>
|
28
|
+
Hello accordion body
|
29
|
+
<% end %>
|
30
|
+
<% end %>
|
31
|
+
<% end %>
|
32
|
+
```
|
22
33
|
|
23
34
|
## Development
|
24
35
|
|