jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Appointment add Appointment add #87602

    cristian.mendoza
    Participant

    In the example there is a way to add a custom button, maybe i can replace the default save function. But the custom button doesn’t take “event.args.appointment”, where all the info the user has introduced is.

    $(‘#scheduler’).on(‘editDialogCreate’, function (event) {
    var args = event.args;
    var dialog = args.dialog;
    var fields = args.fields;
    var appointment = args.appointment;

    saveButton = $(“<button style=’margin-left: 5px; float:right;’>Save</button>”);
    console.log(fields.buttons);
    fields.buttons.append(saveButton);
    console.log(fields.buttons);
    saveButton.jqxButton({ theme: this.theme });

    saveButton.click(function () {
    /**
    * In this part the appointment is null, because is taking the object when the dialog was created
    */
    console.log(appointment);
    });
    });


    cristian.mendoza
    Participant

    Good morning, is there a way to validate when I try to save an appointment? I found this example https://www.jseditor.io/?key=scheduler-edit-dialog-validations but it only displays the message, doesn’t stops me when i don’t fill the required fields.

Viewing 2 posts - 1 through 2 (of 2 total)