我在我们的应用程序中使用Kendo UI DatePicker控件,我想删除应用于触发datepicker显示输入的样式。Kendo UI DatePicker,删除输入样式
当我初始化我的日期选择器是这样的:
$('.datepicker').kendoDatePicker();
的.datepicker
元件,其是一个input type='text'
是由一些元件包裹,使得小日历图标就会出现。
<span class="k-widget k-datepicker k-header form__field box__filterlight__field datepicker">
<span class="k-picker-wrap k-state-default">
<input placeholder="from" class="form__field box__filterlight__field datepicker k-input" data-role="datepicker" type="text" role="combobox" aria-expanded="false" aria-disabled="false" aria-readonly="false" style="width: 100%;" aria-activedescendant="8beab73f-332b-45a7-8f0b-4a6c3faafcd6_cell_selected">
<span unselectable="on" class="k-select" role="button">
<span unselectable="on" class="k-icon k-i-calendar">select</span>
</span>
</span>
</span>
但我想完全控制它,只是有日历的样式。理想情况下禁用包装Kendo UI会这样做标记将保持如下状态:
<input placeholder="from" class="form__field box__filterlight__field datepicker k-input" data-role="datepicker" type="text" role="combobox" aria-expanded="false" aria-disabled="false" aria-readonly="false" style="width: 100%;" aria-activedescendant="8beab73f-332b-45a7-8f0b-4a6c3faafcd6_cell_selected">
有没有办法做到这一点?我看了看文档,似乎没有办法禁用包装。
如果我们手动删除包装,没有办法禁用包装,那么可能有些功能不可行。 –