Home > DMT_Schematic > modifySchematicPageTitleBlock
DMT_Schematic.modifySchematicPageTitleBlock() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
修改原理图图页明细表
Signature
typescript
modifySchematicPageTitleBlock(showTitleBlock?: boolean, titleBlockData?: {
[key: string]: {
showTitle?: boolean;
showValue?: boolean;
value?: any;
};
}): Promise<boolean>;
1
2
3
4
5
6
7
2
3
4
5
6
7
Parameters
Parameter | Type | Description |
---|---|---|
showTitleBlock | boolean | (Optional) 是否显示明细表,不定义将保持当前状态 |
titleBlockData | { [key: string]: { showTitle?: boolean; showValue?: boolean; value?: any; }; } | (Optional) 需要修改的明细项及其修改的值 |
Returns
Promise<boolean>
修改操作是否成功,如若未传入 showTitleBlock
和 titleBlockData
将返回 false
;请注意,如若存在无法识别的明细项但程序并未出错,将返回 true
的结果,因为无法识别的明细项被忽略
Remarks
titleBlockData
仅需要传入任何需要修改的明细项作为 key
,并传入其需要修改的值,任何无法识别的明细项将被忽略,任何未传入的项和值将保持默认状态