retrieve a value entered in the input field of the schedule jqwidget dialog box with angular

58 Views Asked by At

I am trying to retrieve the values I enter in the input field of the scheduler dialog box with angular but I can't. Can someone help me with an example please? using console.log will be enough.

img

1

There are 1 best solutions below

3
SomeStudent On

Assuming I am reading their docs correctly, your code of appointmentAdd should probably be like

AppointmentAdd(item: any) {
  let appointment = item.args;
  //tap into what appointment has.
}

As per their description, the event has one thing only

"This event is triggered when an appointment is added. event.args contains the event's arguments. This event has one argument: appointment - Object which has the appointmentDataFields. See appointmentDataFields property."

So whatever is defined in your appointmentDataFields is what you can tap into.