MCPcopy Create free account
hub / github.com/UI5/webcomponents / _submitClick

Method _submitClick

packages/main/src/DateTimePicker.ts:385–394  ·  view source on GitHub ↗

* Handles clicking on the `submit` button, within the picker`s footer.

()

Source from the content-addressed store, hash-verified

383 * Handles clicking on the `submit` button, within the picker`s footer.
384 */
385 _submitClick() {
386 const selectedDate = this.getSelectedDateTime();
387
388 const value = this.getValueFormat().format(selectedDate);
389 if (this.value !== value) {
390 this._updateValueAndFireEvents(value, true, ["change", "value-changed"]);
391 }
392
393 this._togglePicker();
394 }
395
396 /**
397 * Handles clicking on the `cancel` button, within the picker`s footer,

Callers

nothing calls this directly

Calls 5

getSelectedDateTimeMethod · 0.95
getValueFormatMethod · 0.95
_togglePickerMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected