How to use the @hpcc-js/other.PropertyEditor function in @hpcc-js/other

To help you get started, we’ve selected a few @hpcc-js/other 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 hpcc-systems / Visualization / packages / composite / src / Dermatology.ts View on Github external
constructor() {
        super();

        this._toolbar = new Toolbar()
            .title("Dermatology")
            ;
        this._propEditor = new PropertyEditor()
            .show_settings(true)
            ;
    }
github hpcc-systems / Visualization / packages / marshaller / src / dashy.ts View on Github external
private _tabRHS = new TabPanel();
    private _splitData = new SplitPanel();
    private _dataProperties: PropertyEditor = new PropertyEditor()
        .show_settings(false)
        .showFields(false)
        ;
    private _preview = new DatasourceTable();
    private _vizProperties: PropertyEditor = new PropertyEditor()
        .show_settings(false)
        .showFields(false)
        ;
    private _paletteProperties: PropertyEditor = new PropertyEditor()
        .show_settings(false)
        .showFields(false)
        ;
    private _stateProperties: PropertyEditor = new PropertyEditor()
        .show_settings(false)
        .showFields(false)
        ;
    private _cloneEC: ElementContainer = new ElementContainer();
    private _clone: Dashboard = new Dashboard(this._cloneEC).hideSingleTabs(true);
    private _fileOpen;

    constructor() {
        super("horizontal");
    }

    clear() {
        this._elementContainer.clear();
        this.loadDashboard().then(() => {
            this._elementContainer.refresh();
        });
github hpcc-systems / Visualization / demos / gallery / src-umd / playground.js View on Github external
function App(path) {
            var _this = _super.call(this) || this;
            _this._editor = new codemirror_1.JSEditor()
                .on("changes", function (changes) {
                _this.changed(_this._editor);
            });
            _this._propEditor = new other_1.PropertyEditor();
            _this._demo = new DemoWidget_js_1.DemoWidget()
                .on("changed", function (widget) {
                _this.changed(_this._demo);
            });
            _this._propEditor.monitor(function (id, newValue, oldValue, source) {
                _this.changed(_this._propEditor);
            });
            window["cm_editor"] = _this._editor;
            _this.addWidget(_this._demo, '<div>');
            _this.addWidget(_this._propEditor, "Properties", "split-right", _this._demo);
            _this.addWidget(_this._editor, "JavaScript", "split-bottom", _this._demo);
            return _this;
        }
        App.prototype.load = function (fileName) {</div>