跳轉到

Web 面板實作

新增外掛面板

  1. 新增檔案 panel.component.ts
  2. standalone設定為true
  3. 繼承UofxPluginPanel
  4. webpack-exposes.config.js 中新增PanelComponent
  5. 設定 panels-design.jsonpanels-runtime.json,請參考 配置設定
panel.component.ts
@Component({
  standalone: true,
  selector: 'web-panel',
  ...
})
export class PanelComponent extends UofxPluginPanel implements OnInit {
  ...
}

使用 UofxPluginPanel 內建工具

請參考 面板工具