How to use the etch.update function in etch

To help you get started, we’ve selected a few etch 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 appcelerator / atom-appcelerator-titanium / lib / ui / newProjectDialog.jsx View on Github external
submit() {
		if (!this.state.submitButtonEnabled) {
			return;
		}
		this.state.executing = true;
		this.opts.callback && this.opts.callback(this.project);
		etch.update(this);
	}
github wonderunit / storyboarder / src / js / window / scene-timeline-view.js View on Github external
async update (props, children) {
    if (props.scale != null) this.scale = props.scale
    if (props.kind != null) this.kind = props.kind
    if (props.mini != null) this.mini = props.mini
    this.children = children

    await etch.update(this)

    this.forceChildrenUpdate()
  }
github mehcode / linter-ui-plus / lib / panel.js View on Github external
didBlur () {
    this._hasFocus = false

    etch.update(this)
  }
github atom / find-and-replace / spec / project-find-view-spec.js View on Github external
await searchPromise;

        const resultsPaneView1 = atom.views.getView(getExistingResultsPane());
        const pane1 = atom.workspace.getCenter().getActivePane();
        const resultsView1 = pane1.getItems()[0].refs.resultsView
        pane1.splitRight({copyActiveItem: true});

        const pane2 = atom.workspace.getCenter().getActivePane();
        const resultsView2 = pane2.getItems()[0].refs.resultsView
        const resultsPaneView2 = atom.views.getView(pane2.itemForURI(ResultsPaneView.URI));
        expect(pane1).not.toBe(pane2);
        expect(resultsPaneView1).not.toBe(resultsPaneView2);
        simulateResizeEvent(resultsView2.element);

        await etch.update(resultsView1);
        await etch.update(resultsView2);
        await waitForSearchResults();

        const resultCount = resultsPaneView1.querySelectorAll('.match-row').length;
        expect(resultCount).toBeGreaterThan(0);
        expect(resultsPaneView2.querySelectorAll('.match-row')).toHaveLength(resultCount);
        expect(resultsPaneView2.querySelector('.preview-count').innerHTML).toEqual(resultsPaneView1.querySelector('.preview-count').innerHTML);
      });
github atom / find-and-replace / lib / project / results-pane.js View on Github external
decrementTrailingContextLines() {
    this.refs.resultsView.decrementTrailingContextLines();
    etch.update(this);
  }
github atom / github / lib / views / debugger-view.js View on Github external
update(props) {
    this.props = props;
    etch.update(this);
  }
github atom / github / lib / views / file-patch-view.js View on Github external
togglePatchSelectionMode() {
    this.selection.toggleMode();
    return etch.update(this);
  }
github lukemurray / data-atom / lib / views / table-view.js View on Github external
update(props, children) {
    this.state.columns = props.columns;
    this.state.rows = props.rows;
    return etch.update(this);
  }
github appcelerator / atom-appcelerator-titanium / lib / ui / toolbar.jsx View on Github external
async LoginDetails() {
		const session = await Appc.getCurrentSession();
		const orgName = await Appc.session().org_name;

		if (session) {
			this.loginDetails = `${session.firstname} ${session.lastname} \n${orgName}`;
		} else {
			this.loginDetails = 'No user logged in';
		}
		etch.update(this);
	}

etch

Perform virtual DOM updates based on changes to a data model.

MIT
Latest version published 4 years ago

Package Health Score

51 / 100
Full package analysis