close

Hides the opened calendar or time view popup, depending on the string passed as argument. If the popups are not opened the method does not do anything.
Available string are:

  • calendar - hides the opened calendar popup
  • timeview - hides the opened time view popup

<input id="picker" ></input>

<script type="text/javascript">
    $(function () {
        $("#picker").shieldTimePicker({
        });
    });

    $("#picker").swidget().close("calendar"); // hide the calendar popup if it is opened.
    $("#picker").swidget().close("timeview"); // hide the time view popup if it is opened.

</script>