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
// change "scene_1" to the scene you want to listen for | |
$(document).on('knack-scene-render.scene_1', function(event, scene) { | |
// handle scene | |
// scene is a json object of the scene | |
alert('listener for scene: ' + scene.key); | |
}); |
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
// change "view_1" to the view you want to listen for | |
$(document).on('knack-view-render.view_1', function(event, view, data) { | |
// handle view | |
// view is a json object of the view | |
// records is an array of json objects of the records currently visible | |
alert('listener for view: ' + view.key); | |
}); |
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
"<h1>I'm a title</h1><p>I'm some <strong>bold</strong> text</p>" |
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
{ | |
"date":"02/08/2013", | |
"to":{ | |
"date":"02/11/2013" | |
}, | |
"all_day":true | |
} |
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
{ | |
"times":[ | |
{ | |
"from":{ | |
"date":"02/09/2013", | |
"hours":"04", | |
"minutes":"45", | |
"am_pm":"PM" | |
}, | |
"to":{ |
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
{ | |
"hours":2, | |
"minutes":0, | |
"am_pm":"pm" | |
} |
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
{ | |
"url":"http://www.knackhq.com", | |
"label":"Knack" | |
} |
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
[ | |
"female", | |
"male" | |
] |
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
{ | |
"email":"brandon@knackhq.com", | |
"label":"Brandon" | |
} |
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
{ | |
"street":"180 W 71st St", | |
"street2":"Apt 11", | |
"city":"New York", | |
"state":"NY", | |
"zip":"10023" | |
} |