Kendo ui 隐藏剑道上传按钮

Kendo ui 隐藏剑道上传按钮,kendo-ui,kendo-upload,Kendo Ui,Kendo Upload,我想隐藏剑道上传的“上传文件”按钮,因为我使用自定义按钮上传文件 我已经在剑道上传的选择文件上写了代码 function onSelect() { $('.k-upload-selected').css("display", "none"); } 我也尝试了以下css .k-upload-selected{ display: none; } 但是上传按钮还在那里 请帮助我..隐藏: $('.k-upload-selected').css('visibility', 'hidd

我想隐藏剑道上传的“上传文件”按钮,因为我使用自定义按钮上传文件

我已经在剑道上传的选择文件上写了代码

function onSelect() {
    $('.k-upload-selected').css("display", "none");
}
我也尝试了以下css

.k-upload-selected{
    display: none;
}
但是上传按钮还在那里

请帮助我..

隐藏:

$('.k-upload-selected').css('visibility', 'hidden');
完全移除

$('.k-upload-selected').remove();

您只需使用

$(.k-button.k-upload-button”).css(“可见性”、“隐藏”)


在初始化小部件之后

如果使用剑道进行角度调整,则需要将组件中的封装设置为视图封装。无

@Component({
    selector: 'upload-selector',
    templateUrl: 'upload.component.html',
    styleUrls: ['upload.css'],
    encapsulation: ViewEncapsulation.None
})
您只需使用

<style>
  .k-clear-selected, .k-upload-selected{
    display: none !important;
  }
</style>

.k-clear-selected、.k-upload-selected{
显示:无!重要;
}