This file contains hidden or 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
<script src="//cdn.getchute.com/v1/chute.min.js" data-load="mediachooser"></script> |
This file contains hidden or 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
Chute.MediaChooser.choose(function(urls, data){ | |
// urls is an array of direct media URLs | |
// data array contains additional information about media, like dimensions | |
}); |
This file contains hidden or 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
view.collection.on('load', function(){ | |
// new data loaded | |
}); | |
view.collection.on('page', function(){ | |
// switched to another page | |
}); | |
// Switching to the next page |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Example view</title> | |
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="//s3.amazonaws.com/cdn.getchute.com/chute-js/v1/chute.min.js" data-load="view"></script> | |
<script class="editor-template" type="application/x-template"> | |
<div class="editor-view"> | |
<textarea></textarea> |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Example view</title> | |
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="//s3.amazonaws.com/cdn.getchute.com/chute-js/v1/chute.min.js" data-load="view"></script> | |
<script class="editor-template" type="application/x-template"> | |
<div class="editor-view"> | |
<textarea></textarea> |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Example view</title> | |
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="//s3.amazonaws.com/cdn.getchute.com/chute-js/v1/chute.min.js" data-load="view"></script> | |
<script class="editor-template" type="application/x-template"> | |
<div class="editor-view"> | |
<textarea></textarea> |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Example view</title> | |
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="//s3.amazonaws.com/cdn.getchute.com/chute-js/v1/chute.min.js" data-load="view"></script> | |
<script class="editor-template" type="application/x-template"> | |
<div class="editor-view"> | |
<textarea></textarea> |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Example view</title> | |
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="//cdn.getchute.com/v1/chute.min.js" data-load="view"></script> | |
</head> | |
<body> | |
</body> |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Example view</title> | |
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="//s3.amazonaws.com/cdn.getchute.com/chute-js/v1/chute.min.js" data-load="view"></script> | |
</head> | |
<body> | |
</body> |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Example view</title> | |
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="//s3.amazonaws.com/cdn.getchute.com/chute-js/v1/chute.min.js" data-load="view"></script> | |
<script> | |
Chute.ready(function(){ | |
// View component loaded |