import { ContextMenuItem } from "./ContextMenuItem" ; export class ContextMenu { private items : ContextMenuItem [ ] ; constructor ( items ) { this . items = items ; } render ( wrapper , done ) { this . items . forEach ( ( item ) => { wrapper . appendChild ( item . render ( document , done ) ) ; } ) ; } }