-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
2,889 additions
and
1,330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"_links": { | ||
"self": { | ||
"href": "http://husky.lo:7878/admin/api/datagrid/tiles" | ||
} | ||
}, | ||
"_embedded": { | ||
"items": [ | ||
{ | ||
"id": "1", | ||
"title": "Folder title 1", | ||
"elementsCount": 100 | ||
}, | ||
{ | ||
"id": "2", | ||
"title": "Folder title 2", | ||
"elementsCount": 120 | ||
}, | ||
{ | ||
"id": "3", | ||
"title": "Folder title 3", | ||
"elementsCount": 130 | ||
}, | ||
{ | ||
"id": "4", | ||
"title": "Folder title 4", | ||
"elementsCount": 140 | ||
}, | ||
{ | ||
"id": "5", | ||
"title": "Folder title 5", | ||
"elementsCount": 150 | ||
}, | ||
{ | ||
"id": "6", | ||
"title": "Folder title 6", | ||
"elementsCount": 160 | ||
}, | ||
{ | ||
"id": "7", | ||
"title": "Folder title 7", | ||
"elementsCount": 170 | ||
}, | ||
{ | ||
"id": "8", | ||
"title": "Folder title 8 with a very very long title", | ||
"elementsCount": 180 | ||
}, | ||
{ | ||
"id": "9", | ||
"title": "Folder title 9 with an even longer title. This one is really long.", | ||
"elementsCount": 190 | ||
}, | ||
{ | ||
"id": "10", | ||
"title": "Folder title 10", | ||
"elementsCount": 200 | ||
}, | ||
{ | ||
"id": "11", | ||
"title": "Folder title 11", | ||
"elementsCount": 210 | ||
}, | ||
{ | ||
"id": "12", | ||
"title": "Folder title 12", | ||
"elementsCount": 220 | ||
}, | ||
{ | ||
"id": "13", | ||
"title": "Foldertitle12hasatitlewhichisoneword.", | ||
"elementsCount": 230 | ||
}, | ||
{ | ||
"id": "14", | ||
"title": "Foldertitle14whichisjustonewordandveryveryverylongsoithastobecropped.", | ||
"elementsCount": 230 | ||
} | ||
] | ||
}, | ||
"total": 13, | ||
"pages": 1, | ||
"page": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!doctype html> | ||
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | ||
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | ||
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | ||
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title>Datagrid demo</title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width"> | ||
<!-- Place favicon.ico and apple-touch-icon.png in the root directory --> | ||
<link rel="stylesheet" href="../../../dist/husky.css"> | ||
|
||
<style type="text/css"> | ||
#content { | ||
max-width: 1200px; | ||
margin: 0 0; | ||
padding: 0 50px; | ||
} | ||
h1 { | ||
padding: 20px 0 30px; | ||
} | ||
body { | ||
overflow: auto; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="page"> | ||
<div id="content" class="grid"> | ||
<h1>Husky Datagrid Demo | Tiles View</h1> | ||
<div id="datagrid" class="grid-row"></div> | ||
</div> | ||
|
||
<script src="../../../bower_components/jquery/jquery.js"></script> | ||
<script src="../../../bower_components/requirejs/require.js"></script> | ||
<script src="../../js/defaults.js"></script> | ||
<script src="script.js"></script> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
require.config({ | ||
baseUrl: '../../../' | ||
}); | ||
|
||
require(['lib/husky'], function(Husky) { | ||
'use strict'; | ||
|
||
var app = new Husky({debug: {enable: true}}); | ||
|
||
app.start([{ | ||
name: 'datagrid@husky', | ||
options: { | ||
el: '#datagrid', | ||
url: 'http://husky.lo:7878/admin/api/datagrid/tiles', | ||
view: 'tiles', | ||
viewOptions: { | ||
tiles: { | ||
translations: { | ||
items: 'items', | ||
addNew: 'Add folder' | ||
} | ||
} | ||
}, | ||
pagination: false, | ||
actionCallback: function(id, record) { | ||
app.logger.log('Tile with the id ' + id + ' was clicked', record); | ||
}, | ||
matchings: [ | ||
{ | ||
name: 'id' | ||
}, | ||
{ | ||
name: 'title' | ||
}, | ||
{ | ||
name: 'elementsCount', | ||
type: 'count' | ||
} | ||
] | ||
} | ||
}]); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.