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
{{ message }}
This repository was archived by the owner on Aug 5, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+41-3Lines changed: 41 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -268,7 +268,7 @@ $('.bellows').bellows({
268
268
269
269
## Methods
270
270
271
-
### Open
271
+
### open
272
272
273
273
Open the selected bellows item by element reference
274
274
@@ -282,7 +282,15 @@ or by index
282
282
$bellows.bellows('open', 1);
283
283
```
284
284
285
-
### Close
285
+
### openAll
286
+
287
+
Opens all the bellows items
288
+
289
+
```js
290
+
$bellows.bellows('openAll');
291
+
```
292
+
293
+
### close
286
294
287
295
Close the selected bellows item by element reference
288
296
@@ -296,7 +304,37 @@ or by index
296
304
$bellows.bellows('close', 1);
297
305
```
298
306
299
-
### Add
307
+
### closeAll
308
+
309
+
Closes all the bellows items
310
+
311
+
```js
312
+
$bellows.bellows('closeAll');
313
+
```
314
+
315
+
### toggle
316
+
317
+
Toggle the selected bellows item by element reference
318
+
319
+
```js
320
+
$bellows.bellows('toggle', $('.bellows__item'));
321
+
```
322
+
323
+
or by index
324
+
325
+
```js
326
+
$bellows.bellows('toggle', 1);
327
+
```
328
+
329
+
### toggleAll
330
+
331
+
Toggles all the bellows items
332
+
333
+
```js
334
+
$bellows.bellows('closeAll');
335
+
```
336
+
337
+
### add
300
338
301
339
Adds new items to bellows, and correctly wraps their content elements. Optional third parameter allows you to replace all existing elements with the ones specified.
0 commit comments