Skip to content

Instantly share code, notes, and snippets.

@qoobaa
Created June 24, 2011 18:26
Show Gist options
  • Save qoobaa/1045363 to your computer and use it in GitHub Desktop.
Save qoobaa/1045363 to your computer and use it in GitHub Desktop.
YUI.add "card", (Y) ->
Card = Y.Base.create "card", Y.Widget, [Y.WidgetChild],
BOUNDING_TEMPLATE: "<li></li>"
CONTENT_TEMPLATE: "<div></div>"
renderUI: ->
@_renderCard()
_renderCard: ->
@get("contentBox").appendChild('<div></div>')
,
ATTRS:
card:
validator: Y.Lang.isString
Y.namespace("Bridge").Card = Card
, "", { require: ["widget", "widget-child"] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment