Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to call or override dwv onSate, onRedo, onUndo, onToggle #92

Closed
Code-N-K opened this issue May 14, 2019 · 3 comments
Closed

How to call or override dwv onSate, onRedo, onUndo, onToggle #92

Code-N-K opened this issue May 14, 2019 · 3 comments
Labels
question Further information is requested
Milestone

Comments

@Code-N-K
Copy link

Kindly provide details onSate, onRedo, onUndo, onToggle can be used in angular so a more use full control can be made.

@ivmartel ivmartel added the question Further information is requested label May 15, 2019
@ivmartel ivmartel added this to the 0.3.0 milestone May 15, 2019
@ivmartel
Copy link
Owner

For the onRedo and onUndo, check out how it is done in dwv-jqmobile, the gui (appgui.js#L185) has buttons for it.
I'm not sure what you mean by onSate and onToggle.

@Code-N-K
Copy link
Author

Code-N-K commented May 15, 2019

I am talking about the toggle information and onRedo, onUndo functionalities of jquery.

ivmartel

The tools and their events

  redoDraw(): void {
    if (this.dwvApp) {
      this.dwvApp.onRedo();
    }
    else {
      alert("Not Redo");
    }
  }

  undoDraw(): void {
    if (this.dwvApp) {
      this.dwvApp.onUndo();
    }
    else {
      alert("No Undo")
    }
  }

  showInfo(): void {
    if (this.dwvApp) {
      alert("toggle");
      this.dwvApp.toggleInfoLayerDisplay(); //toggleInfoLayerDisplay
    }
    else {
      alert("No Undo")
    }
  }

These events are not working.

@ivmartel ivmartel modified the milestones: 0.3.0, 0.4.0 May 21, 2019
@ivmartel
Copy link
Owner

I created two issues: #137 for the toggle and #136 for the undo/redo. Check progress there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants