diff options
Diffstat (limited to 'js/dojo-1.7.2/dojox/dtl/demos/templates/gallery.html')
| -rw-r--r-- | js/dojo-1.7.2/dojox/dtl/demos/templates/gallery.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/dojo-1.7.2/dojox/dtl/demos/templates/gallery.html b/js/dojo-1.7.2/dojox/dtl/demos/templates/gallery.html new file mode 100644 index 0000000..5c9cdb8 --- /dev/null +++ b/js/dojo-1.7.2/dojox/dtl/demos/templates/gallery.html @@ -0,0 +1,16 @@ +{% load dojox.dtl.contrib.data %} +{% bind_data items to store as flickr %} +<div> + Type a tag and press enter: <input dojoAttachEvent="onkeypress: keyUp" value="beach"> + <table> + <tr> + {% for item in flickr %}<td><img src="{{ item.imageUrlThumb }}" dojoAttachEvent="onclick: selectThumbnail" class="{{ item.imageUrl }}" /></td>{% endfor %} + <td width="100%"></td> + </tr> + <tr> + <td colspan="{{ flickr|length|add:1 }}"> + {% if selected %}<img src="{{ selected }}" />{% endif %} + </td> + </tr> + </table> +</div>
\ No newline at end of file |
