文檔金喜正規(guī)買球>>telerik中文文檔>>編輯
編輯
立即下載Kendo UI for jQuery
如果啟用了editable配置,您可以編輯通過(guò)Breadcrumb組件設(shè)置的路徑。當(dāng)您在組件的空白區(qū)域或當(dāng)前頁(yè)面上單擊時(shí),Breadcrumb將進(jìn)入編輯模式,如果Breadcrumb處于聚焦?fàn)顟B(tài),那么在按下鍵時(shí)也會(huì)發(fā)生這種情況。
編輯模式顯示一個(gè)包含組件當(dāng)前值的輸入字段,允許用戶輸入新的路徑。
下面的示例演示了如何啟用對(duì)Breadcrumb的編輯。
<nav id="breadcrumb"></nav> <script> $("#breadcrumb").kendoBreadcrumb({ items: [ { type: "rootitem", href: "mysite.com", text: "Telerik UI", icon: "globe", showIcon: true, showText: true }, { type: "item", href: "/navigation", text: "Navigation", icon: "cloud", showText: true, showIcon: false }, { type: "item", href: "/breadcrumb", text: "Breadcrumb", showText: true }, ], editable: true }); </script>