나는 다음과 같은 무 클래스가 있습니다Mootools의 클래스와 JsDoc
Nem.Ui.Window = new Class({
Implements: [Options, Events],
options: {
caption: "Ventana",
icon: $empty,
centered: true,
id: $empty,
width: $empty,
height: $empty,
modal: false,
desktop: $empty,
x: $empty,
y: $empty,
layout: $empty
},
initialize: function(options)
{
this.setOptions(options);
/* ... */
},
setHtmlContents: function(content)
{
/* ... */
},
setText: function(text)
{
/* ... */
},
close: function(win)
{
/* ... */
},
/* ... */
});
내가 JsDoc으로 내용을 문서화 할을. 나는 new Class
안에 @lends [class].prototype
을 사용할 수 있으며 initialize
에는 @constructs
태그를 붙일 수 있다고 읽었습니다. 방법과 이벤트를 어떻게 표시 할 수 있습니까?
I.E .: setHtmlContents
이 방법이어야합니다. close
은 이벤트 여야합니다.
또한아래의 요소를 문서화 할 수 있습니까?
감사합니다. 고맙습니다. 감사합니다. – awm
이것은 원래의 질문에 대한 답이 아닙니다. 그것은 가장 좋은 해결 방법입니다. – Bart
자유롭게 대답 해주세요 :) –