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

Introduce onCanDeleteItem event #708

Closed
tsv2013 opened this issue Mar 20, 2020 · 0 comments
Closed

Introduce onCanDeleteItem event #708

tsv2013 opened this issue Mar 20, 2020 · 0 comments

Comments

@tsv2013
Copy link
Member

@tsv2013 tsv2013 commented Mar 20, 2020

  /**
   * The event is called before rendering a delete button in the Property Grid or in Question Editor.
   * <br/> sender the survey creator object that fires the event
   * <br/> options.obj the survey Question
   * <br/> options.item the object property (Survey.JsonObjectProperty object). It has name, className, type, visible, readOnly and other properties
   * <br/> options.canDelete a boolean value. It is true by default. Set it false to remove delete button from the Property Grid or in Question Editor
   */
  public onCanDeleteItem: Survey.Event<
    (sender: SurveyCreator, options: any) => any,
    any
  > = new Survey.Event<(sender: SurveyCreator, options: any) => any, any>();
@tsv2013 tsv2013 added the enhancement label Mar 20, 2020
@tsv2013 tsv2013 added this to the v1.5.17 milestone Mar 20, 2020
tsv2013 pushed a commit that referenced this issue Mar 20, 2020
@tsv2013 tsv2013 added the Implemented label Mar 20, 2020
@tsv2013 tsv2013 closed this Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.