You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A sidebar menu (*priority* option permit to put the sidebar above the filters):
103
110
104
-
```rb
111
+
```ruby
105
112
sidebar :help, priority: 0 do
106
113
ul class: 'blaze-menu' do
107
114
li do
@@ -122,7 +129,7 @@ end
122
129
### Accordion
123
130
An accordion group in aform:
124
131
125
-
```rb
132
+
```ruby
126
133
f.accordion_group do
127
134
f.accordion'First accordion' do
128
135
f.inputs for: [:detail, f.object.detail || Detail.new] do |f2|
@@ -142,13 +149,21 @@ end
142
149
### Readonly field
143
150
Some readonly fields in aform:
144
151
145
-
`f.readonly :position`
152
+
```ruby
153
+
f.readonly :position
154
+
```
146
155
147
-
`f.readonly :position, f.object.position * 2`
156
+
```ruby
157
+
f.readonly :position, f.object.position*2
158
+
```
148
159
149
-
`f.readonly 'Code', 'Automatically set after save', class: 'a-wrapper-class'`
160
+
```ruby
161
+
f.readonly'Code', 'Automatically set after save', class: 'a-wrapper-class'
162
+
```
150
163
151
-
`f.readonly nil, 'Value only, no label'`
164
+
```ruby
165
+
f.readonly nil, 'Value only, no label'
166
+
```
152
167
153
168
### Styled table
154
169
Table styles:
@@ -187,21 +202,18 @@ end
187
202
188
203
## Screenshots
189
204
Index:
190
-
191
205

192
206
193
207
Edit:
194
-
195
208

196
209
197
210
Show- sidebar on the left:
198
-
199
211

200
212
201
213
## Do you like it? Star it!
202
214
If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
203
215
204
-
Take a look at [other ActiveAdmin components](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source) that I made if you are curious.
216
+
Take a look at [other Active Admin components](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source) if you are curious.
0 commit comments