我正在使用 Kendo UI调度程序 ,我想自定义弹出窗口。 我在他们的文件中搜索过,我没有找到这样的东西。
基本上,我想知道一件事:
双击 scheduler 单元格 ,会出现弹出窗口。标题有默认值 - “无标题”,但如果删除它,并双击 输入 ,则会有新值 - “的替换”。这是另一个默认值,还是从某个地方拉出的值? (λ)
答案 0 :(得分:0)
如果您查看教程页面的html代码,请参阅
schema: {
model: {
id: "taskId",
fields: {
taskId: { from: "TaskID", type: "number" },
//*** In this line you can change title default value //// title: { from: "Title", defaultValue: "No title", validation: { // required: true } },
start: { type: "date", from: "Start" },
end: { type: "date", from: "End" },
startTimezone: { from: "StartTimezone" },
endTimezone: { from: "EndTimezone" },
description: { from: "Description" },
recurrenceId: { from: "RecurrenceID" },
recurrenceRule: { from: "RecurrenceRule" },
recurrenceException: { from: "RecurrenceException" },
ownerId: { from: "OwnerID", defaultValue: 1 },
isAllDay: { type: "boolean", from: "IsAllDay" }
}
}
},
答案 1 :(得分:0)
您需要添加到
$("#scheduler").kendoScheduler({
editable: {
template: $("#editor").html()
},
...
并添加模板
<script id="editor" type="text/x-kendo-template">
<p><label>Task Id: <input name="taskId" id="taskId" /></label></p>
<p><label>Title: <input name="title" id="title"/></label></p>
...
</script>
答案 2 :(得分:0)
in the event message of the scheduler you can to do it:
messages: {
editor: {
title: "Nombre",
start: "Fecha Inicio",
end: "Fecha Final",
allDayEvent: "Todo el día",
repeat: "Repetir",
description: "Descripción"
},
recurrenceEditor: {
daily: {
interval: " día(s)",
repeatEvery: "Repetir cada "
},
end: {
never: " Nunca",
after: " Despues de ",
on: " el ",
label: "Finalizar: ",
occurrence: " veces "
},
weekly: {
repeatEvery: "Repetir cada: ",
interval: " semana(s).",
repeatOn: "Repetir los: "
},
monthly: {
repeatEvery: "Repetir cada : ",
interval: " mes(es).",
repeatOn: "Repetir el: ",
day: " día "
},
yearly: {
repeatOn: "Repetir cada: ",
interval: " año(s).",
repeatOn: "Repetir en: ",
of: " de "
},
frequencies: {
never: "Nunca",
daily: "Diariamente",
weekly: "Semanalmente",
monthly: "Mensualmente",
yearly: "Anualmente"
},
offsetPositions: {
first: "primer",
second: "segundo",
third: "tercer",
fourth: "cuarto",
last: "último"
},
weekdays: {
weekday: "Día de la semana",
weekend: "Fin de semana"
}
}
}
LINK:http://docs.telerik.com/kendo-ui/api/javascript/ui/scheduler#configuration-messages.editor.title