Default Code Snippets in the Classic Windows Client

The classic Windows desktop client provides a set of built-in code snippets for Kendo UI, JavaScript and jQuery Mobile and lets you create your own custom snippets. With code snippets, you can quickly insert a code template and then customize it to fit your code.

Default Kendo UI Code Snippets in the Classic Windows Client

Shortcut Description Scope
k-widget Creates a Kendo UI custom widget. JavaScript
k-template Creates a Kendo UI external template using a script block. HTML
km-viewtitle Creates a Kendo UI Core view-title element inside a NavBar widget. HTML. Inside a NavBar widget.
km-view Creates a Kendo UI Core View widget. HTML
km-tabstrip-button Creates a Kendo UI Core tab inside a TabStrip widget. HTML. Inside a TabStrip widget.
km-tabstrip Creates a Kendo UI Core TabStrip widget inside a Header or a Footer container. HTML. Inside a Header or a Footer container.
km-switch Creates a Kendo UI Core Switch widget. HTML
km-splitview Creates a Kendo UI Core SplitView widget. This widget is applicable only to tablets. HTML
km-page Creates a Kendo UI Core page element inside a ScrollView widget. HTML. Inside a ScrollView widget.
km-scrollview Creates a Kendo UI Core ScrollView widget. HTML
km-scroller Creates a Kendo UI Core Scroller widget. HTML
km-popover-open Creates a Kendo UI Core Button widget that opens a PopOver widget. HTML
km-popover Creates a Kendo UI Core PopOver widget. HTML
km-navbar Creates a Kendo UI Core NavBar widget inside a Header container. HTML. Inside a Header container.
km-modalview-open Creates a Kendo UI Core Button widget that opens a MobileView widget. HTML
km-modalview Creates a Kendo UI Core ModalView widget. HTML
km-listview Creates a Kendo UI Core ListView widget. HTML
km-layout Creates a Kendo UI Core Layout widget. HTML
km-header Creates a Kendo UI Core Header container. HTML
km-footer Creates a Kendo UI Core Footer container. HTML
km-buttongroup Creates a Kendo UI Core ButtonGroup widget. HTML
km-button Creates a Kendo UI Core Button widget. HTML
km-backbutton Creates a Kendo UI Core BackButton widget. HTML
km-app Creates a Kendo UI Core Application. JavaScript
km-actionsheet-item Creates a new item inside a Kendo UI Core ActionSheet widget. HTML. Inside an ActionSheet widget.
km-actionsheet Creates a Kendo UI Core ActionSheet widget. HTML

Default JavaScript Code Snippets in the Classic Windows Client

Shortcut Description Scope
with Creates a with statement. JavaScript
while Creates a while loop. JavaScript
try Creates a try...catch statement. JavaScript
switch Creates a switch statement. JavaScript
new Creates a new user-defined object declaration using var. JavaScript
if Creates an if statement. JavaScript
function Creates a function declaration. JavaScript
forr Creates a for loop that will be executed in reverse (a reversed for loop). JavaScript
for Creates a for loop. JavaScript
forin Creates a for...in loop. JavaScript
fora Creates a for loop that iterates over an array. JavaScript
else Creates an else statement. JavaScript
elseif Creates an else...if statement. JavaScript
do Creates a do...while loop. JavaScript
clm Creates a console.log command with a user-defined message. JavaScript
cl Creates a console.log command. JavaScript
case Creates a case clause. JavaScript
alert Creates an alert. JavaScript

Default jQuery Mobile Code Snippets in the Classic Windows Client

Shortcut Description Scope
$ready Creates a jQuery Mobile ready function. JavaScript

Next Steps

Expand the default collection of code snippets by adding custom code snippets.

See Also

Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.