pinski121
pinski121

Reputation: 21

Kendo Angular upload "multiple = false" and the button still says "Select Files"

Plunker here: https://plnkr.co/edit/hzH1C1ZGIdyQPcu5kokA?p=info

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';
}

The button should really say "Select file..." because you can only select one, so how would I change this?

Upvotes: 0

Views: 1908

Answers (1)

Philipp
Philipp

Reputation: 1884

As far as i know there is no support for pluralization in the upload-component.

The text Select files... is just their default-message. (Different translations can be found here)

But you can override the used message(s) by nesting the kendo-upload-messages component within the kendo-upload tag. (API Reference)

<kendo-upload
    ...
>
    <kendo-upload-messages
        select="Select file..."
    >
    </kendo-upload-messages>
</kendo-upload>

I've also forked your Plunker.

Upvotes: 6

Related Questions