This is a migrated thread and some comments may be shown as answers.

Spreadsheet for Vuejs, adding tab in tabstrip

2 Answers 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Braulio
Top achievements
Rank 1
Braulio asked on 20 Apr 2020, 05:44 PM

I want to add a tab on the tabstrip in the Spreadsheet component. I have done so by adding this line of code to the toolbar attribute 

<spreadsheet ref="spreadsheet"
:toolbar="toolbar"

Where toolbar is a value in data that looks like 

toolbar = {
'custom': [
// for all available options, see the toolbar items configuration
// https://docs.telerik.com/kendo-ui/api/javascript/ui/toolbar/configuration/items
{
type: "button",
text: "Save",
showText: "both",
icon: "k-icon k-i-save",
click: function() {
      // Some code
}
},

However, this new tab shows up with the name 'undefined', next to the other tabs. Is there some way to give it a proper name? 

2 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 22 Apr 2020, 10:49 AM

Hello Braulio,

The tab's name can be altered only by changing the DOM. Here you are an example: https://stackblitz.com/edit/h6sqzp?file=index.js

Regards,
Ianko
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Braulio
Top achievements
Rank 1
answered on 23 Apr 2020, 08:59 PM
That's exactly what I needed, thanks!
Tags
General Discussions
Asked by
Braulio
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Braulio
Top achievements
Rank 1
Share this question
or