Skip to content

Commit 060693c

Browse files
author
Tom
authored
Add dataEncodedField option
Allow for the `encoded` property to be set on an item when configured from a data source
1 parent b1abd6b commit 060693c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/kendo.tabstrip.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ var __meta__ = { // jshint ignore:line
412412
refresh: function(e) {
413413
var that = this,
414414
options = that.options,
415+
encoded = kendo.getter(options.dataEncodedField),
415416
text = kendo.getter(options.dataTextField),
416417
content = kendo.getter(options.dataContentField),
417418
contentUrl = kendo.getter(options.dataContentUrlField),
@@ -438,6 +439,10 @@ var __meta__ = { // jshint ignore:line
438439
text: text(view[idx])
439440
};
440441

442+
if (options.dataEncodedField) {
443+
tab.encoded = encoded(view[idx]);
444+
}
445+
441446
if (options.dataContentField) {
442447
tab.content = content(view[idx]);
443448
}
@@ -543,6 +548,7 @@ var __meta__ = { // jshint ignore:line
543548

544549
options: {
545550
name: "TabStrip",
551+
dataEncodedField: "",
546552
dataTextField: "",
547553
dataContentField: "",
548554
dataImageUrlField: "",

0 commit comments

Comments
 (0)