One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| // Copy the function below to use in your scripts. | |
| function createWidget() { | |
| const widget = new ListWidget() | |
| const wrap = (view, isWidget) => { | |
| let wrapped | |
| const wrapWith = (key, exec) => [key, (...args) => (exec(...args), wrapped)] | |
| wrapped = Object.fromEntries(Object.keys(view).map(key => { | |
| if (typeof view[key] === "function") { | |
| if (key.startsWith("add")) return wrapWith(key, (...args) => { | |
| let cb |
| using System; | |
| using System.IO; | |
| using Microsoft.Win32.SafeHandles; | |
| using System.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| namespace Test | |
| { |