haha 우연히 저도 정확히 같은 부분을 보고 있었어요. 가장 좋은 방법은 hamburger-menu 위젯을 다시 열고(reopen) html 메서드를 오버라이드하는 거라고 생각해요.
unshift를 사용해 제 위젯을 faq 항목 앞에 추가할 거예요. 실제로 동작하는지는 확인하지 않았지만, 제 접근 방식은 이거예요 ![]()
여기서는 잘 동작하는 것 같아요
api.reopenWidget("hamburger-menu", {
html() {
let conti = this.panelContents()
conti.unshift(h('div',[h('span','blabla description: '),this.attach('widget-dropdown',
{id: "from", translatedLabel: "bla",onChange: "changeaction",
content: [
{ id: 1, label: "foo.bar" },
{ id: 2, translatedLabel: "FooBar" },
{ id: 3, label: "foo.baz", icon: "times" },
{ id: 4, html: "<b>foo</b>" },
],
options: {bodyClass: "lang-drop-body"}
})]))
return this.attach("menu-panel", {
contents: () => conti,
maxWidth: this.settings.maxWidth
});
},
});
예시로 드롭다운을 하나 추가했어요.
감사합니다