modify relationships to support external links
This commit is contained in:
@ -13,10 +13,13 @@ export type RelationshipType =
|
||||
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer"
|
||||
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"
|
||||
| "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"
|
||||
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties";
|
||||
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"
|
||||
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
|
||||
|
||||
export type TargetModeType = "External";
|
||||
|
||||
export class Relationship extends XmlComponent {
|
||||
constructor(id: string, type: RelationshipType, target: string) {
|
||||
constructor(id: string, type: RelationshipType, target: string, targetMode?: TargetModeType) {
|
||||
super("Relationship");
|
||||
|
||||
this.root.push(
|
||||
@ -24,6 +27,7 @@ export class Relationship extends XmlComponent {
|
||||
id,
|
||||
type,
|
||||
target,
|
||||
targetMode,
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user