Skip to content

Commit

Permalink
Merge branch 'hypery2k-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroabreu committed Oct 21, 2015
2 parents 18417b2 + 5bedb33 commit 2e9cb3e
Show file tree
Hide file tree
Showing 6 changed files with 548 additions and 477 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Add ion-gallery as dependency to your project

Add gallery directive with array of photos:

<ion-gallery ion-gallery-items="items"></ion-galllery>
<ion-gallery ion-gallery-items="items"></ion-gallery>

Data source example

Expand All @@ -42,14 +42,31 @@ Data source example
src:'http://www.hdwallpapersimages.com/wp-content/uploads/2014/01/Winter-Tiger-Wild-Cat-Images.jpg'
}
]

Subtitle property is optional. If no property present, nothing is showed (Same for empty string).
Supports html tags.

UI will reflect changes on the content object passed to the directive. Example of adding and removing pictures can be seen in the ionic view app.

# Config

- Via provider:

Default values in example.

```
app.config(function(ionGalleryConfigProvider) {
ionGalleryConfigProvider.setGalleryConfig({
action_label: 'Close',
toggle: false
});
});
```

- Via markup:

Markup overrides provider definitions

- ion-gallery-row: Defines number of collums to display. Default 3

<ion-gallery ion-gallery-items="items" ion-gallery-row="5"></ion-galllery>
Expand Down
Loading

0 comments on commit 2e9cb3e

Please sign in to comment.