Skip to content

Commit

Permalink
Merge pull request #14 from deltanet/issue/#13
Browse files Browse the repository at this point in the history
fixes #13 add _canCycleThroughPagination
  • Loading branch information
dancgray authored Oct 7, 2016
2 parents 0e69494 + 7b76aa1 commit f5e17ff
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ The attributes listed below are used in *components.json* to configure **Hotgrid

**_columns** (number): This value determines the number of columns within the grid. Any number of columns can be set however keep in mind the more columns there are the smaller the items will be.

**_canCycleThroughPagination** (boolean): If set to 'true', learner can cycle through items.

Hotgrid has a dynamic layout system. If you have 5 items but set the columns to 3, hotgrid will put 3 items in the first row and 2 on the second. The second row then will be automatically centred. This works with any amount of items and columns - ie that last row will always be centred for you.

**_items** (string): Multiple items may be created. Each item represents one grid item for this component and contains values for **title**, **body**, **_graphic** and **_itemGraphic**.
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adapt-hotgrid-audio",
"version": "2.0.7",
"version": "2.0.8",
"framework": "^2.0.4",
"homepage": "https://github.com/deltanet/adapt-hotgrid-audio",
"displayName": "Hotgrid Audio",
Expand Down
3 changes: 2 additions & 1 deletion example.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"body":"Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis.",
"instruction":"",
"_columns":3,
"_canCycleThroughPagination": true,
"_items": [
{
"title": "Grid Item 1",
Expand Down Expand Up @@ -78,4 +79,4 @@

"_hotgrid": {
"ariaRegion": "This component contains selectable grid items. Select an item to trigger a popup that includes an image with display text. Select the close button to close the popup."
}
}
9 changes: 9 additions & 0 deletions properties.schema
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@
"validators": ["number"],
"help": "This value determines the number of columns within the grid. Any number of columns can be set however keep in mind the more columns there are the smaller the items will be."
},
"_canCycleThroughPagination": {
"type":"boolean",
"required":true,
"default": true,
"title": "Item pagination",
"inputType": { "type": "Boolean", "options": [false, true]},
"validators": [],
"help": "If set to 'true', learner can cycle through items"
},
"_items": {
"type":"array",
"required":true,
Expand Down

0 comments on commit f5e17ff

Please sign in to comment.