Created
July 1, 2011 19:48
-
-
Save jfrolich/1059264 to your computer and use it in GitHub Desktop.
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
Soapbox.iconButton = SC.View.extend({ | |
action: "", | |
tagName: "a", | |
classNames: ["iconic", "iconbutton"], | |
classBinding: "action", | |
click: function(evt) { | |
alert("mahahah"); | |
} | |
}); |
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 type="text/html" data-template-name="menuItem"> | |
<div class="menu_item_content"> | |
{{content.title}} | |
</div> | |
<div class="buttons"> | |
{{view Soapbox.iconButton class="edit" action="pencil"}} | |
<a class="delete x-alt iconic iconbutton"></a> | |
</div> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment