Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/docxml/src/utilities/components.ts>createChildComponentsFromNodes

TypeScript (component) library for building and parsing a DOCX file
Go to Latest
function createChildComponentsFromNodes
import { createChildComponentsFromNodes } from "https://deno.land/x/docxml@5.15.0/src/utilities/components.ts";

Transforms a list of (OOXML) XML nodes to component instances based on a list of possible component names. The component names must have been registered before using registerComponent.

This is useful for instantiating the children of a component based on an existing DOCX file.

Type Parameters

T extends AnyComponent | string

Parameters

names: string[]
nodes: Node[]