inject() 函式
將 Blockly 編輯器插入指定的容器元素 (通常是 div)。
Signature:
export declare function inject(container: Element | string, opt_options?: BlocklyOptions): WorkspaceSvg;
參數
參數 | 類型 | 說明 |
---|---|---|
容器 | 元素 | 字串 | 包含元素、素材資源的 ID 或 CSS 選取器。 |
opt_options | BlocklyOptions | (選用) 選用的字典字典。 |
傳回:
新建的主要工作區。