首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Kendo Angular upload "multiple = false“按钮仍然显示"Select Files”

Kendo Angular upload "multiple = false“按钮仍然显示"Select Files”
EN

Stack Overflow用户
提问于 2018-03-03 00:30:32
回答 1查看 1.2K关注 0票数 0

Plunker在这里:https://plnkr.co/edit/hzH1C1ZGIdyQPcu5kokA?p=info

代码语言:javascript
复制
import { Component } from '@angular/core';

@Component({
selector: 'my-upload',
template: `
<kendo-upload
 [saveUrl]="uploadSaveUrl"
 [removeUrl]="uploadRemoveUrl"
 [multiple]="false">
</kendo-upload>
 `
})
export class UploadComponent {
uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
uploadRemoveUrl = 'removeUrl';
}

该按钮应该显示“选择文件...”因为您只能选择一个,所以我该如何更改此设置?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-03-03 16:59:12

据我所知,upload-component中不支持复数。

文本消息只是他们的默认消息。(不同的翻译可以在here找到)

但是您可以通过在kendo-upload标记中嵌套kendo-upload-messages组件来覆盖所使用的消息。(API Reference)

代码语言:javascript
复制
<kendo-upload
    ...
>
    <kendo-upload-messages
        select="Select file..."
    >
    </kendo-upload-messages>
</kendo-upload>

我还盗取了你的Plunker

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49073345

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档