Example #1
0
        public MvcHtmlString JQTimePicker(JQTimePicker timePicker, string id)
        {
            JQTimePickerRenderer jQTimePickerRenderer = new JQTimePickerRenderer(timePicker);

            timePicker.ID = id;
            return(MvcHtmlString.Create(jQTimePickerRenderer.RenderHtml()));
        }
 public JQTimePickerRenderer(JQTimePicker timePicker)
 {
     this._model            = timePicker;
     this._model.TimeFormat = timePicker.TimeFormat;
     this._timeFormat       = "{0:" + timePicker.TimeFormat + "}";
 }