How to use the open.add function in open

To help you get started, we’ve selected a few open examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github silentbalanceyh / vertx-ui / src / economy / actor / Fx / Fx.Init.Op.js View on Github external
const initOpen = (options = {}, ref) => {
    const opts = _initOpt(options, 'op.open');
    const buttons = [];
    if (opts['open.add']) {
        const button = _initButton(opts, 'open.add', 'openAdd');
        button.onClick = Event.rxAddTab(ref);
        buttons.push(button);
    }
    if (opts['open.filter']) {
        const button = _initButton(opts, 'open.filter', 'openFilter');
        button.onClick = Event.rxClean(ref);
        buttons.push(button);
    }
    return buttons;
};
const initBatch = (options = {}) => {

open

Open stuff like URLs, files, executables. Cross-platform.

MIT
Latest version published 8 months ago

Package Health Score

79 / 100
Full package analysis