5 "superClass": "jQuery",
6 "filename": "src/space-pen.coffee",
7 "srcUrl": "https://github.com/atom/space-pen/blob/v5.1.1/src/space-pen.coffee#L75",
13 "srcUrl": "https://github.com/atom/space-pen/blob/v5.1.1/src/space-pen.coffee#L85",
14 "visibility": "Public",
15 "summary": "Add the given subview wired to an outlet with the given name",
16 "description": "Add the given subview wired to an outlet with the given name",
20 "description": "{String} name of the subview",
26 "description": "DOM element or jQuery node subview ",
35 "srcUrl": "https://github.com/atom/space-pen/blob/v5.1.1/src/space-pen.coffee#L91",
36 "visibility": "Public",
37 "summary": "Add a text node with the given text content",
38 "description": "Add a text node with the given text content",
42 "description": "{String} text contents of the node ",
51 "srcUrl": "https://github.com/atom/space-pen/blob/v5.1.1/src/space-pen.coffee#L97",
52 "visibility": "Public",
53 "summary": "Add a new tag with the given name",
54 "description": "Add a new tag with the given name",
58 "description": "{String} name of the tag like 'li', etc",
64 "description": "other arguments ",
73 "srcUrl": "https://github.com/atom/space-pen/blob/v5.1.1/src/space-pen.coffee#L102",
74 "visibility": "Public",
75 "summary": "Add new child DOM nodes from the given raw HTML string.",
76 "description": "Add new child DOM nodes from the given raw HTML string.",
80 "description": "{String} HTML content ",
91 "srcUrl": "https://github.com/atom/space-pen/blob/v5.1.1/src/space-pen.coffee#L205",
92 "visibility": "Public",
93 "summary": "Preempt events registered with jQuery's `::on`.",
94 "description": "Preempt events registered with jQuery's `::on`.",
98 "description": "A event name {String}.",
104 "description": "A {Function} to execute when the eventName is triggered. ",
111 "classProperties": [],
112 "instanceProperties": [],
113 "visibility": "Public",
114 "summary": "View class that extends the jQuery prototype.",
115 "description": "View class that extends the jQuery prototype.\n\nExtending classes must implement a `@content` method.",
120 "code": "class Spacecraft extends View\n @content: ->\n @div =>\n @h1 'Spacecraft'\n @ol =>\n @li 'Apollo'\n @li 'Soyuz'\n @li 'Space Shuttle'",
121 "raw": "```coffee\nclass Spacecraft extends View\n @content: ->\n @div =>\n @h1 'Spacecraft'\n @ol =>\n @li 'Apollo'\n @li 'Soyuz'\n @li 'Space Shuttle'\n```"
124 "description": "Each view instance will have all the methods from the jQuery prototype\navailable on it.",
126 "code": " craft = new Spacecraft()\n craft.find('h1').text() # 'Spacecraft'\n craft.appendTo(document.body) # View is now a child of the <body> tag",
127 "raw": "```coffee\n craft = new Spacecraft()\n craft.find('h1').text() # 'Spacecraft'\n craft.appendTo(document.body) # View is now a child of the <body> tag\n```"