瀏覽代碼

Custom component reference id OptionsTopBarButton typing (#6053)

Add id property to Button component interface
jarnove 5 年之前
父節點
當前提交
60463729e5
No account linked to committer's email address
共有 1 個檔案被更改,包括 7 行新增0 行删除
  1. 7
    0
      lib/src/interfaces/Options.ts

+ 7
- 0
lib/src/interfaces/Options.ts 查看文件

327
    * Set the button as a custom component
327
    * Set the button as a custom component
328
    */
328
    */
329
   component?: {
329
   component?: {
330
+    /**
331
+     * Component reference id, Auto generated if empty
332
+     */
333
+    id?: string;
334
+    /**
335
+     * Name of your component
336
+     */
330
     name: string;
337
     name: string;
331
     /**
338
     /**
332
      * Properties to pass down to the component
339
      * Properties to pass down to the component