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 id="if_equals_example" type="text/x-handlebars-template"> | |
{{#if_equals objectType 'message'}} | |
<div class="message"> | |
Message | |
</div> | |
{{else}} | |
{{/if_equals}} | |
</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
<div> | |
<label for="myAnnouncement">Announcement</label> | |
<input id="myAnnouncement" type="text" /><br /> | |
<input type="button" value="Post Announcement" /> | |
</div> | |
<script type="text/javascript" > | |
// Use this to delay execution until the file sp.js has loaded. Also a good way to keep your context free of globals. | |
ExecuteOrDelayUntilScriptLoaded(function() { | |
// get announcement text |
OlderNewer