Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #104446
    Anh Hoang
    Participant

    I want to add a confirmation box before deleting, using Reactjs popover but can’t because smart scheduler is not a HTMLElement. Could you give some advise?

     

    Thanks

    #104452

    Hi,

    The first thing to do is get the delete button in the ‘editDialogOpen’ and prevent the default behaviour.
    This way the event will not be deleted upon a click.
    It is important to add the click event of the delete button with a named function because if you add an anonymous function the handler will be fired as many times as you open the dialog.
    After you have prevented the default behaviour you can open the desired confirmation modal and manipulate the scheduler with its events
    Here is an example of preventing the default behaviour in vanilla JS.
    It will be almost the same in React.js

    https://codepen.io/Svetoslav-Borislavov/pen/yLxMjqV?editors=0010

    I hope this helps, if you have any further questions, do not hesitate to contact us!

    Best Regards,
    Svetoslav Borislavov

    Smart UI Team
    https://www.htmlelements.com/

    #104454
    Anh Hoang
    Participant

    hello friend,

    thanks for your answer, but still have problem when WindowcustomizationFunction, i want to don’t show the target, already set hidden=true, but still have a header like this, how to completely delete it

    #104460
    Markov
    Keymaster

    Hi Ann,

    Did you look at React Scheduler Custom-window | Scheduler | Smart UI for ReactJS (htmlelements.com)? It shows how to customize the Scheduler’s window.

     

     

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.