Web 面板實作
新增外掛面板¶
- 新增檔案 panel.component.ts。
standalone
設定為true
。- 繼承
UofxPluginPanel
。 - 在 webpack-exposes.config.js 中新增
PanelComponent
。 - 設定 panels-design.json 與 panels-runtime.json,請參考 配置設定。
panel.component.ts
@Component({
standalone: true,
selector: 'web-panel',
...
})
export class PanelComponent extends UofxPluginPanel implements OnInit {
...
}
使用 UofxPluginPanel 內建工具¶
請參考 面板工具。