messages.viewsObject
The configuration of the Gantt view messages. Use this option to customize or localize the Gantt view messages.
Example
<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
dataSource: [
{ id: 1, title: "Task 1", start: new Date("2023/1/1"), end: new Date("2023/1/5") }
],
messages: {
views: {
day: "Daily View",
week: "Weekly View",
month: "Monthly View",
year: "Yearly View"
}
}
});
</script>
messages.views.dayString(default: "Day")
The text similar to "Day" displayed as Gantt "day" view title.
Example
<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
dataSource: [{
id: 1,
orderId: 0,
parentId: null,
title: "Task1",
start: new Date("2014/6/17 9:00"),
end: new Date("2014/6/17 11:00")
}],
messages: {
views: {
day: "Day view"
}
}
});
</script>
messages.views.endString(default: "End")
The text similar to "End" displayed in Gantt resize hint.
Example
<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
dataSource: [{
id: 1,
orderId: 0,
parentId: null,
title: "Task1",
start: new Date("2014/6/17 9:00"),
end: new Date("2014/6/17 11:00")
}],
messages: {
views: {
end: "Task End"
}
}
});
</script>
messages.views.monthString(default: "Month")
The text similar to "Month" displayed as Gantt "month" view title.
Example
<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
dataSource: [{
id: 1,
orderId: 0,
parentId: null,
title: "Task1",
start: new Date("2014/6/17 9:00"),
end: new Date("2014/6/17 11:00")
}],
messages: {
views: {
month: "Month view"
}
}
});
</script>
messages.views.startString(default: "Start")
The text similar to "Start" displayed in Gantt resize hint.
Example
<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
dataSource: [{
id: 1,
orderId: 0,
parentId: null,
title: "Task1",
start: new Date("2014/6/17 9:00"),
end: new Date("2014/6/17 11:00")
}],
messages: {
views: {
start: "Task Start"
}
}
});
</script>
messages.views.weekString(default: "Week")
The text similar to "Week" displayed as Gantt "week" view title.
Example
<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
dataSource: [{
id: 1,
orderId: 0,
parentId: null,
title: "Task1",
start: new Date("2014/6/17 9:00"),
end: new Date("2014/6/17 11:00")
}],
messages: {
views: {
week: "Week view"
}
}
});
</script>
messages.views.yearString(default: "Year")
The text similar to "Year" displayed as Gantt "year" view title.
Example
<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
dataSource: [{
id: 1,
orderId: 0,
parentId: null,
title: "Task1",
start: new Date("2014/6/17 9:00"),
end: new Date("2014/6/17 11:00")
}],
messages: {
views: {
Year: "Year view"
}
}
});
</script>
In this article