7356 lines
285 KiB
JavaScript
7356 lines
285 KiB
JavaScript
|
|
|
|
intellisense.annotate(kendo, {
|
|
Class: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.Class</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.Class = (function() {
|
|
var original = kendo.Class;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
intellisense.annotate(kendo, {
|
|
Color: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.Color</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.Color = (function() {
|
|
var original = kendo.Color;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
diff: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Computes the relative luminance between two colors.
|
|
/// </summary>
|
|
/// <returns type="Number">The relative luminance.</returns>
|
|
/// </signature>
|
|
},
|
|
equals: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Compares two color objects for equality.
|
|
/// </summary>
|
|
/// <returns type="Boolean">returns true if the two colors are the same. Otherwise, false</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
intellisense.annotate(kendo, {
|
|
Layout: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.Layout</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.Layout = (function() {
|
|
var original = kendo.Layout;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
showIn: function(container,view) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Renders the View element in the element specified by the selector
|
|
/// </summary>
|
|
/// <param name="container" type="String" >The selector of the container in which the view element will be appended.</param>
|
|
/// <param name="view" type="kendo.View" >The view instance that will be rendered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
intellisense.annotate(kendo, {
|
|
Observable: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.Observable</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.Observable = (function() {
|
|
var original = kendo.Observable;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
bind: function(eventName,handler) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Attaches a handler to an event.
|
|
/// </summary>
|
|
/// <param name="eventName" type="String" >The name of the event.</param>
|
|
/// <param name="handler" type="Function" >A function to execute each time the event is triggered. That function should have a single parameter which will contain any event specific data.</param>
|
|
/// </signature>
|
|
},
|
|
one: function(eventName,handler) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Attaches a handler to an event. The handler is executed only once.
|
|
/// </summary>
|
|
/// <param name="eventName" type="String" >The name of the event.</param>
|
|
/// <param name="handler" type="Function" >A function to execute each time the event is triggered. That function should have a single parameter which will contain any event specific data.</param>
|
|
/// </signature>
|
|
},
|
|
trigger: function(eventName,eventData) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Executes all handlers attached to the given event.
|
|
/// </summary>
|
|
/// <param name="eventName" type="String" >The name of the event to trigger.</param>
|
|
/// <param name="eventData" type="Object" >Optional event data which will be passed as an argument to the event handlers.</param>
|
|
/// </signature>
|
|
},
|
|
unbind: function(eventName,handler) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Remove a previously attached event handler.
|
|
/// </summary>
|
|
/// <param name="eventName" type="String" >The name of the event. If not specified all handlers of all events will be removed.</param>
|
|
/// <param name="handler" type="Function" >The handler which should no longer be executed. If not specified all handlers listening to that event will be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
intellisense.annotate(kendo, {
|
|
Router: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.Router</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.Router = (function() {
|
|
var original = kendo.Router;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
start: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Activates the router binding to the URL fragment part changes.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
route: function(route,callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Specifies a callback for the given route. The route definition can contain bound parameters, optional segments, and route globbing.
|
|
/// The parsed parts of the URL are passed as parameters to the route callback. Query string parameters are parsed and passed as last argument of the callback function.
|
|
/// </summary>
|
|
/// <param name="route" type="String" >The route definition.</param>
|
|
/// <param name="callback" type="Function" >The callback to be executed when the route is matched.</param>
|
|
/// </signature>
|
|
},
|
|
navigate: function(route,silent) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Navigates to the given route.
|
|
/// </summary>
|
|
/// <param name="route" type="String" >The route to navigate to.</param>
|
|
/// <param name="silent" type="Boolean" >If set to true, the router callbacks will not be called.</param>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds the router instance listeners from the URL fragment part changes.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
intellisense.annotate(kendo, {
|
|
View: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.View</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.View = (function() {
|
|
var original = kendo.View;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes the View element from the DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
render: function(container) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Renders the view contents. Accepts a jQuery selector (or jQuery object) to which the contents will be appended.
|
|
/// Alternatively, the render method can be called without parameters in order to retrieve the View element for manual insertion/further manipulation.
|
|
/// </summary>
|
|
/// <param name="container" type="jQuery" >(optional) the element in which the view element will be appended.</param>
|
|
/// <returns type="jQuery">the view element.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
intellisense.annotate(kendo.data, {
|
|
Binder: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.data.Binder</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.data.Binder = (function() {
|
|
var original = kendo.data.Binder;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
refresh: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Invoked by the Kendo UI MVVM framework when the bound view model value is changed. The binder should update the UI (HTML element or Kendo UI widget) to reflect the view model change.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
intellisense.annotate(kendo.data, {
|
|
DataSource: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.data.DataSource</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.data.DataSource = (function() {
|
|
var original = kendo.data.DataSource;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
add: function(model) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Appends a data item to the data source.
|
|
/// </summary>
|
|
/// <param name="model" type="Object" >Either a kendo.data.Model instance or JavaScript object containing the data item field values.</param>
|
|
/// <returns type="kendo.data.Model">the data item which is inserted.</returns>
|
|
/// </signature>
|
|
},
|
|
aggregate: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the aggregate configuration.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The aggregate configuration. Accepts the same values as the aggregate option.</param>
|
|
/// <returns type="Array">the current aggregate configuration.</returns>
|
|
/// </signature>
|
|
},
|
|
aggregates: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the aggregate results.
|
|
/// </summary>
|
|
/// <returns type="Object">the aggregate results. There is a key for every aggregated field.</returns>
|
|
/// </signature>
|
|
},
|
|
at: function(index) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the data item at the specified index. The index is zero-based.
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >The zero-based index of the data item.</param>
|
|
/// <returns type="kendo.data.ObservableObject">the data item at the specified index. Returns undefined if a data item is not found at the specified index.Returns a kendo.data.Model instance if the schema.model option is set.</returns>
|
|
/// </signature>
|
|
},
|
|
cancelChanges: function(model) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Cancels any pending changes in the data source. Deleted data items are restored, new data items are removed and updated data items are restored to their initial state.
|
|
/// </summary>
|
|
/// <param name="model" type="kendo.data.Model" >The optional data item (model). If specified only the changes of this data item will be discarded. If omitted all changes will be discarded.</param>
|
|
/// </signature>
|
|
},
|
|
data: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the data items of the data source.If the data source is bound to a remote service (via the transport option) the data method will return the service response.
|
|
/// Every item from the response is wrapped in a kendo.data.ObservableObject or kendo.data.Model (if the schema.model option is set).If the data source is bound to a JavaScript array (via the data option) the data method will return the items of that array.
|
|
/// Every item from the array is wrapped in a kendo.data.ObservableObject or kendo.data.Model (if the schema.model option is set).If the data source is grouped (via the group option or the group method) and the serverGrouping is set to true
|
|
/// the data method will return the group items.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The data items which will replace the current ones in the data source. If omitted the current data items will be returned.</param>
|
|
/// <returns type="kendo.data.ObservableArray">the data items of the data source. Returns empty array if the data source hasn't been populated with data items via the read, fetch or query methods.</returns>
|
|
/// </signature>
|
|
},
|
|
fetch: function(callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Reads the data items from a remote service (if the transport option is set) or from a JavaScript array (if the data option is set).
|
|
/// </summary>
|
|
/// <param name="callback" type="Function" >The optional function which is executed when the remote request is finished. The function context (available via the this keyword) will be set to the data source instance.</param>
|
|
/// </signature>
|
|
},
|
|
filter: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the filter configuration.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The filter configuration. Accepts the same values as the filter option.</param>
|
|
/// <returns type="Object">the current filter configuration.</returns>
|
|
/// </signature>
|
|
},
|
|
get: function(id) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the data item (model) with the specified id.
|
|
/// </summary>
|
|
/// <param name="id" type="Object" >The id of the model to look for.</param>
|
|
/// <returns type="kendo.data.Model">the model instance. Returns undefined if a model with the specified id is not found.</returns>
|
|
/// </signature>
|
|
},
|
|
getByUid: function(uid) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the data item (model) with the specified uid.
|
|
/// </summary>
|
|
/// <param name="uid" type="String" >The uid of the model to look for.</param>
|
|
/// <returns type="kendo.data.ObservableObject">the model instance. Returns undefined if a model with the specified uid is not found.</returns>
|
|
/// </signature>
|
|
},
|
|
group: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the grouping configuration.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The grouping configuration. Accepts the same values as the group option.</param>
|
|
/// <returns type="Array">the current grouping configuration.</returns>
|
|
/// </signature>
|
|
},
|
|
hasChanges: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Cheks if the data itams have changed.
|
|
/// </summary>
|
|
/// <returns type="Boolean">returns true if the data items have changed. Otherwise, false.</returns>
|
|
/// </signature>
|
|
},
|
|
indexOf: function(dataItem) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the index of the specified data item.
|
|
/// </summary>
|
|
/// <param name="dataItem" type="kendo.data.ObservableObject" >The target data item.</param>
|
|
/// <returns type="Number">the index of the specified data item. Returns -1 if the data item is not found.</returns>
|
|
/// </signature>
|
|
},
|
|
insert: function(index,model) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts a data item in the data source at the specified index.
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >The zero-based index at which the data item will be inserted.</param>
|
|
/// <param name="model" type="Object" >Either a kendo.data.Model instance or JavaScript object containing the field values.</param>
|
|
/// <returns type="kendo.data.Model">the data item which is inserted.</returns>
|
|
/// </signature>
|
|
},
|
|
page: function(page) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the current page.
|
|
/// </summary>
|
|
/// <param name="page" type="Number" >The new page.</param>
|
|
/// <returns type="Number">the current page.</returns>
|
|
/// </signature>
|
|
},
|
|
pageSize: function(size) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the current page size.
|
|
/// </summary>
|
|
/// <param name="size" type="Number" >The new page size.</param>
|
|
/// <returns type="Number">the current page size.</returns>
|
|
/// </signature>
|
|
},
|
|
query: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Executes the specified query over the data items. Makes a HTTP request if bound to a remote service.
|
|
/// </summary>
|
|
/// <param name="options" type="" >The query options which should be applied.</param>
|
|
/// </signature>
|
|
},
|
|
read: function(data) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Reads data items from a remote service (if the transport option is set) or from a JavaScript array (if the data option is set).
|
|
/// </summary>
|
|
/// <param name="data" type="Object" >Optional data to pass to the remote service.</param>
|
|
/// </signature>
|
|
},
|
|
remove: function(model) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes the specified data item from the data source.
|
|
/// </summary>
|
|
/// <param name="model" type="kendo.data.Model" >The data item which should be removed.</param>
|
|
/// </signature>
|
|
},
|
|
sort: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the sort order which will be applied over the data items.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The sort configuration. Accepts the same values as the sort option.</param>
|
|
/// <returns type="Array">the current sort configuration.</returns>
|
|
/// </signature>
|
|
},
|
|
sync: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Saves any data item changes.The sync method will request the remote service if:
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
total: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the total number of data items. Uses schema.total if the transport.read option is set.
|
|
/// </summary>
|
|
/// <returns type="Number">the total number of data items. Returns the length of the array returned by the data method if schema.total or transport.read are not set.Returns 0 if the data source hasn't been populated with data items via the read, fetch or query methods.</returns>
|
|
/// </signature>
|
|
},
|
|
totalPages: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the number of available pages.
|
|
/// </summary>
|
|
/// <returns type="Number">the available pages.</returns>
|
|
/// </signature>
|
|
},
|
|
view: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the data items which correspond to the current page, filter, sort and group configuration.To ensure that data is available this method should be used within the change event handler or the fetch method.
|
|
/// </summary>
|
|
/// <returns type="kendo.data.ObservableArray">the data items. Returns groups if the data items are grouped (via the group option or the group method).</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
intellisense.annotate(kendo.data, {
|
|
HierarchicalDataSource: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.data.HierarchicalDataSource</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.data.HierarchicalDataSource = (function() {
|
|
var original = kendo.data.HierarchicalDataSource;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
intellisense.annotate(kendo.data, {
|
|
Model: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.data.Model</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.data.Model = (function() {
|
|
var original = kendo.data.Model;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
bind: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Attaches a handler to an event. Examples and more info can be found in the bind section of the kendo.Observable API reference.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
editable: function(field) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Determines if the specified field is editable or not.
|
|
/// </summary>
|
|
/// <param name="field" type="String" >The field to check.</param>
|
|
/// <returns type="Boolean">true if the field is editable; false otherwise.</returns>
|
|
/// </signature>
|
|
},
|
|
get: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the value of the specified field. Inherited from kendo.data.ObservableObject. Examples and more info can be found in the get section of the
|
|
/// ObservableObject API reference.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
isNew: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Checks if the Model is new or not. The id field is used to determine if a model instance is new or existing one.
|
|
/// If the value of the field specified is equal to the default value (specified through the fields configuration) the model is considered as new.
|
|
/// </summary>
|
|
/// <returns type="Boolean">true if the model is new; false otherwise.</returns>
|
|
/// </signature>
|
|
},
|
|
set: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the value of the specified field. Inherited from kendo.data.ObservableObject. Examples and more info can be found in the set section of the
|
|
/// ObservableObject API reference.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
toJSON: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Creates a plain JavaScript object which contains all fields of the Model. Inherited from kendo.data.ObservableObject. Examples and more info can be found in the toJSON section of the
|
|
/// ObservableObject API reference.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
intellisense.annotate(kendo.data, {
|
|
Node: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.data.Node</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.data.Node = (function() {
|
|
var original = kendo.data.Node;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
append: function(model) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Appends a new item to the children data source, and initializes it if necessary.
|
|
/// </summary>
|
|
/// <param name="model" type="Object" >The data for the new item</param>
|
|
/// </signature>
|
|
},
|
|
level: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the current nesting level of the node within the data source.
|
|
/// </summary>
|
|
/// <returns type="Number">the zero based level of the node.</returns>
|
|
/// </signature>
|
|
},
|
|
load: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Loads the child nodes in the child data source, supplying the id of the Node to the request.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
loaded: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the loaded flag of the Node. Setting the loaded flag to false allows reloading of child items.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
parentNode: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the parent node.
|
|
/// </summary>
|
|
/// <returns type="kendo.data.Node">the parent of the node; null if the node is a root node or doesn't have a parent.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
intellisense.annotate(kendo.data, {
|
|
ObservableArray: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.data.ObservableArray</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.data.ObservableArray = (function() {
|
|
var original = kendo.data.ObservableArray;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
bind: function(eventName,handler) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Attaches an event handler for the specified event.
|
|
/// </summary>
|
|
/// <param name="eventName" type="String" >The name of the event.</param>
|
|
/// <param name="handler" type="Function" >The function which will be invoked when the event is raised.</param>
|
|
/// </signature>
|
|
},
|
|
join: function(separator) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Joins all items of an ObservableArray into a string. Equivalent of
|
|
/// Array.prototype.join.
|
|
/// </summary>
|
|
/// <param name="separator" type="String" >Specifies the string to separate each item of the array. If omitted the array items are separated with a comma (,)</param>
|
|
/// </signature>
|
|
},
|
|
parent: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the parent of the array if such parent exists.
|
|
/// </summary>
|
|
/// <returns type="kendo.data.ObservableObject">the parent of the array; undefined if the array is not nested and doesn't have a parent.</returns>
|
|
/// </signature>
|
|
},
|
|
pop: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes the last item from an array and returns that item. Equivalent of Array.prototype.pop.
|
|
/// </summary>
|
|
/// <returns type="Object">the item which was removed.</returns>
|
|
/// </signature>
|
|
},
|
|
push: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Appends the given items to the array and returns the new length of the array. Equivalent of Array.prototype.push.
|
|
/// The new items are wrapped as ObservableObject if they are complex objects.
|
|
/// </summary>
|
|
/// <returns type="Number">the new length of the array.</returns>
|
|
/// </signature>
|
|
},
|
|
slice: function(begin,end) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a one-level deep copy of a portion of an array. Equivalent of
|
|
/// Array.prototype.slice.
|
|
/// The result of the slice method is not an instance of ObvservableArray. It is a regular JavaScript Array object.
|
|
/// </summary>
|
|
/// <param name="begin" type="Number" >Zero-based index at which to begin extraction.</param>
|
|
/// <param name="end" type="Number" >Zero-based index at which to end extraction. If end is omitted, slice extracts to the end of the sequence.</param>
|
|
/// </signature>
|
|
},
|
|
splice: function(index,howMany) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Changes an ObservableArray, by adding new items while removing old items. Equivalent of
|
|
/// Array.prototype.splice
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >Index at which to start changing the array. If negative, will begin that many elements from the end.</param>
|
|
/// <param name="howMany" type="Number" >An integer indicating the number of items to remove. If set to 0, no items are removed. In this case, you should specify at least one new item.</param>
|
|
/// <returns type="Array">containing the removed items. The result of the splice method is not an instance of ObvservableArray.</returns>
|
|
/// </signature>
|
|
},
|
|
shift: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes the first item from an ObvservableArray and returns that item. Equivalent of Array.prototype.shift.
|
|
/// </summary>
|
|
/// <returns type="Object">the item which was removed.</returns>
|
|
/// </signature>
|
|
},
|
|
toJSON: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a JavaScript Array which represents the contents of the ObservableArray.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
unshift: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Adds one or more items to the beginning of an ObservableArray and returns the new length. Equivalent of Array.prototype.unshift.
|
|
/// </summary>
|
|
/// <returns type="Number">the new length of the array.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
intellisense.annotate(kendo.data, {
|
|
ObservableObject: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.data.ObservableObject</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.data.ObservableObject = (function() {
|
|
var original = kendo.data.ObservableObject;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
bind: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Attaches a handler to an event. Examples and more info can be found in the bind section of the
|
|
/// kendo.Observable API reference.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
get: function(name) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the value of the specified field.
|
|
/// </summary>
|
|
/// <param name="name" type="String" >The name of the field whose value is going to be returned.</param>
|
|
/// <returns type="Object">the value of the specified field.</returns>
|
|
/// </signature>
|
|
},
|
|
parent: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the parent of the object if such parent exists.
|
|
/// </summary>
|
|
/// <returns type="kendo.data.ObservableObject">the parent of the object; undefined if the object is not nested and doesn't have a parent.</returns>
|
|
/// </signature>
|
|
},
|
|
set: function(name,value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the value of the specified field.
|
|
/// </summary>
|
|
/// <param name="name" type="String" >The name of the field whose value is going to be returned.</param>
|
|
/// <param name="value" type="Object" >The new value of the field.</param>
|
|
/// </signature>
|
|
},
|
|
toJSON: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Creates a plain JavaScript object which contains all fields of the ObservableObject.
|
|
/// </summary>
|
|
/// <returns type="Object">which contains only the fields of the ObservableObject.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
intellisense.annotate(kendo.data, {
|
|
SchedulerDataSource: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.data.SchedulerDataSource</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.data.SchedulerDataSource = (function() {
|
|
var original = kendo.data.SchedulerDataSource;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
expand: function(start,end) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Expands all recurring events in the data and returns a list of events for a specific period.
|
|
/// </summary>
|
|
/// <param name="start" type="Date" >The start date of the period.</param>
|
|
/// <param name="end" type="Date" >The end date of the period.</param>
|
|
/// <returns type="Array">the expanded list of scheduler events filtered by the specified start/end period.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
intellisense.annotate(kendo.data, {
|
|
SchedulerEvent: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.data.SchedulerEvent</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.data.SchedulerEvent = (function() {
|
|
var original = kendo.data.SchedulerEvent;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
clone: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Clones the scheduler event.
|
|
/// </summary>
|
|
/// <param name="options" type="Object" >Additional options passed to the SchedulerEvent constructor.</param>
|
|
/// <returns type="kendo.data.Scheduler">the cloned scheduler event.</returns>
|
|
/// </signature>
|
|
},
|
|
duration: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the scheduler event length in milliseconds.
|
|
/// </summary>
|
|
/// <returns type="Number">the length of the event.</returns>
|
|
/// </signature>
|
|
},
|
|
expand: function(start,end,timeZoneId) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Expands the event for a specific period based on the recurrenceRule option.
|
|
/// </summary>
|
|
/// <param name="start" type="Date" >The start date of the occurrence period.</param>
|
|
/// <param name="end" type="Date" >The end date of the occurrence period.</param>
|
|
/// <param name="timeZoneId" type="String" >The time zone ID used to convert the recurrence rule dates.</param>
|
|
/// <returns type="Array">the list of the occurrences.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
intellisense.annotate(kendo.mobile.ui, {
|
|
Widget: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.mobile.ui.Widget</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.mobile.ui.Widget = (function() {
|
|
var original = kendo.mobile.ui.Widget;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
view: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the kendo.mobile.ui.View which contains the widget. If the widget is contained in a splitview, modalview, or drawer, the respective widget instance is returned.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoWidget = function() {
|
|
this.data("kendoWidget", new kendo.mobile.ui.Widget());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoWidget: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.mobile.ui.Widget widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.mobile.ui.Widget">The kendo.mobile.ui.Widget instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoWidget: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.mobile.ui.Widget widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
AutoComplete: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.AutoComplete</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.AutoComplete = (function() {
|
|
var original = kendo.ui.AutoComplete;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
close: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Closes the widget suggestion popup.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
dataItem: function(index) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the data item at the specified index.
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >The zero-based index of of the data item.</param>
|
|
/// <returns type="Object">the data item at the specified index. Returns undefined if the index is not within bounds.</returns>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the widget for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
enable: function(enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables or disables the widget.
|
|
/// </summary>
|
|
/// <param name="enable" type="Boolean" >If set to true the widget will be enabled. If set to false the widget will be disabled.</param>
|
|
/// </signature>
|
|
},
|
|
focus: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Focuses the widget.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
readonly: function(readonly) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Toggles the readonly state of the widget. When the widget is readonly it doesn't allow user input.
|
|
/// </summary>
|
|
/// <param name="readonly" type="Boolean" >If set to true the widget will not allow user input. If set to false the widget will allow user input.</param>
|
|
/// </signature>
|
|
},
|
|
refresh: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Refresh the suggestion popup by rendering all items again.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
search: function(word) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Searches the data source for the provided value and displays any matches as suggestions.
|
|
/// </summary>
|
|
/// <param name="word" type="String" >The value to search for. All matches are displayed in the suggestion popup.</param>
|
|
/// </signature>
|
|
},
|
|
select: function(item) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Selects the item provided as an argument and updates the value of the widget.
|
|
/// </summary>
|
|
/// <param name="item" type="Object" >A string, DOM element or jQuery object which represents the item to be selected. A string is treated as a jQuery selector.</param>
|
|
/// </signature>
|
|
},
|
|
setDataSource: function(dataSource) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the data source of the widget.
|
|
/// </summary>
|
|
/// <param name="dataSource" type="kendo.data.DataSource" >The data source to which the widget should be bound.</param>
|
|
/// </signature>
|
|
},
|
|
suggest: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the value of the widget to the specified argument and visually selects the text.
|
|
/// </summary>
|
|
/// <param name="value" type="String" >The value to set.</param>
|
|
/// </signature>
|
|
},
|
|
value: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the value of the widget.
|
|
/// </summary>
|
|
/// <param name="value" type="String" >The value to set.</param>
|
|
/// <returns type="String">the value of the widget.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoAutoComplete = function() {
|
|
this.data("kendoAutoComplete", new kendo.ui.AutoComplete());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoAutoComplete: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.AutoComplete widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.AutoComplete">The kendo.ui.AutoComplete instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoAutoComplete: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.AutoComplete widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// animation — Object
|
|
/// Configures the opening and closing animations of the suggestion popup. Setting the animation option to false will disable the opening and closing animations. As a result the suggestion popup will open and close instantly.
|
|
///
|
|
/// dataSource — Object|Array
|
|
/// The data source of the widget which is used to display suggestions for the current value. Can be a JavaScript object which represents a valid data source configuration, a JavaScript array or an existing kendo.data.DataSource
|
|
/// instance.If the dataSource option is set to a JavaScript object or array the widget will initialize a new kendo.data.DataSource instance using that value as data source configuration.If the dataSource option is an existing kendo.data.DataSource instance the widget will use that instance and will not initialize a new one.
|
|
///
|
|
/// dataTextField — String (default: null)
|
|
/// The field of the data item used when searching for suggestions. This is the text that will be displayed in the list of matched results.
|
|
///
|
|
/// delay — Number (default: 200)
|
|
/// The delay in milliseconds between a keystroke and when the widget displays the suggestion popup.
|
|
///
|
|
/// enable — Boolean (default: true)
|
|
/// If set to false the widget will be disabled and will not allow user input. The widget is enabled by default and allows user input.
|
|
///
|
|
/// filter — String (default: "startswith")
|
|
/// The filtering method used to determine the suggestions for the current value. The default filter is "startswith" -
|
|
/// all data items which begin with the current widget value are displayed in the suggestion popup. The supported filter values are startswith, endswith and contains.
|
|
///
|
|
/// height — Number (default: 200)
|
|
/// The height of the suggestion popup in pixels. The default value is 200 pixels.
|
|
///
|
|
/// highlightFirst — Boolean (default: true)
|
|
/// If set to true the first suggestion will be automatically highlighted.
|
|
///
|
|
/// ignoreCase — Boolean (default: true)
|
|
/// If set to false case-sensitive search will be performed to find suggestions. The widget performs case-insensitive searching by default.
|
|
///
|
|
/// minLength — Number (default: 1)
|
|
/// The minimum number of characters the user must type before a search is performed. Set to higher value than 1 if the search could match a lot of items.
|
|
///
|
|
/// placeholder — String (default: "")
|
|
/// The hint displayed by the widget when it is empty. Not set by default.
|
|
///
|
|
/// separator — String (default: "")
|
|
/// The character used to separate multiple values. Empty by default.
|
|
///
|
|
/// suggest — Boolean (default: false)
|
|
/// If set to true the widget will automatically use the first suggestion as its value.
|
|
///
|
|
/// headerTemplate — String|Function
|
|
/// Specifies a static HTML content, which will be rendered as a header of the popup element.
|
|
///
|
|
/// template — String|Function
|
|
/// The template used to render the suggestions. By default the widget displays only the text of the suggestion (configured via dataTextField).
|
|
///
|
|
/// valuePrimitive — Boolean (default: false)
|
|
/// Spcifies the value binding behavior for the widget when the initial model value is null. If set to true, the View-Model field will be updated with the selected item text field. If set to false, the View-Model field will be updated with the selected item.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Button: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Button</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Button = (function() {
|
|
var original = kendo.ui.Button;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
enable: function(toggle) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables or disables the Button.
|
|
/// </summary>
|
|
/// <param name="toggle" type="Boolean" >Indicates whether the Button should be enabled or disabled. Truthy and falsy arguments are accepted. If no argument is supplied, the Button will assume true and will be enabled.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoButton = function() {
|
|
this.data("kendoButton", new kendo.ui.Button());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoButton: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Button widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Button">The kendo.ui.Button instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoButton: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Button widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// enable — Boolean (default: true)
|
|
/// Indicates whether the Button should be enabled or disabled. By default, it is enabled, unless a disabled="disabled" attribute is detected.
|
|
///
|
|
/// icon — String
|
|
/// Defines a name of an existing icon in the Kendo UI theme sprite. The icon will be applied as background image of a span element inside the Button.
|
|
/// The span element can be added automatically by the widget, or an existing element can be used, if it has a k-icon CSS class applied.
|
|
/// For a list of available icon names, please refer to the Icons demo.
|
|
///
|
|
/// imageUrl — String
|
|
/// Defines a URL, which will be used for an img element inside the Button. The URL can be relative or absolute. In case it is relative, it will be evaluated with relation to the web page URL.The img element can be added automatically by the widget, or an existing element can be used, if it has a k-image CSS class applied.
|
|
///
|
|
/// spriteCssClass — String
|
|
/// Defines a CSS class (or multiple classes separated by spaces), which will be used for applying a background image to a span element inside the Button.
|
|
/// In case you want to use an icon from the Kendo UI theme sprite background image, it is easier to use the icon property.The span element can be added automatically by the widget, or an existing element can be used, if it has a k-sprite CSS class applied.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Calendar: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Calendar</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Calendar = (function() {
|
|
var original = kendo.ui.Calendar;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
current: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets currently focused date.
|
|
/// </summary>
|
|
/// <returns type="Date">The current focused date shown in the calendar.</returns>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the Calendar for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
max: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets/Sets the max value of the calendar.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The max date to set.</param>
|
|
/// <returns type="Date">The max value of the calendar.</returns>
|
|
/// </signature>
|
|
},
|
|
min: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets/Sets the min value of the calendar.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The min date to set.</param>
|
|
/// <returns type="Date">The min value of the calendar.</returns>
|
|
/// </signature>
|
|
},
|
|
navigate: function(value,view) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Navigates to view.
|
|
/// </summary>
|
|
/// <param name="value" type="Date" >Desired date.</param>
|
|
/// <param name="view" type="String" >Desired view.</param>
|
|
/// </signature>
|
|
},
|
|
navigateDown: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Navigates to the lower view.
|
|
/// </summary>
|
|
/// <param name="value" type="Date" >Desired date.</param>
|
|
/// </signature>
|
|
},
|
|
navigateToFuture: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Navigates to the future.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
navigateToPast: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Navigates to the past.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
navigateUp: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Navigates to the upper view.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
value: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets/Sets the value of the calendar.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The date to set.</param>
|
|
/// <returns type="Date">The value of the calendar.</returns>
|
|
/// </signature>
|
|
},
|
|
view: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets an instance of the current view used by the calendar.
|
|
/// </summary>
|
|
/// <returns type="Object">The instance of the current view used by the calendar.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoCalendar = function() {
|
|
this.data("kendoCalendar", new kendo.ui.Calendar());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoCalendar: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Calendar widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Calendar">The kendo.ui.Calendar instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoCalendar: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Calendar widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// culture — String (default: "en-US")
|
|
/// Specifies the culture info used by the widget.
|
|
///
|
|
/// dates — Array
|
|
/// Specifies a list of dates, which will be passed to the month template.
|
|
///
|
|
/// depth — String
|
|
/// Specifies the navigation depth. The following
|
|
/// settings are available for the depth value:
|
|
///
|
|
/// footer — String|Function
|
|
/// The template which renders the footer. If false, the footer will not be rendered.
|
|
///
|
|
/// format — String (default: "MM/dd/yyyy")
|
|
/// Specifies the format, which is used to parse value set with value() method.
|
|
///
|
|
/// max — Date (default: Date(2099, 11, 31))
|
|
/// Specifies the maximum date, which the calendar can show.
|
|
///
|
|
/// min — Date (default: Date(1900, 0, 1))
|
|
/// Specifies the minimum date, which the calendar can show.
|
|
///
|
|
/// month — Object
|
|
/// Templates for the cells rendered in "month" view.
|
|
///
|
|
/// start — String (default: "month")
|
|
/// Specifies the start view.
|
|
/// The following settings are available for the start value:
|
|
///
|
|
/// value — Date (default: null)
|
|
/// Specifies the selected date.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
ColorPalette: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.ColorPalette</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.ColorPalette = (function() {
|
|
var original = kendo.ui.ColorPalette;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
value: function(color) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get or set the selected color. If no argument is given, this returns the currently selected color as a string in format #FFFFFF.If one argument is given, it selects the new color and updates the UI. The argument can be a string in hex, rgb or rgba format, or a kendo.Color object object.
|
|
/// </summary>
|
|
/// <param name="color" type="String" ></param>
|
|
/// <returns type="String">the string representation of the current color.</returns>
|
|
/// </signature>
|
|
},
|
|
color: function(color) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get or set the selected color. If no argument is given, this returns the currently selected color as a kendo.Color object.
|
|
/// </summary>
|
|
/// <param name="color" type="kendo.Color" >The color that should be set as the current value</param>
|
|
/// <returns type="kendo.Color">the current value</returns>
|
|
/// </signature>
|
|
},
|
|
enable: function(enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables or disables the widget.
|
|
/// </summary>
|
|
/// <param name="enable" type="Boolean" >Whether the widget should be enabled (true) or disabled (false). If not specified, the method will enable the widget.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoColorPalette = function() {
|
|
this.data("kendoColorPalette", new kendo.ui.ColorPalette());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoColorPalette: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.ColorPalette widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.ColorPalette">The kendo.ui.ColorPalette instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoColorPalette: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.ColorPalette widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// palette — String|Array (default: "basic")
|
|
/// Specifies the color palette to display.
|
|
/// It can be a string with comma-separated colors in hex representation, an array of kendo.Color object objects or of strings that parseColor understands. As a shortcut, you can pass "basic" to get the simple palette (this is the default) or "websafe" to get the Web-safe palette.
|
|
///
|
|
/// columns — Number (default: 10)
|
|
/// The number of columns to display. When you use the "websafe" palette, this will automatically default to 18.
|
|
///
|
|
/// tileSize — Number (default: 14)
|
|
/// The size of a color cell.
|
|
///
|
|
/// tileSize — Object
|
|
/// The size of a color cell.
|
|
///
|
|
/// value — String (default: null)
|
|
/// Specifies the initially selected color.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
ColorPicker: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.ColorPicker</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.ColorPicker = (function() {
|
|
var original = kendo.ui.ColorPicker;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
close: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Closes the popup.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
open: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Opens the popup element with the color selector.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
toggle: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Toggles the popup.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
value: function(color) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get or set the selected color. If no argument is given, this returns the
|
|
/// currently selected color as a string in format #FFFFFF when the opacity
|
|
/// option is off, or rgba(255, 255, 255, 1) when opacity is requested.If one argument is given, it selects the new color and updates the UI. The
|
|
/// argument can be a string in hex, rgb or rgba format, or a Color object.
|
|
/// This does not trigger the "change" event.
|
|
/// </summary>
|
|
/// <param name="color" type="String" ></param>
|
|
/// <returns type="String">the string representation of the current color.</returns>
|
|
/// </signature>
|
|
},
|
|
color: function(color) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get or set the selected color. If no argument is given, this returns the currently selected color as a kendo.Color object.
|
|
/// </summary>
|
|
/// <param name="color" type="kendo.Color" >The color that should be set as the current value</param>
|
|
/// <returns type="kendo.Color">the current value</returns>
|
|
/// </signature>
|
|
},
|
|
enable: function(enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables or disables the widget.
|
|
/// </summary>
|
|
/// <param name="enable" type="Boolean" >Whether the widget should be enabled (true) or disabled (false). If not specified, the method will enable the widget.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoColorPicker = function() {
|
|
this.data("kendoColorPicker", new kendo.ui.ColorPicker());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoColorPicker: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.ColorPicker widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.ColorPicker">The kendo.ui.ColorPicker instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoColorPicker: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.ColorPicker widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// buttons — Boolean (default: true)
|
|
/// Specifies whether the widget should display the Apply / Cancel buttons.Applicable only for the HSV selector, when a pallete is not specified.
|
|
///
|
|
/// columns — Number
|
|
/// The number of columns to show in the color dropdown when a pallete is specified.
|
|
/// This is automatically initialized for the "basic" and "websafe" palettes.
|
|
/// If you use a custom palette then you can set this to some value that makes sense for your colors.
|
|
///
|
|
/// tileSize — Number (default: 14)
|
|
/// The size of a color cell.
|
|
///
|
|
/// tileSize — Object
|
|
/// The size of a color cell.
|
|
///
|
|
/// messages — Object
|
|
/// Allows customization of "Apply" / "Cancel" labels.
|
|
///
|
|
/// palette — String|Array (default: null)
|
|
/// When a non-null palette argument is supplied, the drop-down will be
|
|
/// a simple color picker that lists the colors. The following are supported:If palette is missing or null, the widget will display the HSV
|
|
/// selector.
|
|
///
|
|
/// opacity — Boolean (default: false)
|
|
/// Only for the HSV selector. If true, the widget will display the opacity slider.
|
|
/// Note that currently in HTML5 the does not support opacity.
|
|
///
|
|
/// preview — Boolean (default: true)
|
|
/// Only applicable for the HSV selector.Displays the color preview element, along with an input field where the end user can paste a color in a CSS-supported notation.
|
|
///
|
|
/// toolIcon — String (default: null)
|
|
/// A CSS class name to display an icon in the color picker button. If
|
|
/// specified, the HTML for the element will look like this:
|
|
///
|
|
/// value — String (default: null)
|
|
/// The initially selected color.
|
|
/// Note that when initializing the widget from an element, the initial color will be decided by the field instead.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
ComboBox: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.ComboBox</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.ComboBox = (function() {
|
|
var original = kendo.ui.ComboBox;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
close: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Closes the widget popup.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
dataItem: function(index) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the data item at the specified index. If the index is not specified, the selected index will be used.
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >The zero-based index of the data record.</param>
|
|
/// <returns type="Object">The raw data record. Returns undefined if no data.</returns>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the ComboBox for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
enable: function(enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables or disables the widget.
|
|
/// </summary>
|
|
/// <param name="enable" type="Boolean" >If set to true the widget will be enabled. If set to false the widget will be disabled.</param>
|
|
/// </signature>
|
|
},
|
|
readonly: function(readonly) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Toggles the readonly state of the widget. When the widget is readonly it doesn't allow user input.
|
|
/// </summary>
|
|
/// <param name="readonly" type="Boolean" >If set to true the widget will not allow user input. If set to false the widget will allow user input.</param>
|
|
/// </signature>
|
|
},
|
|
focus: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Focuses the widget.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
open: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Opens the popup.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
refresh: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Refresh the popup by rendering all items again.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
search: function(word) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Searches the data source for the provided value and displays any matches as suggestions.
|
|
/// </summary>
|
|
/// <param name="word" type="String" >The filter value.</param>
|
|
/// </signature>
|
|
},
|
|
select: function(li) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Selects the item provided as an argument and updates the value and text of the widget.
|
|
/// </summary>
|
|
/// <param name="li" type="Object" >A string, DOM element or jQuery object which represents the item to be selected. A string is treated as a jQuery selector. A number representing the index of the item or function predicate which returns the correct data item.</param>
|
|
/// <returns type="Number">The index of the selected item, if called with no parameters. If a custom value is entered, the returned selected index is -1. If called with a parameter as a setter.</returns>
|
|
/// </signature>
|
|
},
|
|
setDataSource: function(dataSource) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the dataSource of an existing ComboBox and rebinds it.
|
|
/// </summary>
|
|
/// <param name="dataSource" type="kendo.data.DataSource" ></param>
|
|
/// </signature>
|
|
},
|
|
suggest: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the value of the widget to the specified argument and visually selects the text.
|
|
/// </summary>
|
|
/// <param name="value" type="String" >Characters to force a suggestion.</param>
|
|
/// </signature>
|
|
},
|
|
text: function(text) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the text of the ComboBox. Widget will select the item with same text. If
|
|
/// there are no matches then the text will be considered as a custom value of the widget.
|
|
/// </summary>
|
|
/// <param name="text" type="String" >The text to set.</param>
|
|
/// <returns type="String">The text of the combobox.</returns>
|
|
/// </signature>
|
|
},
|
|
toggle: function(toggle) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Opens or closes the widget popup.
|
|
/// </summary>
|
|
/// <param name="toggle" type="Boolean" >Defines the whether to open/close the drop-down list.</param>
|
|
/// </signature>
|
|
},
|
|
value: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the value of the combobox.
|
|
/// </summary>
|
|
/// <param name="value" type="String" >The value to set.</param>
|
|
/// <returns type="String">The value of the combobox.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoComboBox = function() {
|
|
this.data("kendoComboBox", new kendo.ui.ComboBox());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoComboBox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.ComboBox widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.ComboBox">The kendo.ui.ComboBox instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoComboBox: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.ComboBox widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// animation — Object
|
|
/// Configures the opening and closing animations of the suggestion popup. Setting the animation option to false will disable the opening and closing animations. As a result the suggestion popup will open and close instantly.
|
|
///
|
|
/// autoBind — Boolean (default: true)
|
|
/// Controls whether to bind the widget to the data source on initialization.
|
|
///
|
|
/// cascadeFrom — String
|
|
/// Use it to set the Id of the parent ComboBox widget.
|
|
/// Help topic showing how cascading functionality works
|
|
///
|
|
/// cascadeFromField — String
|
|
/// Defines the field to be used to filter the data source. If not defiend the parent's dataValueField option will be used.
|
|
/// Help topic showing how cascading functionality works
|
|
///
|
|
/// dataSource — Object|Array
|
|
/// The data source of the widget which is used to display a list of values. Can be a JavaScript object which represents a valid data source configuration, a JavaScript array or an existing kendo.data.DataSource
|
|
/// instance.If the dataSource option is set to a JavaScript object or array the widget will initialize a new kendo.data.DataSource instance using that value as data source configuration.If the dataSource option is an existing kendo.data.DataSource instance the widget will use that instance and will not initialize a new one.
|
|
///
|
|
/// dataTextField — String (default: "")
|
|
/// The field of the data item that provides the text content of the list items. The widget will filter the data source based on this field.
|
|
///
|
|
/// dataValueField — String (default: "")
|
|
/// The field of the data item that provides the value of the widget.
|
|
///
|
|
/// delay — Number (default: 200)
|
|
/// The delay in milliseconds between a keystroke and when the widget displays the popup.
|
|
///
|
|
/// enable — Boolean (default: true)
|
|
/// If set to false the widget will be disabled and will not allow user input. The widget is enabled by default and allows user input.
|
|
///
|
|
/// filter — String (default: "none")
|
|
/// The filtering method used to determine the suggestions for the current value. Filtration is turned of by default.
|
|
/// The supported filter values are startswith, endswith and contains.
|
|
///
|
|
/// height — Number (default: 200)
|
|
/// The height of the suggestion popup in pixels. The default value is 200 pixels.
|
|
///
|
|
/// highlightFirst — Boolean (default: true)
|
|
/// If set to true the first suggestion will be automatically highlighted.
|
|
///
|
|
/// ignoreCase — String (default: true)
|
|
/// If set to false case-sensitive search will be performed to find suggestions. The widget performs case-insensitive searching by default.
|
|
///
|
|
/// index — Number (default: -1)
|
|
/// The index of the initially selected item. The index is 0 based.
|
|
///
|
|
/// minLength — Number (default: 1)
|
|
/// The minimum number of characters the user must type before a search is performed. Set to higher value than 1 if the search could match a lot of items.
|
|
///
|
|
/// placeholder — String (default: "")
|
|
/// The hint displayed by the widget when it is empty. Not set by default.
|
|
///
|
|
/// suggest — Boolean (default: false)
|
|
/// If set to true the widget will automatically use the first suggestion as its value.
|
|
///
|
|
/// headerTemplate — String|Function
|
|
/// Specifies a static HTML content, which will be rendered as a header of the popup element.
|
|
///
|
|
/// template — String|Function
|
|
/// The template used to render the items. By default the widget displays only the text of the data item (configured via dataTextField).
|
|
///
|
|
/// text — String (default: "")
|
|
/// The text of the widget used when the autoBind is set to false.
|
|
///
|
|
/// value — String (default: "")
|
|
/// The value of the widget.
|
|
///
|
|
/// valuePrimitive — Boolean (default: false)
|
|
/// Specifies the value binding behavior for the widget when the initial model value is null. If set to true, the View-Model field will be updated with the selected item value field. If set to false, the View-Model field will be updated with the selected item.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
DatePicker: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.DatePicker</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.DatePicker = (function() {
|
|
var original = kendo.ui.DatePicker;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
close: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Closes the calendar.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the DatePicker for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
enable: function(enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enable/Disable the DatePicker widget.
|
|
/// </summary>
|
|
/// <param name="enable" type="Boolean" >The argument, which defines whether to enable/disable the DatePicker.</param>
|
|
/// </signature>
|
|
},
|
|
readonly: function(readonly) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Toggles the readonly state of the widget. When the widget is readonly it doesn't allow user input.
|
|
/// </summary>
|
|
/// <param name="readonly" type="Boolean" >The argument, which defines whether the datepicker should be readonly or editable.</param>
|
|
/// </signature>
|
|
},
|
|
max: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets/Sets the max value of the DatePicker.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The max date to set.</param>
|
|
/// <returns type="Date">The max value of the DatePicker.</returns>
|
|
/// </signature>
|
|
},
|
|
min: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets/Sets the min value of the DatePicker.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The min date to set.</param>
|
|
/// <returns type="Date">The min value of the DatePicker.</returns>
|
|
/// </signature>
|
|
},
|
|
open: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Opens the calendar.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
value: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets/Sets the value of the DatePicker.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The value to set.</param>
|
|
/// <returns type="Date">The value of the DatePicker.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoDatePicker = function() {
|
|
this.data("kendoDatePicker", new kendo.ui.DatePicker());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoDatePicker: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.DatePicker widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.DatePicker">The kendo.ui.DatePicker instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoDatePicker: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.DatePicker widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// animation — Object
|
|
/// Configures the opening and closing animations of the calendar popup. Setting the animation option to false will disable the opening and closing animations. As a result the calendar popup will open and close instantly.
|
|
///
|
|
/// ARIATemplate — String (default: "Current focused date is #=kendo.toString(data.current, 'D'#"))
|
|
/// Specifies a template used to populate value of the aria-label attribute.
|
|
///
|
|
/// culture — String (default: "en-US")
|
|
/// Specifies the culture info used by the widget.
|
|
///
|
|
/// dates — Array
|
|
/// Specifies a list of dates, which will be passed to the month template.
|
|
///
|
|
/// depth — String
|
|
/// Specifies the navigation depth. The following
|
|
/// settings are available for the depth value:
|
|
///
|
|
/// footer — String|Function
|
|
/// The template which renders the footer of the calendar. If false, the footer will not be rendered.
|
|
///
|
|
/// format — String (default: "MM/dd/yyyy")
|
|
/// Specifies the format, which is used to format the value of the DatePicker displayed in the input. The format also will be used to parse the input.
|
|
///
|
|
/// max — Date (default: Date(2099, 11, 31))
|
|
/// Specifies the maximum date, which the calendar can show.
|
|
///
|
|
/// min — Date (default: Date(1900, 0, 1))
|
|
/// Specifies the minimum date that the calendar can show.
|
|
///
|
|
/// month — Object
|
|
/// Templates for the cells rendered in the calendar "month" view.
|
|
///
|
|
/// parseFormats — Array
|
|
/// Specifies a lis of date formats used to parse the value set with value() method or by direct user input. If not set the value of the format will be used.
|
|
/// Note that format option is always used parsing process.
|
|
///
|
|
/// start — String (default: "month")
|
|
/// Specifies the start view.
|
|
/// The following settings are available for the start value:
|
|
///
|
|
/// value — Date (default: null)
|
|
/// Specifies the selected date.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
DateTimePicker: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.DateTimePicker</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.DateTimePicker = (function() {
|
|
var original = kendo.ui.DateTimePicker;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
close: function(view) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Closes the calendar or the time drop-down list.
|
|
/// </summary>
|
|
/// <param name="view" type="String" >The view of the DateTimePicker, expressed as a string. Available views are "time" and "date".</param>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the DateTimePicker for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
enable: function(enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables or disables a DateTimePicker.
|
|
/// </summary>
|
|
/// <param name="enable" type="Boolean" >Enables (true or undefined) or disables (false) a DateTimePicker.</param>
|
|
/// </signature>
|
|
},
|
|
readonly: function(readonly) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Toggles the readonly state of the widget. When the widget is readonly it doesn't allow user input.
|
|
/// </summary>
|
|
/// <param name="readonly" type="Boolean" >The argument, which defines whether the datetimepicker should be readonly or editable.</param>
|
|
/// </signature>
|
|
},
|
|
max: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the maximum value of the DateTimePicker.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The maximum time value to set for a DateTimePicker, expressed as a Date object or as a string.</param>
|
|
/// <returns type="Date">The maximum time value of a DateTimePicker.</returns>
|
|
/// </signature>
|
|
},
|
|
min: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the minimum value of the DateTimePicker.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The minimum time value to set for a DateTimePicker, expressed as a Date object or as a string.</param>
|
|
/// <returns type="Date">The minimum time value of a DateTimePicker.</returns>
|
|
/// </signature>
|
|
},
|
|
open: function(view) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Opens the calendar or the time drop-down list.
|
|
/// </summary>
|
|
/// <param name="view" type="String" >The view of the DateTimePicker, expressed as a string. Available views are "time" and "date".</param>
|
|
/// </signature>
|
|
},
|
|
toggle: function(view) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Toggles the calendar or the time drop-down list.
|
|
/// </summary>
|
|
/// <param name="view" type="String" >The view of the DateTimePicker, expressed as a string. Available views are "time" and "date".</param>
|
|
/// </signature>
|
|
},
|
|
value: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the value of the DateTimePicker.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The time value to set for a DateTimePicker, expressed as a Date object or as a string.</param>
|
|
/// <returns type="Date">The time value of a DateTimePicker.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoDateTimePicker = function() {
|
|
this.data("kendoDateTimePicker", new kendo.ui.DateTimePicker());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoDateTimePicker: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.DateTimePicker widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.DateTimePicker">The kendo.ui.DateTimePicker instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoDateTimePicker: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.DateTimePicker widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// animation — Object
|
|
/// Configures the opening and closing animations of the popups. Setting the animation option to false will disable the opening and closing animations. As a result the popup will open and close instantly.
|
|
///
|
|
/// ARIATemplate — String (default: "Current focused date is #=kendo.toString(data.current, 'G'#"))
|
|
/// Specifies a template used to populate value of the aria-label attribute.
|
|
///
|
|
/// culture — String (default: "en-US")
|
|
/// Specifies the culture info used by the widget.
|
|
///
|
|
/// dates — Array
|
|
/// Specifies a list of dates, which will be passed to the month template of the DateView. All dates, which match the date portion of the selected date will be used to re-bind the TimeView.
|
|
///
|
|
/// depth — String
|
|
/// Specifies the navigation depth of the calendar. The following
|
|
/// settings are available for the depth value:
|
|
///
|
|
/// footer — String
|
|
/// The template which renders the footer of the calendar. If false, the footer will not be rendered.
|
|
///
|
|
/// format — String (default: "MM/dd/yyyy h:mm tt")
|
|
/// Specifies the format, which is used to format the value of the DateTimePicker displayed in the input. The format also will be used to parse the input.
|
|
///
|
|
/// interval — Number (default: 30)
|
|
/// Specifies the interval, between values in the popup list, in minutes.
|
|
///
|
|
/// max — Date (default: Date(2099, 11, 31))
|
|
/// Specifies the maximum date, which the calendar can show.
|
|
///
|
|
/// min — Date (default: Date(1900, 0, 1))
|
|
/// Specifies the minimum date that the calendar can show.
|
|
///
|
|
/// month — Object
|
|
/// Templates for the cells rendered in the calendar "month" view.
|
|
///
|
|
/// parseFormats — Array
|
|
/// Specifies the formats, which are used to parse the value set with value() method or by direct input. If not set the value of the options.format and options.timeFormat will be used. Note that value of the format option is always used.
|
|
///
|
|
/// start — String (default: "month")
|
|
/// Specifies the start view of the calendar.
|
|
/// The following settings are available for the start value:
|
|
///
|
|
/// timeFormat — String (default: "h:mm tt")
|
|
/// Specifies the format, which is used to format the values in the time drop-down list.
|
|
///
|
|
/// value — Date (default: null)
|
|
/// Specifies the selected value.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Draggable: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Draggable</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Draggable = (function() {
|
|
var original = kendo.ui.Draggable;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
cancelHold: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Has effect only when holdToDrag is set to true. Cancels the activated state of the widget, caused by pressing and holding.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoDraggable = function() {
|
|
this.data("kendoDraggable", new kendo.ui.Draggable());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoDraggable: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Draggable widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Draggable">The kendo.ui.Draggable instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoDraggable: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Draggable widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// axis — String (default: null)
|
|
/// Constrains the hint movement to either the horizontal (x) or vertical (y) axis. Can be set to either "x" or "y".
|
|
///
|
|
/// cursorOffset — Object (default: null)
|
|
/// If set, specifies the offset of the hint relative to the mouse cursor/finger.
|
|
/// By default, the hint is initially positioned on top of the draggable source offset. The option accepts an object with two keys: top and left.
|
|
///
|
|
/// distance — Number (default: 5)
|
|
/// The required distance that the mouse should travel in order to initiate a drag.
|
|
///
|
|
/// group — String (default: "default")
|
|
/// Used to group sets of draggable and drop targets. A draggable with the same group value as a drop target will be accepted by the drop target.
|
|
///
|
|
/// hint — Function
|
|
/// Provides a way for customization of the drag indicator. If a function is supplied, it receives one argument - the draggable element's jQuery object.
|
|
///
|
|
/// holdToDrag — Boolean (default: false)
|
|
/// Suitable for touch oriented user interface, in order to avoid collision with the touch scrolling gesture. When set to true, the widget will be activated after the user taps and holds the finger on the element for a short amount of time.The draggable will also be activated by pressing, holding and lifting the finger without any movement. Dragging it afterwards will initiate the drag immediately. The activated mode can be canceled by calling cancelHold.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
DropDownList: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.DropDownList</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.DropDownList = (function() {
|
|
var original = kendo.ui.DropDownList;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
close: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Closes the widget popup.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
dataItem: function(index) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the data item at the specified index. If the index is not specified, the selected index will be used.
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >The zero-based index of the data record.</param>
|
|
/// <returns type="Object">The raw data record. Returns undefined if no data.</returns>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the DropDownList for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
focus: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Focuses the widget.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
open: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Opens the popup.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
enable: function(enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables or disables the widget.
|
|
/// </summary>
|
|
/// <param name="enable" type="Boolean" >If set to true the widget will be enabled. If set to false the widget will be disabled.</param>
|
|
/// </signature>
|
|
},
|
|
readonly: function(readonly) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Controls whether the widget is editable or readonly.
|
|
/// </summary>
|
|
/// <param name="readonly" type="Boolean" >The argument, which defines whether the datepicker should be readonly or editable.</param>
|
|
/// </signature>
|
|
},
|
|
refresh: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Refresh the popup by rendering all items again.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
search: function(word) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Selects an item, which starts with the provided value.
|
|
/// </summary>
|
|
/// <param name="word" type="String" >The search value.</param>
|
|
/// </signature>
|
|
},
|
|
select: function(li) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the selected item. Selects the item provided as an argument and updates the value and text of the widget.
|
|
/// </summary>
|
|
/// <param name="li" type="Object" >A string, DOM element or jQuery object which represents the item to be selected. A string is treated as a jQuery selector. A number representing the index of the item or function predicate which returns the correct data item.</param>
|
|
/// <returns type="Number">The index of the selected item, if called with no parameters. If a custom value is entered, the returned selected index is -1. If called with a parameter as a setter.</returns>
|
|
/// </signature>
|
|
},
|
|
setDataSource: function(dataSource) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the dataSource of an existing DropDownList and rebinds it.
|
|
/// </summary>
|
|
/// <param name="dataSource" type="kendo.data.DataSource" ></param>
|
|
/// </signature>
|
|
},
|
|
text: function(text) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the text of the dropdownlist.
|
|
/// </summary>
|
|
/// <param name="text" type="String" >The text to set.</param>
|
|
/// <returns type="String">The text of the dropdownlist.</returns>
|
|
/// </signature>
|
|
},
|
|
toggle: function(toggle) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Opens or closes the widget popup.
|
|
/// </summary>
|
|
/// <param name="toggle" type="Boolean" >Defines the whether to open/close the drop-down list.</param>
|
|
/// </signature>
|
|
},
|
|
value: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the value of the dropdownlist. The value will not be set if there is no item with such value. If value is undefined, text of the data item is used.
|
|
/// </summary>
|
|
/// <param name="value" type="String" >The value to set.</param>
|
|
/// <returns type="String">The value of the dropdownlist.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoDropDownList = function() {
|
|
this.data("kendoDropDownList", new kendo.ui.DropDownList());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoDropDownList: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.DropDownList widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.DropDownList">The kendo.ui.DropDownList instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoDropDownList: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.DropDownList widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// animation — Object
|
|
/// Configures the opening and closing animations of the suggestion popup. Setting the animation option to false will disable the opening and closing animations. As a result the suggestion popup will open and close instantly.
|
|
///
|
|
/// autoBind — Boolean (default: true)
|
|
/// Controls whether to bind the widget to the data source on initialization.
|
|
///
|
|
/// cascadeFrom — String
|
|
/// Use it to set the Id of the parent dropdownlist widget.
|
|
/// Help topic showing how cascading functionality works
|
|
///
|
|
/// cascadeFromField — String
|
|
/// Defines the field to be used to filter the data source. If not defiend the parent's dataValueField option will be used.
|
|
/// Help topic showing how cascading functionality works
|
|
///
|
|
/// dataSource — Object|Array
|
|
/// The data source of the widget which is used to display a list of values. Can be a JavaScript object which represents a valid data source configuration, a JavaScript array or an existing kendo.data.DataSource
|
|
/// instance.If the dataSource option is set to a JavaScript object or array the widget will initialize a new kendo.data.DataSource instance using that value as data source configuration.If the dataSource option is an existing kendo.data.DataSource instance the widget will use that instance and will not initialize a new one.
|
|
///
|
|
/// dataTextField — String (default: "")
|
|
/// The field of the data item that provides the text content of the list items. The widget will filter the data source based on this field.
|
|
///
|
|
/// dataValueField — String (default: "")
|
|
/// The field of the data item that provides the value of the widget.
|
|
///
|
|
/// delay — Number (default: 500)
|
|
/// Specifies the delay in milliseconds before the search-text typed by the end user is cleared.
|
|
///
|
|
/// enable — Boolean (default: true)
|
|
/// If set to false the widget will be disabled and will not allow user input. The widget is enabled by default and allows user input.
|
|
///
|
|
/// height — Number (default: 200)
|
|
/// The height of the suggestion popup in pixels. The default value is 200 pixels.
|
|
///
|
|
/// ignoreCase — String (default: true)
|
|
/// If set to false case-sensitive search will be performed to find suggestions. The widget performs case-insensitive searching by default.
|
|
///
|
|
/// index — Number (default: 0)
|
|
/// The index of the initially selected item. The index is 0 based.
|
|
///
|
|
/// optionLabel — String|Object (default: "")
|
|
/// Define the text of the default empty item. If the value is an object, then the widget will use it a valid data item.
|
|
/// Note that the optionLabel will not be available if the widget is empty.
|
|
///
|
|
/// headerTemplate — String|Function
|
|
/// Specifies a static HTML content, which will be rendered as a header of the popup element.
|
|
///
|
|
/// template — String|Function
|
|
/// The template used to render the items. By default the widget displays only the text of the data item (configured via dataTextField).
|
|
///
|
|
/// valueTemplate — String|Function
|
|
/// The valueTemplate used to render the selected value. By default the widget displays only the text of the data item (configured via dataTextField).
|
|
///
|
|
/// text — String (default: "")
|
|
/// The text of the widget used when the autoBind is set to false.
|
|
///
|
|
/// value — String (default: "")
|
|
/// The value of the widget.
|
|
///
|
|
/// valuePrimitive — Boolean (default: false)
|
|
/// Spcifies the value binding behavior for the widget when the initial model value is null. If set to true, the View-Model field will be updated with the selected item value field. If set to false, the View-Model field will be updated with the selected item.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
DropTarget: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.DropTarget</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.DropTarget = (function() {
|
|
var original = kendo.ui.DropTarget;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
destroyGroup: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Destroys all DropTarget instances from the group with the given name.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoDropTarget = function() {
|
|
this.data("kendoDropTarget", new kendo.ui.DropTarget());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoDropTarget: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.DropTarget widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.DropTarget">The kendo.ui.DropTarget instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoDropTarget: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.DropTarget widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// group — String (default: "default")
|
|
/// Used to group sets of draggable and drop targets. A draggable with the same group value as a drop target will be accepted by the drop target.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
DropTargetArea: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.DropTargetArea</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.DropTargetArea = (function() {
|
|
var original = kendo.ui.DropTargetArea;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoDropTargetArea = function() {
|
|
this.data("kendoDropTargetArea", new kendo.ui.DropTargetArea());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoDropTargetArea: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.DropTargetArea widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.DropTargetArea">The kendo.ui.DropTargetArea instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoDropTargetArea: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.DropTargetArea widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// group — String (default: "default")
|
|
/// Used to group sets of draggable and drop targets. A draggable with the same group value as a drop target will be accepted by the drop target.
|
|
///
|
|
/// filter — String (default: null)
|
|
/// Selector to filter the drop targets in the area. Every matched element acts as a drop target and fires events on the DropTargetArea. Specifying the filter is mandatory.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Editor: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Editor</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Editor = (function() {
|
|
var original = kendo.ui.Editor;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
createRange: function(document) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Creates a W3C-compatible Range object.
|
|
/// </summary>
|
|
/// <param name="document" type="Document" >The document that the range is associated with. If omitted, the document of the editor editing area will be used.</param>
|
|
/// <returns type="Range">The created Range object.</returns>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the widget for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
encodedValue: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the HTML encoded value of the editor.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
exec: function(name,params) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Executes an editor command on the currently selected text.
|
|
/// </summary>
|
|
/// <param name="name" type="String" >The name of the command to be executed.</param>
|
|
/// <param name="params" type="String" >The parameters for the executed command.</param>
|
|
/// </signature>
|
|
},
|
|
focus: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Focuses the editable area.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
getRange: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets a Range object form the editable area.
|
|
/// </summary>
|
|
/// <returns type="Range">A W3C-compatible Range object that represents the currently selected text in the editor area.</returns>
|
|
/// </signature>
|
|
},
|
|
getSelection: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets a W3C-compatible Selection object form the editable area.
|
|
/// </summary>
|
|
/// <returns type="Selection">a W3C-compatible Selection object form the editable area.</returns>
|
|
/// </signature>
|
|
},
|
|
paste: function(html) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Pastes HTML into the editable area. Cleans up MS Word formatting.
|
|
/// </summary>
|
|
/// <param name="html" type="String" >The HTML to be pasted.</param>
|
|
/// </signature>
|
|
},
|
|
selectedHtml: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Serializes the currently selected text to a XHTML string.
|
|
/// </summary>
|
|
/// <returns type="String">The selectied text as valid XHTML.</returns>
|
|
/// </signature>
|
|
},
|
|
refresh: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Reinitializes the editing area iframe. Should be used after moving the editor in the DOM.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
selectRange: function(range) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Focuses the editable area and selects the range described by the range parameter.
|
|
/// </summary>
|
|
/// <param name="range" type="Range" >The Range object that describes the new selection.</param>
|
|
/// </signature>
|
|
},
|
|
update: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Serializes the current state of the editable area to the <textarea> element.
|
|
/// This method should be called after modifying the editor content through the DOM.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
state: function(toolName) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get the state of a given tool. Introduced in the 2013.2.923 internal build.
|
|
/// </summary>
|
|
/// <param name="toolName" type="String" >The name of the tool that will be tested if formatted.</param>
|
|
/// <returns type="Boolean">The state of the tool.</returns>
|
|
/// </signature>
|
|
},
|
|
value: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the editor value.
|
|
/// </summary>
|
|
/// <param name="value" type="String" >The value to set.</param>
|
|
/// <returns type="String">The value of the Editor as HTML string.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoEditor = function() {
|
|
this.data("kendoEditor", new kendo.ui.Editor());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoEditor: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Editor widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Editor">The kendo.ui.Editor instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoEditor: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Editor widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// encoded — Boolean (default: true)
|
|
/// Indicates whether the Editor should submit encoded HTML tags. By default, the submitted value is encoded.
|
|
///
|
|
/// messages — Object
|
|
/// Defines the text of the labels that are shown within the editor. Used primarily for localization.
|
|
///
|
|
/// stylesheets — Array
|
|
/// Allows custom stylesheets to be included within the editing area.
|
|
///
|
|
/// tools — Array
|
|
/// A collection of tools that are used to interact with the Editor.
|
|
/// Tools may be switched on by specifying their name.
|
|
/// Custom tools and tools that require configuration are defined as objects.The available editor commands are:
|
|
///
|
|
/// imageBrowser — Object
|
|
/// Configuration for image browser dialog.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
FlatColorPicker: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.FlatColorPicker</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.FlatColorPicker = (function() {
|
|
var original = kendo.ui.FlatColorPicker;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
focus: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Focuses the widget.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
value: function(color) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get or set the selected color. If no argument is given, this returns the
|
|
/// currently selected color as a string in format #FFFFFF when the opacity
|
|
/// option is off, or rgba(255, 255, 255, 1) when opacity is requested.If one argument is given, it selects the new color and updates the UI. The
|
|
/// argument can be a string in hex, rgb or rgba format, or a Color object.
|
|
/// This does not trigger the "change" event.
|
|
/// </summary>
|
|
/// <param name="color" type="String" ></param>
|
|
/// <returns type="String">the string representation of the current color.</returns>
|
|
/// </signature>
|
|
},
|
|
color: function(color) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get or set the selected color. If no argument is given, this returns the currently selected color as a kendo.Color object.
|
|
/// </summary>
|
|
/// <param name="color" type="kendo.Color" >The color that should be set as the current value</param>
|
|
/// <returns type="kendo.Color">the current value</returns>
|
|
/// </signature>
|
|
},
|
|
enable: function(enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables or disables the widget.
|
|
/// </summary>
|
|
/// <param name="enable" type="Boolean" >Whether the widget should be enabled (true) or disabled (false). If not specified, the method will enable the widget.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoFlatColorPicker = function() {
|
|
this.data("kendoFlatColorPicker", new kendo.ui.FlatColorPicker());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoFlatColorPicker: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.FlatColorPicker widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.FlatColorPicker">The kendo.ui.FlatColorPicker instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoFlatColorPicker: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.FlatColorPicker widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// opacity — Boolean (default: false)
|
|
/// Specifies whether we should display the opacity slider to allow
|
|
/// selection of transparency.
|
|
///
|
|
/// buttons — Boolean (default: false)
|
|
/// Specifies whether the widget should display the Apply / Cancel buttons.
|
|
///
|
|
/// value — String (default: null)
|
|
/// Specifies the initially selected color.
|
|
///
|
|
/// preview — Boolean (default: true)
|
|
/// Specifies whether we should display the preview bar which displays the
|
|
/// current color and the input field.
|
|
///
|
|
/// autoupdate — Boolean (default: true)
|
|
/// Specifies whether the UI should be updated while the user is typing in
|
|
/// the input field, whenever a valid color can be parsed. If you pass
|
|
/// false for this, the widget will update only when ENTER is pressed.
|
|
///
|
|
/// messages — Object
|
|
/// Allows customization of "Apply" / "Cancel" labels.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Grid: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Grid</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Grid = (function() {
|
|
var original = kendo.ui.Grid;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
addRow: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Adds an empty data item to the grid. In "incell" and "inline" editing mode a table row will be appended. Popup window will be displayed in "popup" editing mode.Fires the edit event.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
cancelChanges: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Cancels any pending changes in the data source. Deleted data items are restored, new data items are removed and updated data items are restored to their initial state.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
cancelRow: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Cancels editing for the table row which is in edit mode. Reverts any changes made.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
cellIndex: function(cell) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the index of the specified table cell. Skips group and detail table cells.
|
|
/// </summary>
|
|
/// <param name="cell" type="Object" >A string, DOM element or jQuery object which represents the table cell. A string is treated as a jQuery selector.</param>
|
|
/// <returns type="Number">the index of the specified table cell.</returns>
|
|
/// </signature>
|
|
},
|
|
clearSelection: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Clears the currently selected table rows or cells (depending on the current selection mode).
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
closeCell: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Stops editing the table cell which is in edit mode. Requires "incell" edit mode.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
collapseGroup: function(row) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Collapses the specified group. This hides the group items.
|
|
/// </summary>
|
|
/// <param name="row" type="Object" >A string, DOM element or jQuery object which represents the group table row. A string is treated as a jQuery selector.</param>
|
|
/// </signature>
|
|
},
|
|
collapseRow: function(row) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Collapses the specified master table row. This hides its detail table row.
|
|
/// </summary>
|
|
/// <param name="row" type="Object" >A string, DOM element or jQuery object which represents the master table row. A string is treated as a jQuery selector.</param>
|
|
/// </signature>
|
|
},
|
|
current: function(cell) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the current cell for keyboard navigation.
|
|
/// </summary>
|
|
/// <param name="cell" type="jQuery" >DOM element or jQuery object which represents the navigatable cell.</param>
|
|
/// <returns type="jQuery">the current cell.</returns>
|
|
/// </signature>
|
|
},
|
|
dataItem: function(row) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the data item to which the specified table row is bound.
|
|
/// </summary>
|
|
/// <param name="row" type="Object" >A string, DOM element or jQuery object which represents the table row. A string is treated as a jQuery selector.</param>
|
|
/// <returns type="kendo.data.ObservableObject">the data item to which the specified table row is bound.</returns>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the widget for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
editCell: function(cell) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Switches the specified table cell in edit mode. Requires "incell" edit mode.Fires the edit event.
|
|
/// </summary>
|
|
/// <param name="cell" type="jQuery" >The jQuery object which represents the table cell.</param>
|
|
/// </signature>
|
|
},
|
|
editRow: function(row) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Switches the specified table row in edit mode. Requires "inline" or "popup" edit mode.Fires the edit event.
|
|
/// </summary>
|
|
/// <param name="row" type="jQuery" >The jQuery object which represents the table row.</param>
|
|
/// </signature>
|
|
},
|
|
expandGroup: function(row) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Expands the specified group. This shows the group items.
|
|
/// </summary>
|
|
/// <param name="row" type="Object" >A string, DOM element or jQuery object which represents the group table row. A string is treated as a jQuery selector. Expands specified group.</param>
|
|
/// </signature>
|
|
},
|
|
expandRow: function(row) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Expands the specified master table row. This shows its detail table row.
|
|
/// </summary>
|
|
/// <param name="row" type="Object" >A string, DOM element or jQuery object which represents the master table row. A string is treated as a jQuery selector. Expands specified master row.</param>
|
|
/// </signature>
|
|
},
|
|
hideColumn: function(column) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Hides the specified grid column.
|
|
/// </summary>
|
|
/// <param name="column" type="Object" >The index of the column or the field to which the columns is bound.</param>
|
|
/// </signature>
|
|
},
|
|
refresh: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Renders all table rows using the current data items.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
removeRow: function(row) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes the specified table row from the grid. Also removes the corresponding data item from the data source.Fires the remove event.
|
|
/// </summary>
|
|
/// <param name="row" type="Object" >A string, DOM element or jQuery object which represents the table row. A string is treated as a jQuery selector.</param>
|
|
/// </signature>
|
|
},
|
|
reorderColumn: function(destIndex,column) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Changes the position of the specified column.
|
|
/// </summary>
|
|
/// <param name="destIndex" type="Number" >The new position of the column. The destination index should be calculated with regard to all columns, including the hidden ones.</param>
|
|
/// <param name="column" type="Object" >The column whose position should be changed.</param>
|
|
/// </signature>
|
|
},
|
|
saveChanges: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Saves any pending changes by calling the sync method.Fires the saveChanges event.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
saveRow: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Switches the table row which is in edit mode and saves any changes made by the user.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
select: function(rows) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the table rows (or cells) which are selected.
|
|
/// </summary>
|
|
/// <param name="rows" type="Object" >A string, DOM element or jQuery object which represents the table row(s) or cell(s). A string is treated as a jQuery selector.</param>
|
|
/// <returns type="jQuery">the selected table rows or cells.</returns>
|
|
/// </signature>
|
|
},
|
|
setDataSource: function(dataSource) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the data source of the widget.
|
|
/// </summary>
|
|
/// <param name="dataSource" type="kendo.data.DataSource" >The data source to which the widget should be bound.</param>
|
|
/// </signature>
|
|
},
|
|
showColumn: function(column) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Shows the specified column.
|
|
/// </summary>
|
|
/// <param name="column" type="Object" >The index of the column or the field to which the columns is bound.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoGrid = function() {
|
|
this.data("kendoGrid", new kendo.ui.Grid());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoGrid: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Grid widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Grid">The kendo.ui.Grid instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoGrid: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Grid widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// altRowTemplate — String|Function
|
|
/// The template which renders the alternating table rows. Be default the grid renders a table row () for every data source item.
|
|
///
|
|
/// autoBind — Boolean (default: true)
|
|
/// If set to false the widget will not bind to the data source during initialization. In this case data binding will occur when the change event of the
|
|
/// data source is fired. By default the widget will bind to the data source specified in the configuration.
|
|
///
|
|
/// columnResizeHandleWidth — Number (default: 3)
|
|
/// Defines the width of the column resize handle in pixels. Apply a larger value for easier grasping.
|
|
///
|
|
/// columns — Array
|
|
/// The configuration of the grid columns. An array of JavaScript objects or strings. A JavaScript objects are interpreted as column configurations. Strings are interpreted as the
|
|
/// field to which the column is bound. The grid will create a column for every item of the array.
|
|
///
|
|
/// columnMenu — Boolean (default: false)
|
|
/// If set to true the grid will display the column menu when the user clicks the chevron icon in the column headers. The column menu allows the user to show and hide columns, filter and sort (if filtering and sorting are enabled).
|
|
/// By default the column menu is not enabled.Can be set to a JavaScript object which represents the column menu configuration.
|
|
///
|
|
/// columnMenu — Object
|
|
/// If set to true the grid will display the column menu when the user clicks the chevron icon in the column headers. The column menu allows the user to show and hide columns, filter and sort (if filtering and sorting are enabled).
|
|
/// By default the column menu is not enabled.Can be set to a JavaScript object which represents the column menu configuration.
|
|
///
|
|
/// dataSource — Object|Array
|
|
/// The data source of the widget which is used render table rows. Can be a JavaScript object which represents a valid data source configuration, a JavaScript array or an existing kendo.data.DataSource
|
|
/// instance.If the dataSource option is set to a JavaScript object or array the widget will initialize a new kendo.data.DataSource instance using that value as data source configuration.If the dataSource option is an existing kendo.data.DataSource instance the widget will use that instance and will not initialize a new one.
|
|
///
|
|
/// detailTemplate — String|Function
|
|
/// The template which renders the detail rows.
|
|
///
|
|
/// editable — Boolean (default: false)
|
|
/// If set to true the user would be able to edit the data to which the grid is bound to. By default editing is disabled.Can be set to a string ("inline", "incell" or "popup") to specify the editing mode. The default editing mode is "incell".Can be set to a JavaScript object which represents the editing configuration.
|
|
///
|
|
/// editable — Object
|
|
/// If set to true the user would be able to edit the data to which the grid is bound to. By default editing is disabled.Can be set to a string ("inline", "incell" or "popup") to specify the editing mode. The default editing mode is "incell".Can be set to a JavaScript object which represents the editing configuration.
|
|
///
|
|
/// filterable — Boolean (default: false)
|
|
/// If set to true the user can filter the data source using the grid filter menu. Filtering is disabled by default.Can be set to a JavaScript object which represents the filter menu configuration.
|
|
///
|
|
/// filterable — Object
|
|
/// If set to true the user can filter the data source using the grid filter menu. Filtering is disabled by default.Can be set to a JavaScript object which represents the filter menu configuration.
|
|
///
|
|
/// groupable — Boolean (default: false)
|
|
/// If set to true the user could group the grid by dragging the column header cells. By default grouping is disabled.Can be set to a JavaScript object which represents the grouping configuration.
|
|
///
|
|
/// groupable — Object
|
|
/// If set to true the user could group the grid by dragging the column header cells. By default grouping is disabled.Can be set to a JavaScript object which represents the grouping configuration.
|
|
///
|
|
/// height — Number|String
|
|
/// The height of the grid. Numeric values are treated as pixels.
|
|
///
|
|
/// navigatable — Boolean (default: false)
|
|
/// If set to true the use could navigate the widget using the keyboard navigation. By default keyboard navigation is disabled.
|
|
///
|
|
/// pageable — Boolean (default: false)
|
|
/// If set to true the grid will display a pager. By default paging is disabled.Can be set to a JavaScript object which represents the pager configuration.
|
|
///
|
|
/// pageable — Object
|
|
/// If set to true the grid will display a pager. By default paging is disabled.Can be set to a JavaScript object which represents the pager configuration.
|
|
///
|
|
/// reorderable — Boolean (default: false)
|
|
/// If set to true the user could reorder the columns by dragging their header cells. By default reordering is disabled.
|
|
///
|
|
/// resizable — Boolean (default: false)
|
|
/// If set to true the user could resize the columns by dragging the edges of their header cells. By default resizing is disabled.
|
|
///
|
|
/// rowTemplate — String|Function
|
|
/// The template which renders rows. Be default renders a table row () for every data source item.
|
|
///
|
|
/// scrollable — Boolean (default: true)
|
|
/// If set to true the grid will display a scrollbar when the total row height (or width) exceeds the grid height (or width). By default scrolling is enabled.Can be set to a JavaScript object which represents the scrolling configuration.
|
|
///
|
|
/// scrollable — Object
|
|
/// If set to true the grid will display a scrollbar when the total row height (or width) exceeds the grid height (or width). By default scrolling is enabled.Can be set to a JavaScript object which represents the scrolling configuration.
|
|
///
|
|
/// selectable — Boolean|String (default: false)
|
|
/// If set to true the user would be able to select grid rows. By default selection is disabled.Can also be set to the following string values:
|
|
///
|
|
/// sortable — Boolean (default: false)
|
|
/// If set to true the user could sort the grid by clicking the column header cells. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.
|
|
///
|
|
/// sortable — Object
|
|
/// If set to true the user could sort the grid by clicking the column header cells. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.
|
|
///
|
|
/// toolbar — Array
|
|
/// The list of commands displayed in the grid toolbar. Commands can be custom or built-in ("cancel", "create", "save").The "cancel" built-in command reverts any data changes done by the end user.The "create" command adds an empty data item to the grid.The "save" command persists any data changes done by the end user.
|
|
///
|
|
/// mobile — Boolean|String (default: false)
|
|
/// If set to true and the grid is viewed on mobile browser it will use adaptive rendering.Can be set to a string phone or tablet which will force the widget to use adaptive rendering regardless of browser type.
|
|
/// The grid uses same layout for both phone and tablet.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
ListView: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.ListView</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.ListView = (function() {
|
|
var original = kendo.ui.ListView;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
add: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts empty item as first item on the current view and prepare it for editing.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
cancel: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Cancels changes in currently edited item.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
clearSelection: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Clears ListView selected items and triggers change event.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the ListView for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
edit: function(item) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Edit specified ListView item. Fires the edit event.
|
|
/// </summary>
|
|
/// <param name="item" type="jQuery" >jQuery object which represents the item to be edited.</param>
|
|
/// </signature>
|
|
},
|
|
refresh: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Reloads the data and repaints the list view.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
remove: function(item) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes specified ListView item. Triggers remove event and if not prevented calls DataSource sync method.
|
|
/// </summary>
|
|
/// <param name="item" type="Object" >jQuery object which represents the item to be removed.</param>
|
|
/// </signature>
|
|
},
|
|
save: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Saves edited ListView item. Triggers save event. If save event is not prevented and validation succeeds will call DataSource sync method.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
select: function(items) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get/set the selected listview item(s).
|
|
/// </summary>
|
|
/// <param name="items" type="Object" >Items to select.</param>
|
|
/// <returns type="jQuery">the selected items if called without arguments.</returns>
|
|
/// </signature>
|
|
},
|
|
setDataSource: function(dataSource) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the dataSource of an existing ListView and rebinds it.
|
|
/// </summary>
|
|
/// <param name="dataSource" type="kendo.data.DataSource" >The data source to which the widget should be bound.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoListView = function() {
|
|
this.data("kendoListView", new kendo.ui.ListView());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoListView: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.ListView widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.ListView">The kendo.ui.ListView instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoListView: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.ListView widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// autoBind — Boolean (default: true)
|
|
/// If set to false the widget will not bind to the data source during initialization. In this case data binding will occur when the change event of the
|
|
/// data source is fired. By default the widget will bind to the data source specified in the configuration.
|
|
///
|
|
/// dataSource — Object|Array
|
|
/// The data source of the widget which is used render table rows. Can be a JavaScript object which represents a valid data source configuration, a JavaScript array or an existing kendo.data.DataSource
|
|
/// instance.If the dataSource option is set to a JavaScript object or array the widget will initialize a new kendo.data.DataSource instance using that value as data source configuration.If the dataSource option is an existing kendo.data.DataSource instance the widget will use that instance and will not initialize a new one.
|
|
///
|
|
/// editTemplate — Function
|
|
/// Specifies ListView item template in edit mode.
|
|
///
|
|
/// navigatable — Boolean (default: false)
|
|
/// Indicates whether keyboard navigation is enabled/disabled.
|
|
///
|
|
/// selectable — Boolean|String (default: false)
|
|
/// Indicates whether selection is enabled/disabled. Possible values:
|
|
///
|
|
/// template — Function
|
|
/// Specifies ListView item template.
|
|
///
|
|
/// altTemplate — Function
|
|
/// Template to be used for rendering the alternate items in the listview.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Menu: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Menu</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Menu = (function() {
|
|
var original = kendo.ui.Menu;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
append: function(item,referenceItem) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Appends an item to a Menu in the specified referenceItem's sub menu.
|
|
/// </summary>
|
|
/// <param name="item" type="Selector" >Target item, specified as a JSON object. Can also handle an array of such objects.</param>
|
|
/// <param name="referenceItem" type="Selector" >A reference item to append the new item in.</param>
|
|
/// <returns type="kendo.ui.Menu">Returns the Menu object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
close: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Closes a sub-menu of a specified item(s) in a Menu.
|
|
/// </summary>
|
|
/// <param name="element" type="Selector" >Target item selector.</param>
|
|
/// <returns type="kendo.ui.Menu">Returns the Menu object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the Menu for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
enable: function(element,enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables or disables an item of a Menu. This can optionally be accomplished on
|
|
/// initialization by setting the disabled="disabled" on the desired menu item html element.
|
|
/// </summary>
|
|
/// <param name="element" type="Selector" >Target element</param>
|
|
/// <param name="enable" type="Boolean" >Desired state</param>
|
|
/// <returns type="kendo.ui.Menu">Returns the Menu object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
insertAfter: function(item,referenceItem) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts an item into a Menu after the specified referenceItem.
|
|
/// </summary>
|
|
/// <param name="item" type="Selector" >Target item, specified as a JSON object. Can also handle an array of such objects.</param>
|
|
/// <param name="referenceItem" type="Selector" >A reference item to insert the new item after.</param>
|
|
/// <returns type="kendo.ui.Menu">Returns the Menu object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
insertBefore: function(item,referenceItem) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts an item into a Menu before the specified referenceItem.
|
|
/// </summary>
|
|
/// <param name="item" type="Selector" >Target item, specified as a JSON object. Can also handle an array of such objects.</param>
|
|
/// <param name="referenceItem" type="Selector" >A reference item to insert the new item before</param>
|
|
/// <returns type="kendo.ui.Menu">Returns the Menu object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
open: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Opens a sub-menu of a specified item(s) in a Menu.
|
|
/// </summary>
|
|
/// <param name="element" type="Selector" >Target item selector.</param>
|
|
/// <returns type="kendo.ui.Menu">Returns the Menu object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
remove: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes a specified item(s) from a Menu.
|
|
/// </summary>
|
|
/// <param name="element" type="Selector" >Target item selector.</param>
|
|
/// <returns type="kendo.ui.Menu">Returns the Menu object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoMenu = function() {
|
|
this.data("kendoMenu", new kendo.ui.Menu());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoMenu: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Menu widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Menu">The kendo.ui.Menu instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoMenu: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Menu widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// animation — Object
|
|
/// A collection of Animation objects, used to change default animations. A value of false will disable all animations in the widget.Available animations for the Menu are listed below. Each animation has a reverse options which is used for the close effect by default, but can be over-ridden
|
|
/// by setting the close animation. Each animation also has a direction which can be set off the animation (i.e. slideIn:Down).
|
|
///
|
|
/// closeOnClick — Boolean (default: true)
|
|
/// Specifies that sub menus should close after item selection (provided they won't navigate).
|
|
///
|
|
/// direction — String (default: "default")
|
|
/// Specifies Menu opening direction. Can be "top", "bottom", "left", "right".
|
|
/// You can also specify different direction for root and sub menu items, separating them with space. The example below will initialize the root menu to open upwards and
|
|
/// its sub menus to the left.
|
|
///
|
|
/// hoverDelay — Number (default: 100)
|
|
/// Specifies the delay in ms before the menu is opened/closed - used to avoid accidental closure on leaving.
|
|
///
|
|
/// openOnClick — Boolean (default: false)
|
|
/// Specifies that the root sub menus will be opened on item click.
|
|
///
|
|
/// orientation — String (default: "horizontal")
|
|
/// Root menu orientation. Could be horizontal or vertical.
|
|
///
|
|
/// popupCollision — String
|
|
/// Specifies how Menu should adjust to screen boundaries. By default the strategy is "fit" for a sub menu with a horizontal parent,
|
|
/// meaning it will move to fit in screen boundaries in all directions, and "fit flip" for a sub menu with vertical parent, meaning it will fit vertically and flip over
|
|
/// its parent horizontally. You can also switch off the screen boundary detection completely if you set the popupCollision to false.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
MultiSelect: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.MultiSelect</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.MultiSelect = (function() {
|
|
var original = kendo.ui.MultiSelect;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
close: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Closes the widget popup.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
dataItems: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns list of raw data records corresponding to the selected items.
|
|
/// </summary>
|
|
/// <returns type="Array">The raw data records. Returns empty array ([]) if no selected options</returns>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the MultiSelect for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
enable: function(enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables or disables the widget.
|
|
/// </summary>
|
|
/// <param name="enable" type="Boolean" >If set to true the widget will be enabled. If set to false the widget will be disabled.</param>
|
|
/// </signature>
|
|
},
|
|
readonly: function(readonly) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Toggles the readonly state of the widget. When the widget is readonly it doesn't allow user input.
|
|
/// </summary>
|
|
/// <param name="readonly" type="Boolean" >If set to true the widget will not allow user input. If set to false the widget will allow user input.</param>
|
|
/// </signature>
|
|
},
|
|
focus: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Focuses the widget.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
open: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Opens the popup.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
refresh: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Refresh the popup by rendering all items again.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
search: function(word) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Searches the data source for the provided value and displays any matches as suggestions.
|
|
/// </summary>
|
|
/// <param name="word" type="String" >The filter value.</param>
|
|
/// </signature>
|
|
},
|
|
setDataSource: function(dataSource) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the dataSource of an existing DropDownList and rebinds it.
|
|
/// </summary>
|
|
/// <param name="dataSource" type="kendo.data.DataSource" ></param>
|
|
/// </signature>
|
|
},
|
|
toggle: function(toggle) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Opens or closes the widget popup.
|
|
/// </summary>
|
|
/// <param name="toggle" type="Boolean" >Defines the whether to open/close the drop-down list.</param>
|
|
/// </signature>
|
|
},
|
|
value: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the value of the multiselect. Accepts string value or Array of strings.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The value to set.</param>
|
|
/// <returns type="Array">The value of the multiselect.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoMultiSelect = function() {
|
|
this.data("kendoMultiSelect", new kendo.ui.MultiSelect());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoMultiSelect: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.MultiSelect widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.MultiSelect">The kendo.ui.MultiSelect instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoMultiSelect: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.MultiSelect widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// animation — Object
|
|
/// Configures the opening and closing animations of the suggestion popup. Setting the animation option to false will disable the opening and closing animations. As a result the suggestion popup will open and close instantly.
|
|
///
|
|
/// autoBind — Boolean (default: true)
|
|
/// Controls whether to bind the widget to the data source on initialization.
|
|
///
|
|
/// autoClose — Boolean (default: true)
|
|
/// Controls whether to close the widget suggestion list on item selection.
|
|
///
|
|
/// dataSource — Object|Array
|
|
/// The data source of the widget which is used to display a list of values. Can be a JavaScript object which represents a valid data source configuration, a JavaScript array or an existing kendo.data.DataSource
|
|
/// instance.If the dataSource option is set to a JavaScript object or array the widget will initialize a new kendo.data.DataSource instance using that value as data source configuration.If the dataSource option is an existing kendo.data.DataSource instance the widget will use that instance and will not initialize a new one.
|
|
///
|
|
/// dataTextField — String (default: "")
|
|
/// The field of the data item that provides the text content of the list items. The widget will filter the data source based on this field.
|
|
///
|
|
/// dataValueField — String (default: "")
|
|
/// The field of the data item that provides the value of the widget.
|
|
///
|
|
/// delay — Number (default: 200)
|
|
/// Specifies the delay in milliseconds after which the multiselect will start filtering dataSource.
|
|
///
|
|
/// enable — Boolean (default: true)
|
|
/// If set to false the widget will be disabled and will not allow user input. The widget is enabled by default and allows user input.
|
|
///
|
|
/// filter — String (default: "none")
|
|
/// The filtering method used to determine the suggestions for the current value. Filtration is turned of by default.
|
|
/// The supported filter values are startswith, endswith and contains.
|
|
///
|
|
/// height — Number (default: 200)
|
|
/// The height of the suggestion popup in pixels. The default value is 200 pixels.
|
|
///
|
|
/// highlightFirst — Boolean (default: true)
|
|
/// If set to true the first suggestion will be automatically highlighted.
|
|
///
|
|
/// ignoreCase — String (default: true)
|
|
/// If set to false case-sensitive search will be performed to find suggestions. The widget performs case-insensitive searching by default.
|
|
///
|
|
/// minLength — Number (default: 1)
|
|
/// The minimum number of characters the user must type before a search is performed. Set to higher value than 1 if the search could match a lot of items.
|
|
///
|
|
/// maxSelectedItems — Number (default: null)
|
|
/// Defines the limit of the selected items. If set to null widget will not limit number of the selected items.
|
|
///
|
|
/// placeholder — String (default: "")
|
|
/// The hint displayed by the widget when it is empty. Not set by default.
|
|
///
|
|
/// headerTemplate — String|Function
|
|
/// Specifies a static HTML content, which will be rendered as a header of the popup element.
|
|
///
|
|
/// itemTemplate — String|Function
|
|
/// The template used to render the items in the popup list.
|
|
///
|
|
/// tagTemplate — String
|
|
/// The template used to render the tags.
|
|
///
|
|
/// value — Array (default: [])
|
|
/// Define the value of the widget
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
NumericTextBox: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.NumericTextBox</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.NumericTextBox = (function() {
|
|
var original = kendo.ui.NumericTextBox;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the NumericTextBox for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
enable: function(enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables or disables the widget.
|
|
/// </summary>
|
|
/// <param name="enable" type="Boolean" >If set to true the widget will be enabled. If set to false the widget will be disabled.</param>
|
|
/// </signature>
|
|
},
|
|
readonly: function(readonly) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Toggles the readonly state of the widget. When the widget is readonly it doesn't allow user input.
|
|
/// </summary>
|
|
/// <param name="readonly" type="Boolean" >If set to true the widget will not allow user input. If set to false the widget will allow user input.</param>
|
|
/// </signature>
|
|
},
|
|
focus: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Focuses the widget.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
max: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the max value of the widget.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The max value to set.</param>
|
|
/// <returns type="Number">The max value of the widget.</returns>
|
|
/// </signature>
|
|
},
|
|
min: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the min value of the widget.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The min value to set.</param>
|
|
/// <returns type="Number">The min value of the widget.</returns>
|
|
/// </signature>
|
|
},
|
|
step: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the step value of the widget.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The step value to set.</param>
|
|
/// <returns type="Number">The step value of the widget.</returns>
|
|
/// </signature>
|
|
},
|
|
value: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the value of the numerictextbox.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The value to set.</param>
|
|
/// <returns type="Number">The value of the widget.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoNumericTextBox = function() {
|
|
this.data("kendoNumericTextBox", new kendo.ui.NumericTextBox());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoNumericTextBox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.NumericTextBox widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.NumericTextBox">The kendo.ui.NumericTextBox instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoNumericTextBox: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.NumericTextBox widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// culture — String (default: "en-US")
|
|
/// Specifies the culture info used by the widget.
|
|
///
|
|
/// decimals — Number (default: null)
|
|
/// Specifies the number precision. If not set precision defined by current culture is used.
|
|
///
|
|
/// downArrowText — String (default: "Decrease value")
|
|
/// Specifies the text of the tooltip on the down arrow.
|
|
///
|
|
/// format — String (default: "n")
|
|
/// Specifies the format of the number. Any valid number format is allowed.
|
|
///
|
|
/// max — Number (default: null)
|
|
/// Specifies the largest value the user can enter.
|
|
///
|
|
/// min — Number (default: null)
|
|
/// Specifies the smallest value the user can enter.
|
|
///
|
|
/// placeholder — String (default: "")
|
|
/// The hint displayed by the widget when it is empty. Not set by default.
|
|
///
|
|
/// spinners — Boolean (default: true)
|
|
/// Specifies whether the up and down spin buttons should be rendered
|
|
///
|
|
/// step — Number (default: 1)
|
|
/// Specifies the value used to increment or decrement widget value.
|
|
///
|
|
/// upArrowText — String (default: "Increase value")
|
|
/// Specifies the text of the tooltip on the up arrow.
|
|
///
|
|
/// value — Number (default: null)
|
|
/// Specifies the value of the NumericTextBox widget.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Pager: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Pager</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Pager = (function() {
|
|
var original = kendo.ui.Pager;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
totalPages: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the number of pages.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
pageSize: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the page size - maximum number of items allowed on one page.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
page: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Set the specified page as a current page. If called without arguments - returns the current page.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
refresh: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Updates all values of pager elements so that these values fit the values of DataSource. This method is automatically called after DataSource change event is fired.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds all callbacks created within pager initialization. This method doesn't remove pager element from DOM.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoPager = function() {
|
|
this.data("kendoPager", new kendo.ui.Pager());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoPager: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Pager widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Pager">The kendo.ui.Pager instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoPager: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Pager widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// autoBind — Boolean (default: true)
|
|
/// Indicates whether the pager refresh method will be called within its initialization.
|
|
///
|
|
/// buttonCount — Number (default: 10)
|
|
/// Defines the number of buttons displayed in the numeric pager.
|
|
///
|
|
/// dataSource — Object
|
|
/// Instance of kendo DataSource. See the kendo.data.DataSource.This option is mandatory because the Pager is tightly connected with DataSource. The pager is UI widget for managing paging over the DataSource. The Pager gets values like page size or total count of items from DataSource.
|
|
///
|
|
/// selectTemplate — String
|
|
/// The template for selected page number link.
|
|
///
|
|
/// linkTemplate — String
|
|
/// The template for page number links.
|
|
///
|
|
/// info — Boolean (default: true)
|
|
/// Defines if a label showing current paging information will be displayed.
|
|
///
|
|
/// input — Boolean (default: false)
|
|
/// Defines if an input element which allows the user to navigate to given page will be displayed.
|
|
///
|
|
/// numeric — Boolean (default: true)
|
|
/// Defines if numeric portion of the pager will be shown.
|
|
///
|
|
/// pageSizes — Boolean|Array (default: false)
|
|
/// Displays a list with predefined page sizes. An array of values to be displayed can be provided. If pageSize option is provided for DataSource then this pageSize value will be automatically selected in created selectbox.
|
|
///
|
|
/// previousNext — Boolean (default: true)
|
|
/// Defines if buttons for navigating to the first, last, previous and next pages will be shown.
|
|
///
|
|
/// refresh — Boolean (default: false)
|
|
/// Defines if a refresh button will be displayed. Click on that button will call DataSource read() method to get actual data.
|
|
///
|
|
/// messages — Object
|
|
/// Defines texts shown within the pager. Use this option to customize or localize the pager messages.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
PanelBar: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.PanelBar</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.PanelBar = (function() {
|
|
var original = kendo.ui.PanelBar;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
append: function(item,referenceItem) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Appends an item/s to the PanelBar.
|
|
/// </summary>
|
|
/// <param name="item" type="Selector" >Target item, specified as the JSON representation of an object. You can pass item text, content or contentUrl here. Can handle an HTML string or array of such strings or JSON.</param>
|
|
/// <param name="referenceItem" type="Selector" >A reference item to append the new item in the PanelBar, can be omitted.</param>
|
|
/// <returns type="kendo.ui.PanelBar">Returns the PanelBar object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
collapse: function(element,useAnimation) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Collapses the specified item(s) of a PanelBar.
|
|
/// </summary>
|
|
/// <param name="element" type="Selector" >The PanelBar item(s) to be collapsed, expressed as a string containing a selector expression or represented by a jQuery selector.</param>
|
|
/// <param name="useAnimation" type="Boolean" >_optional, default: _Temporarily enables (true) or disables (false) any visual animation(s) when collapsing items.</param>
|
|
/// <returns type="kendo.ui.PanelBar">Returns the PanelBar object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the PanelBar for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
enable: function(element,enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables (true) or disables (false) the specified item(s) of the
|
|
/// PanelBar.
|
|
/// </summary>
|
|
/// <param name="element" type="Object" >The PanelBar item(s) to be enabled (true) or disabled (false), expressed as a string containing a selector expression or represented by a jQuery selector.</param>
|
|
/// <param name="enable" type="Boolean" >The desired state - enabled (true) or disabled (false) - of the target element(s).</param>
|
|
/// </signature>
|
|
},
|
|
expand: function(element,useAnimation) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Expands the specified item(s) of a PanelBar.
|
|
/// </summary>
|
|
/// <param name="element" type="Selector" >The PanelBar item(s) to be expanded, expressed as a selector.</param>
|
|
/// <param name="useAnimation" type="Boolean" >_optional, default: _Temporarily enables (true) or disables (false) any visual animation(s) when expanding items.</param>
|
|
/// <returns type="kendo.ui.PanelBar">Returns the PanelBar object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
insertAfter: function(item,referenceItem) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts a PanelBar item after the specified referenceItem
|
|
/// </summary>
|
|
/// <param name="item" type="Selector" >Target item, specified as a JSON object. You can pass item text, content or contentUrl here. Can handle an HTML string or array of such strings or JSON.</param>
|
|
/// <param name="referenceItem" type="Selector" >A reference item to insert the new item after</param>
|
|
/// </signature>
|
|
},
|
|
insertBefore: function(item,referenceItem) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts a PanelBar item before the specified referenceItem
|
|
/// </summary>
|
|
/// <param name="item" type="Selector" >Target item, specified as a JSON object. You can pass item text, content or contentUrl here. Can handle an TML string or array of such strings or JSON.</param>
|
|
/// <param name="referenceItem" type="Selector" >A reference item to insert the new item before.</param>
|
|
/// <returns type="kendo.ui.PanelBar">Returns the PanelBar object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
reload: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Reloads the content of a PanelBar from an AJAX request.
|
|
/// </summary>
|
|
/// <param name="element" type="Selector" >Target element</param>
|
|
/// </signature>
|
|
},
|
|
remove: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes the specified PanelBar item(s).
|
|
/// </summary>
|
|
/// <param name="element" type="Object" >The PanelBar item(s) to be removed, expressed as a selector string, DOM element or a jQuery object.</param>
|
|
/// </signature>
|
|
},
|
|
select: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Selects the specified item of the PanelBar. If this method is invoked without arguments, it
|
|
/// returns the currently selected item.
|
|
/// </summary>
|
|
/// <param name="element" type="Object" >The PanelBar item to be selected, expressed as a string containing a selector expression or represented by a jQuery selector.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoPanelBar = function() {
|
|
this.data("kendoPanelBar", new kendo.ui.PanelBar());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoPanelBar: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.PanelBar widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.PanelBar">The kendo.ui.PanelBar instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoPanelBar: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.PanelBar widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// animation — Boolean
|
|
/// A collection of visual animations used when PanelBar items are expand or collapsed through
|
|
/// user interactions. Setting this option to false will disable all animations.
|
|
///
|
|
/// animation — Object
|
|
/// A collection of visual animations used when PanelBar items are expand or collapsed through
|
|
/// user interactions. Setting this option to false will disable all animations.
|
|
///
|
|
/// expandMode — String (default: "multiple")
|
|
/// Specifies how the PanelBar items are displayed when opened and closed. The following values
|
|
/// are available:
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
ProgressBar: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.ProgressBar</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.ProgressBar = (function() {
|
|
var original = kendo.ui.ProgressBar;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
enable: function(enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables/Disables the ProgressBar widget.
|
|
/// </summary>
|
|
/// <param name="enable" type="Boolean" >The argument, which defines whether to enable/disable the ProgressBar. If no argument is passed, the widget will be enabled.</param>
|
|
/// </signature>
|
|
},
|
|
value: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the value of the ProgressBar. It accepts a number, a string or false as a parameter. Setting the value to false will set the state of the ProgressBar to indeterminate. If no parameter is passed, it returns the underlying value.
|
|
/// </summary>
|
|
/// <param name="value" type="Number" >The value to be set.</param>
|
|
/// <returns type="Number">the value of the widget.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoProgressBar = function() {
|
|
this.data("kendoProgressBar", new kendo.ui.ProgressBar());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoProgressBar: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.ProgressBar widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.ProgressBar">The kendo.ui.ProgressBar instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoProgressBar: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.ProgressBar widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// animation — Object
|
|
/// Configures the progress animation. Currently only the duration of the animation could be set.
|
|
///
|
|
/// chunkCount — Number (default: 5)
|
|
/// Specifies the number of chunks.
|
|
///
|
|
/// enable — Boolean (default: true)
|
|
/// If set to false the widget will be disabled. It will still allow changing the value. The widget is enabled by default.
|
|
///
|
|
/// max — Number (default: 100)
|
|
/// The maximum value of the ProgressBar.
|
|
///
|
|
/// min — Number (default: 0)
|
|
/// The minimum value of the ProgressBar.
|
|
///
|
|
/// orientation — String (default: "horizontal")
|
|
/// The orientation of the ProgressBar. Possible values are horizontal and vertical.
|
|
///
|
|
/// reverse — Boolean (default: false)
|
|
/// Specifies if the progress direction will be reversed.
|
|
///
|
|
/// showStatus — Boolean (default: true)
|
|
/// Specifies if the progress status will be shown.
|
|
///
|
|
/// type — String (default: "value")
|
|
/// Specifies the type of the ProgressBar. The supported types are value, percent and chunk.
|
|
///
|
|
/// value — Number
|
|
/// The underlying value of the ProgressBar.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
RangeSlider: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.RangeSlider</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.RangeSlider = (function() {
|
|
var original = kendo.ui.RangeSlider;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the RangeSlider for safe removal from the DOM.Detaches event handlers and removes data entries in order to avoid memory leaks.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
enable: function(enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enable/Disable the RangeSlider widget.
|
|
/// </summary>
|
|
/// <param name="enable" type="Boolean" >The argument, which defines whether to enable/disable the RangeSlider.</param>
|
|
/// </signature>
|
|
},
|
|
value: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// The value method gets or sets the start and end values of the RangeSlider. It
|
|
/// accepts an array as parameter, and returns an object array with the start and end
|
|
/// selection values.
|
|
/// </summary>
|
|
/// <param name="value" type="Number" >The new value of the RangeSlider.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoRangeSlider = function() {
|
|
this.data("kendoRangeSlider", new kendo.ui.RangeSlider());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoRangeSlider: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.RangeSlider widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.RangeSlider">The kendo.ui.RangeSlider instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoRangeSlider: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.RangeSlider widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// largeStep — Number (default: 5)
|
|
/// The delta with which the value will change when the user presses the Page Up or Page Down key (the drag
|
|
/// handle must be focused). Note: The allied largeStep will also set large tick for every large step.
|
|
///
|
|
/// max — Number (default: 10)
|
|
/// The maximum value of the RangeSlider.
|
|
///
|
|
/// min — Number (default: 0)
|
|
/// The minimum value of the RangeSlider.
|
|
///
|
|
/// orientation — String (default: "horizontal")
|
|
/// F
|
|
/// The orientation of a RangeSlider; "horizontal" or
|
|
/// "vertical".
|
|
///
|
|
/// selectionEnd — Number
|
|
/// The selection end value of the RangeSlider.
|
|
///
|
|
/// selectionStart — Number
|
|
/// The selection start value of the RangeSlider.
|
|
///
|
|
/// smallStep — Number (default: 1)
|
|
/// The small step value of the RangeSlider. The underlying value will be changed when the end
|
|
/// user (1) clicks on the increase or decrease buttons of the RangeSlider, (2) presses the
|
|
/// arrow keys (the drag handle must be focused), or (3) drags the drag handle.
|
|
///
|
|
/// tickPlacement — String (default: "both")
|
|
/// Denotes the location of the tick marks in the RangeSlider. The available options are:
|
|
///
|
|
/// tooltip — Object
|
|
/// Configuration of the RangeSlider tooltip.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Scheduler: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Scheduler</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Scheduler = (function() {
|
|
var original = kendo.ui.Scheduler;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
addEvent: function(data) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Adds a new scheduler event and opens the edit form.
|
|
/// </summary>
|
|
/// <param name="data" type="Object" >The object containing the scheduler event fields.</param>
|
|
/// </signature>
|
|
},
|
|
cancelEvent: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Cancels the scheduler event editing. Closes the edit form.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
date: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the current scheduler date.
|
|
/// </summary>
|
|
/// <param name="value" type="Date" >The new date to set.</param>
|
|
/// <returns type="Date">the current date.</returns>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the widget for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
editEvent: function(event) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Opens the specified scheduler event in the edit form.
|
|
/// </summary>
|
|
/// <param name="event" type="Object" >The event which should be put in edit mode. Also accepts a string which is the uid of the event which should be edited.</param>
|
|
/// </signature>
|
|
},
|
|
removeEvent: function(event) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes the specified scheduler event.
|
|
/// </summary>
|
|
/// <param name="event" type="Object" >The event which should be removed. Also accepts a string which is the uid of the event which should be removed.</param>
|
|
/// </signature>
|
|
},
|
|
saveEvent: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Saves the scheduler event which is open in the edit form and closes it.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
setDataSource: function(dataSource) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the data source of the widget.
|
|
/// </summary>
|
|
/// <param name="dataSource" type="kendo.data.SchedulerDataSource" >The data source to which the widget should be bound.</param>
|
|
/// </signature>
|
|
},
|
|
slotByPosition: function(xPosition,yPosition) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get the time slot from given horizontal (x) and vertical (y) position.
|
|
/// </summary>
|
|
/// <param name="xPosition" type="Number" >The horizontal position.</param>
|
|
/// <param name="yPosition" type="Number" >The vertical position.</param>
|
|
/// <returns type="Object">The time slot.</returns>
|
|
/// </signature>
|
|
},
|
|
slotByElement: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get the time slot from given element.
|
|
/// </summary>
|
|
/// <param name="element" type="Object" ></param>
|
|
/// <returns type="Object">The time slot.</returns>
|
|
/// </signature>
|
|
},
|
|
view: function(type) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the current scheduler view.
|
|
/// </summary>
|
|
/// <param name="type" type="String" >The view type to select.</param>
|
|
/// <returns type="kendo.ui.SchedulerView">the current scheduler view.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoScheduler = function() {
|
|
this.data("kendoScheduler", new kendo.ui.Scheduler());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoScheduler: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Scheduler widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Scheduler">The kendo.ui.Scheduler instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoScheduler: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Scheduler widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// allDayEventTemplate — String|Function
|
|
/// The template used to render the "all day" scheduler events.The fields which can be used in the template are:
|
|
///
|
|
/// allDaySlot — Boolean (default: true)
|
|
/// If set to true the scheduler will display a slot for "all day" events.
|
|
///
|
|
/// autoBind — Boolean (default: true)
|
|
/// If set to false the widget will not bind to the data source during initialization. In this case data binding will occur when the change event of the
|
|
/// data source is fired. By default the widget will bind to the data source specified in the configuration.
|
|
///
|
|
/// dataSource — Object|Array
|
|
/// The data source of the widget which contains the scheduler events. Can be a JavaScript object which represents a valid data source configuration, a JavaScript array or an existing kendo.data.SchedulerDataSource
|
|
/// instance.If the dataSource option is set to a JavaScript object or array the widget will initialize a new kendo.data.SchedulerDataSource instance using that value as data source configuration.If the dataSource option is an existing kendo.data.SchedulerDataSource instance the widget will use that instance and will not initialize a new one.
|
|
///
|
|
/// date — Date
|
|
/// The current date of the scheduler. Used to determine the period which is displayed by the widget.
|
|
///
|
|
/// dateHeaderTemplate — String|Function
|
|
/// The template used to render the date header cells.By default the scheduler renders the date using the current culture date format.The fields which can be used in the template are:
|
|
///
|
|
/// editable — Boolean (default: true)
|
|
/// If set to true the user would be able to create new scheduler events and modify or delete existing ones.
|
|
///
|
|
/// editable — Object
|
|
/// If set to true the user would be able to create new scheduler events and modify or delete existing ones.
|
|
///
|
|
/// endTime — Date
|
|
/// The end time of the week and day views. The scheduler will display events ending before the endTime.
|
|
///
|
|
/// eventTemplate — String|Function
|
|
/// The template used to render the scheduler events.The fields which can be used in the template are:
|
|
///
|
|
/// footer — Boolean
|
|
/// If set to false the footer of the scheduler would not be displayed.
|
|
///
|
|
/// footer — Object
|
|
/// If set to false the footer of the scheduler would not be displayed.
|
|
///
|
|
/// group — Object
|
|
/// The configuration of the scheduler resource(s) grouping.
|
|
///
|
|
/// height — Number|String
|
|
/// The height of the widget. Numeric values are treated as pixels.
|
|
///
|
|
/// majorTick — Number (default: 60)
|
|
/// The number of minutes represented by a major tick.
|
|
///
|
|
/// majorTimeHeaderTemplate — String|Function
|
|
/// The template used to render the major ticks.By default the scheduler renders the time using the current culture time format.The fields which can be used in the template are:
|
|
///
|
|
/// max — Date (default: 31/12/2099)
|
|
/// Constraints the maximum date which can be selected via the scheduler navigation.
|
|
///
|
|
/// messages — Object
|
|
/// The configuration of the scheduler messages. Use this option to customize or localize the scheduler messages.
|
|
///
|
|
/// min — Date (default: 1/1/1900)
|
|
/// Constraints the minimum date which can be selected via the scheduler navigation.
|
|
///
|
|
/// minorTickCount — Number (default: 2)
|
|
/// The number of time slots to display per major tick.
|
|
///
|
|
/// minorTimeHeaderTemplate — String|Function
|
|
/// The template used to render the minor ticks.By default the scheduler renders a " ".The fields which can be used in the template are:
|
|
///
|
|
/// mobile — Boolean|String (default: false)
|
|
/// If set to true and the scheduler is viewed on mobile browser it will use adaptive rendering.Can be set to a string phone or tablet which will force the widget to use adaptive rendering regardless of browser type.
|
|
///
|
|
/// resources — Array
|
|
/// The configuration of the scheduler resource(s). A scheduler resource is optional metadata that can be associated
|
|
/// with a scheduler event.
|
|
///
|
|
/// selectable — Boolean (default: false)
|
|
/// If set to true the user would be able to select scheduler cells and events. By default selection is disabled.
|
|
///
|
|
/// showWorkHours — Boolean (default: false)
|
|
/// If set to true the view will be initially shown in business hours mode. By default view is displyed in full day mode.
|
|
///
|
|
/// snap — Boolean (default: true)
|
|
/// If set to true the scheduler will snap events to the nearest slot during dragging (resizing or moving). Set it to false to allow free moving and resizing of events.
|
|
///
|
|
/// startTime — Date
|
|
/// The start time of the week and day views. The scheduler will display events starting after the startTime.
|
|
///
|
|
/// timezone — String
|
|
/// The timezone which the scheduler will use to display the scheduler appointment dates. By default the current system timezone is used. This is an acceptable default when the
|
|
/// scheduler widget is bound to local array of events. It is advisable to specify a timezone if the scheduler is bound to a remote service.
|
|
/// That way all users would see the same dates and times no matter their configured system timezone.The complete list of the supported timezones is available in the List of IANA time zones Wikipedia page.
|
|
///
|
|
/// views — Array
|
|
/// The views displayed by the scheduler and their configuration. The array items can be either objects specifying the view configuration or strings representing the view types (assuming default configuration).
|
|
/// By default the Kendo UI Scheduler widget displays "day" and "week" view.
|
|
///
|
|
/// width — Number|String
|
|
/// The width of the widget. Numeric values are treated as pixels.
|
|
///
|
|
/// workDayStart — Date
|
|
/// Sets the start of the work day when the "Show business hours" button is clicked.
|
|
///
|
|
/// workDayEnd — Date
|
|
/// Sets the end of the work day when the "Show business hours" button is clicked.
|
|
///
|
|
/// workWeekStart — Number (default: 1)
|
|
/// The start of working week (index based).
|
|
///
|
|
/// workWeekEnd — Number (default: 5)
|
|
/// The end of working week (index based).
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Slider: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Slider</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Slider = (function() {
|
|
var original = kendo.ui.Slider;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the Slider for safe removal from the DOM.Detaches event handlers and removes data entries in order to avoid memory leaks.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
enable: function(enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enable/Disable the Slider widget.
|
|
/// </summary>
|
|
/// <param name="enable" type="Boolean" >The argument, which defines whether to enable/disable the Slider.</param>
|
|
/// </signature>
|
|
},
|
|
value: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the value of a Slider. It accepts a string or number as parameters and returns
|
|
/// a number representing the underlying value.
|
|
/// </summary>
|
|
/// <param name="value" type="String" >_optional, default: _The value to be set for a Slider.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoSlider = function() {
|
|
this.data("kendoSlider", new kendo.ui.Slider());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoSlider: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Slider widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Slider">The kendo.ui.Slider instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoSlider: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Slider widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// decreaseButtonTitle — String (default: "Decrease")
|
|
/// The title of the decrease button of the Slider.
|
|
///
|
|
/// increaseButtonTitle — String (default: "Increase")
|
|
/// The title of the increase button of the Slider.
|
|
///
|
|
/// largeStep — Number (default: 5)
|
|
/// The delta with which the value will change when the user presses the Page Up or Page Down key (the drag
|
|
/// handle must be focused). Note: The allied largeStep will also set large tick for every large step.
|
|
///
|
|
/// max — Number (default: 10)
|
|
/// The maximum value of the Slider.
|
|
///
|
|
/// min — Number (default: 0)
|
|
/// The minimum value of the Slider.
|
|
///
|
|
/// orientation — String (default: "horizontal")
|
|
/// The orientation of a Slider: "horizontal" or "vertical".
|
|
///
|
|
/// showButtons — Boolean (default: true)
|
|
/// Can be used to show (true) or hide (false) the
|
|
/// increase and decrease buttons of a Slider.
|
|
///
|
|
/// smallStep — Number (default: 1)
|
|
/// The small step value of the Slider. The underlying value will be changed when the end user
|
|
/// (1) clicks on the increase or decrease buttons of the Slider, (2) presses the arrow keys
|
|
/// (the drag handle must be focused), or (3) drags the drag handle.
|
|
///
|
|
/// tickPlacement — String (default: "both")
|
|
/// Denotes the location of the tick marks in the Slider. The available options are:
|
|
///
|
|
/// tooltip — Object
|
|
/// Configuration of the Slider tooltip.
|
|
///
|
|
/// value — Number
|
|
/// The underlying value of the Slider.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Splitter: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Splitter</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Splitter = (function() {
|
|
var original = kendo.ui.Splitter;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
ajaxRequest: function(pane,url,data) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Loads the content of a pane from a local or remote URL.
|
|
/// </summary>
|
|
/// <param name="pane" type="Object" >The targeted pane whose content is to be loaded via a URL.</param>
|
|
/// <param name="url" type="String" >A local or remote URL from which the content of the pane is to be loaded.</param>
|
|
/// <param name="data" type="Object" >Any data that is necessary to be sent to the server.</param>
|
|
/// </signature>
|
|
},
|
|
append: function(config) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Appends a new pane. The method returns the pane element, so it can be populated with arbitrary content, if contentUrl is not set.
|
|
/// Invoking this method will force the widget to redraw and it will trigger the resize event.
|
|
/// </summary>
|
|
/// <param name="config" type="Object" >The new pane configuration</param>
|
|
/// </signature>
|
|
},
|
|
collapse: function(pane) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Collapses a specified pane. Invoking this method will force the widget to redraw and it will trigger the resize event.
|
|
/// Note: Invoking the method will not trigger a collapse event.
|
|
/// </summary>
|
|
/// <param name="pane" type="Object" >The pane to be collapsed.</param>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the widget for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
expand: function(pane) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Expands a specified pane. Invoking this method will force the widget to redraw and it will trigger the resize event.
|
|
/// Note: Invoking the method will not trigger an expand event.
|
|
/// </summary>
|
|
/// <param name="pane" type="Object" >The pane to be expanded.</param>
|
|
/// </signature>
|
|
},
|
|
insertAfter: function(config,referencePane) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts a new pane after the specified one. The method returns the pane element, so it can be populated with arbitrary content, if contentUrl is not set.
|
|
/// Invoking this method will force the widget to redraw and it will trigger the resize event.
|
|
/// </summary>
|
|
/// <param name="config" type="Object" >The new pane configuration.</param>
|
|
/// <param name="referencePane" type="Object" >The existing pane after which the new one will be inserted.</param>
|
|
/// </signature>
|
|
},
|
|
insertBefore: function(config,referencePane) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts a new pane before the specified one. The method returns the pane element, so it can be populated with arbitrary content, if contentUrl is not set.
|
|
/// Invoking this method will force the widget to redraw and it will trigger the resize event.
|
|
/// </summary>
|
|
/// <param name="config" type="Object" >The new pane configuration.</param>
|
|
/// <param name="referencePane" type="Object" >The existing pane before which the new one will be inserted.</param>
|
|
/// </signature>
|
|
},
|
|
max: function(pane,value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the maximum size of a pane. Setting this value will not cause the widget to redraw, nor will it trigger any events.
|
|
/// </summary>
|
|
/// <param name="pane" type="Object" >The pane being targeted for a new minimum size configuration value.</param>
|
|
/// <param name="value" type="String" >The maximum size value of the pane defined as pixels (i.e. "200px") or as a percentage (i.e. "50%").</param>
|
|
/// </signature>
|
|
},
|
|
min: function(pane,value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the minimum size of a pane. Setting this value will not cause the widget to redraw, nor will it trigger any events.
|
|
/// </summary>
|
|
/// <param name="pane" type="Object" >The pane being targeted for a new minimum size configuration value.</param>
|
|
/// <param name="value" type="String" >The minimum size value of the pane defined as pixels (i.e. "200px") or as a percentage (i.e. "50%").</param>
|
|
/// </signature>
|
|
},
|
|
remove: function(pane) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes one or more panes. The method returns the Splitter instance.
|
|
/// Invoking this method will force the widget to redraw and it will trigger the resize event.
|
|
/// </summary>
|
|
/// <param name="pane" type="Object" >The pane(s) to be removed.</param>
|
|
/// </signature>
|
|
},
|
|
size: function(pane,value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Set the size of the pane. Setting this value will cause the widget to redraw and it will trigger the resize event.
|
|
/// </summary>
|
|
/// <param name="pane" type="Object" >The pane to be resized.</param>
|
|
/// <param name="value" type="String" >The new size of the pane defined as pixels (i.e. "200px") or as a percentage (i.e. "50%"). Note: This value must not exceed panes.max or be less then panes.min.</param>
|
|
/// </signature>
|
|
},
|
|
toggle: function(pane,expand) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Toggles the state of a specified pane (i.e. collapsed or expanded).
|
|
/// Invoking this method will force the widget to redraw and it will trigger the resize event.
|
|
/// Note: Invoking the method will not trigger collapse or expand events.
|
|
/// </summary>
|
|
/// <param name="pane" type="Object" >The pane to be collapsed.</param>
|
|
/// <param name="expand" type="Boolean" >Represents the desired state of the specified pane; to be expanded (true) or collapsed (false). If undefined, toggle() will collapse the pane if it is expanded or will expand the pane if it is collapsed.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoSplitter = function() {
|
|
this.data("kendoSplitter", new kendo.ui.Splitter());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoSplitter: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Splitter widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Splitter">The kendo.ui.Splitter instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoSplitter: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Splitter widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// orientation — String (default: "horizontal")
|
|
/// Specifies the orientation of the widget. Supported values are "horizontal" and "vertical".
|
|
///
|
|
/// panes — Array
|
|
/// An array of pane definitions.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
TabStrip: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.TabStrip</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.TabStrip = (function() {
|
|
var original = kendo.ui.TabStrip;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
activateTab: function(item) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Activates a tab specified as a selector. Note: Invoking this method will not trigger any events.
|
|
/// </summary>
|
|
/// <param name="item" type="jQuery" >The target tab, specified as a selector, to be activated.</param>
|
|
/// </signature>
|
|
},
|
|
append: function(tab) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Appends a tab to the collection of tabs in a TabStrip.
|
|
/// </summary>
|
|
/// <param name="tab" type="Object" >Target tab, specified as a JSON object. You can pass tab text, content or contentUrl here. Can handle an HTML string or array of such strings or JSON.</param>
|
|
/// <returns type="kendo.ui.TabStrip">Returns the TabStrip object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
contentElement: function(itemIndex) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Obtains the DOM element that encloses tab content by its tab index in the TabStrip.
|
|
/// </summary>
|
|
/// <param name="itemIndex" type="Number" >The index of the tab in the TabStrip.</param>
|
|
/// <returns type="Element">The DOM element enclosing tab content by its tab index in the TabStrip.</returns>
|
|
/// </signature>
|
|
},
|
|
contentHolder: function(itemIndex) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Obtains the DOM element that holds tab content by its tab index in the TabStrip.
|
|
/// The difference between contentElement and contentHolder is that contentHolder returns the DOM element that really holds the content, which on mobile is the scroll container.
|
|
/// </summary>
|
|
/// <param name="itemIndex" type="Number" >The index of the tab in the TabStrip.</param>
|
|
/// <returns type="Element">The DOM element holding tab content by its tab index in the TabStrip.</returns>
|
|
/// </signature>
|
|
},
|
|
deactivateTab: function(item) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Deactivates a tab specified as a selector. Note: Invoking this method will not trigger any events.
|
|
/// </summary>
|
|
/// <param name="item" type="jQuery" >The target tab, specified as a selector, to be deactivated.</param>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the TabStrip for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
disable: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Disables a tab(s) of a TabStrip.
|
|
/// </summary>
|
|
/// <param name="element" type="Object" >The target tab(s), specified as a selector, to be disabled.</param>
|
|
/// <returns type="kendo.ui.TabStrip">Returns the TabStrip object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
enable: function(element,enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Disables (false) or enables (true) a tab(s) of a TabStrip.
|
|
/// </summary>
|
|
/// <param name="element" type="Object" >The target tab(s), specified as a selector, to be enabled (true) or disabled (false).</param>
|
|
/// <param name="enable" type="Boolean" >Desired state of the tab(s) specified by the selector; enabled (true) or disabled (false).</param>
|
|
/// <returns type="kendo.ui.TabStrip">Returns the TabStrip object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
insertAfter: function(item,referenceTab) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts a newly-created tab after a specified tab.
|
|
/// </summary>
|
|
/// <param name="item" type="Object" >Target tab, specified as a JSON object. You can pass tab text, content or contentUrl here. Can handle an HTML string or array of such strings or JSON.</param>
|
|
/// <param name="referenceTab" type="Object" >A reference tab to insert the new item after.</param>
|
|
/// <returns type="kendo.ui.TabStrip">Returns the TabStrip object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
insertBefore: function(item,referenceTab) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts a newly-created tab before a specified tab.
|
|
/// </summary>
|
|
/// <param name="item" type="Object" >Target tab, specified as a JSON object. You can pass tab text, content or contentUrl here. Can handle an HTML string or array of such strings or JSON.</param>
|
|
/// <param name="referenceTab" type="Object" >A reference tab to insert the new item before</param>
|
|
/// <returns type="kendo.ui.TabStrip">Returns the TabStrip object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
items: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the list of DOM elements that represent the tabs.
|
|
/// </summary>
|
|
/// <returns type="HTMLCollection">the tabs as an HTML collection of elements.</returns>
|
|
/// </signature>
|
|
},
|
|
reload: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Reloads TabStrip tab(s) via AJAX.
|
|
/// </summary>
|
|
/// <param name="element" type="Object" >The target tab(s), specified as a selector or jQuery object, to be reloaded via AJAX.</param>
|
|
/// <returns type="kendo.ui.TabStrip">Returns the TabStrip object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
remove: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes a specified tab from a TabStrip.
|
|
/// </summary>
|
|
/// <param name="element" type="Object" >The target tab(s), specified as a selector or jQuery object, to be removed.</param>
|
|
/// <returns type="kendo.ui.TabStrip">Returns the TabStrip object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
select: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get/set the selected tab. If called without arguments, it returns the
|
|
/// currently selected tab.
|
|
/// </summary>
|
|
/// <param name="element" type="Object" >The target tab(s), specified as a selector, jQuery object or index in the tab group.</param>
|
|
/// <returns type="jQuery">the selected tab if called without arguments. kendo.ui.TabStrip if called with arguments.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoTabStrip = function() {
|
|
this.data("kendoTabStrip", new kendo.ui.TabStrip());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoTabStrip: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.TabStrip widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.TabStrip">The kendo.ui.TabStrip instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoTabStrip: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.TabStrip widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// animation — Object
|
|
/// A collection of visual animations used when TabStrip tab are selected through
|
|
/// user interactions. Setting this option to false will disable all animations.
|
|
///
|
|
/// collapsible — Boolean (default: false)
|
|
/// Specifies whether the TabStrip should be able to collapse completely when clicking an expanded tab.
|
|
///
|
|
/// dataContentField — String (default: "")
|
|
/// Sets the field of the data item that provides the text content of
|
|
/// the tab content element.
|
|
///
|
|
/// dataContentUrlField — String (default: "")
|
|
/// Sets the field of the data item that provides the URL for
|
|
/// the ajax loaded tab content.
|
|
///
|
|
/// dataImageUrlField — String (default: "")
|
|
/// Sets the field of the data item that provides the image URL of
|
|
/// the tab.
|
|
///
|
|
/// dataSpriteCssClass — String (default: "")
|
|
/// Sets the field of the data item that provides the CSS class of
|
|
/// the tab.
|
|
///
|
|
/// dataTextField — String (default: "")
|
|
/// Sets the field of the data item that provides the text name of the tab.
|
|
///
|
|
/// dataUrlField — String (default: "")
|
|
/// Sets the field of the data item that provides the link URL for the
|
|
/// tab.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
TimePicker: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.TimePicker</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.TimePicker = (function() {
|
|
var original = kendo.ui.TimePicker;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
close: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Closes the drop-down list of a TimePicker.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the TimePicker for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
enable: function(enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables or disables a TimePicker.
|
|
/// </summary>
|
|
/// <param name="enable" type="Boolean" >Enables (true or undefined) or disables (false) a TimePicker.</param>
|
|
/// </signature>
|
|
},
|
|
readonly: function(readonly) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Toggles the readonly state of the widget. When the widget is readonly it doesn't allow user input.
|
|
/// </summary>
|
|
/// <param name="readonly" type="Boolean" >The argument, which defines whether the timepicker should be readonly or editable.</param>
|
|
/// </signature>
|
|
},
|
|
max: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the maximum value of the TimePicker.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The maximum time value to set for a TimePicker, expressed as a Date object or as a string.</param>
|
|
/// <returns type="Date">The maximum time value of a TimePicker.</returns>
|
|
/// </signature>
|
|
},
|
|
min: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the minimum value of the TimePicker.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The minimum time value to set for a TimePicker, expressed as a Date object or as a string.</param>
|
|
/// <returns type="Date">The minimum time value of a TimePicker.</returns>
|
|
/// </signature>
|
|
},
|
|
open: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Opens the drop-down list of a TimePicker.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
value: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the value of the TimePicker.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The time value to set for a TimePicker, expressed as a Date object or as a string.</param>
|
|
/// <returns type="Date">The time value of a TimePicker.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoTimePicker = function() {
|
|
this.data("kendoTimePicker", new kendo.ui.TimePicker());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoTimePicker: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.TimePicker widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.TimePicker">The kendo.ui.TimePicker instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoTimePicker: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.TimePicker widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// animation — Object
|
|
/// Configures the opening and closing animations of the popup. Setting the animation option to false will disable the opening and closing animations. As a result the popup will open and close instantly.
|
|
///
|
|
/// culture — String (default: "en-US")
|
|
/// Specifies the culture info used by the widget.
|
|
///
|
|
/// dates — Array
|
|
/// Specifies a list of dates, which are shown in the time drop-down list. If not set, the TimePicker will auto-generate the available times.
|
|
///
|
|
/// format — String (default: "h:mm tt")
|
|
/// Specifies the format, which is used to format the value of the TimePicker displayed in the input. The format also will be used to parse the input.
|
|
///
|
|
/// interval — Number (default: "30")
|
|
/// Specifies the interval, between values in the popup list, in minutes.
|
|
///
|
|
/// max — Date (default: "00:00")
|
|
/// Specifies the end value in the popup list.
|
|
///
|
|
/// min — Date (default: "00:00")
|
|
/// Specifies the start value in the popup list.
|
|
///
|
|
/// parseFormats — Array
|
|
/// Specifies the formats, which are used to parse the value set with the value method or by direct input. If not set the value of the options.format will be used. Note that value of the format option is always used.
|
|
///
|
|
/// value — Date (default: null)
|
|
/// Specifies the selected time.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Tooltip: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Tooltip</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Tooltip = (function() {
|
|
var original = kendo.ui.Tooltip;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
show: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Shows the tooltip for given target.
|
|
/// </summary>
|
|
/// <param name="element" type="jQuery" >The target element for which the tooltip should be shown.</param>
|
|
/// </signature>
|
|
},
|
|
hide: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Hides the tooltip.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
refresh: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Refresh the tooltip content.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
target: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the tooltip current target.
|
|
/// </summary>
|
|
/// <returns type="jQuery">The target element or null.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoTooltip = function() {
|
|
this.data("kendoTooltip", new kendo.ui.Tooltip());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoTooltip: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Tooltip widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Tooltip">The kendo.ui.Tooltip instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoTooltip: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Tooltip widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// autoHide — Boolean (default: true)
|
|
/// Specifies if the tooltip will be hidden when mouse leaves the target element. If set to false a close button will be shown within tooltip. If set to false, showAfter is specified and the showOn is set to "mouseenter" the Tooltip will be displayed after the given timeout even if the element is no longer hovered.
|
|
///
|
|
/// animation — Object
|
|
/// A collection of {Animation} objects, used to change default animations. A value of false
|
|
/// will disable all animations in the widget.
|
|
///
|
|
/// content — String|Function
|
|
/// The text or a function which result will be shown within the tooltip.
|
|
/// By default the tooltip will display the target element title attribute content.
|
|
///
|
|
/// content — Object
|
|
/// The text or a function which result will be shown within the tooltip.
|
|
/// By default the tooltip will display the target element title attribute content.
|
|
///
|
|
/// callout — Boolean (default: true)
|
|
/// Specifies if the tooltip callout will be displayed.
|
|
///
|
|
/// filter — String
|
|
/// Specifies a selector for elements, within the container, for which the tooltip will be displayed.
|
|
///
|
|
/// iframe — Boolean
|
|
/// Explicitly states whether content iframe should be created.
|
|
///
|
|
/// height — Number (default: Infinity)
|
|
/// The height (in pixels) of the tooltip.
|
|
///
|
|
/// width — Number (default: Infinity)
|
|
/// The width (in pixels) of the tooltip.
|
|
///
|
|
/// position — String (default: "bottom")
|
|
/// The position relative to the target element, at which the tooltip will be shown. Predefined values are "bottom", "top", "left", "right", "center".
|
|
///
|
|
/// showAfter — Number (default: 100)
|
|
/// Specify the delay in milliseconds before the tooltip is shown. This option is ignored if showOn is set to "click" or "focus".
|
|
///
|
|
/// showOn — String (default: "mouseenter")
|
|
/// The event on which the tooltip will be shown. Predefined values are "mouseenter", "click" and "focus".
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
TreeView: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.TreeView</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.TreeView = (function() {
|
|
var original = kendo.ui.TreeView;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
append: function(nodeData,parentNode,success) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Appends a node to any level of the treeview. This method may also be used to reorder nodes.
|
|
/// </summary>
|
|
/// <param name="nodeData" type="Object" >A JSON-formatted string or selector that specifies the node to be appended. If the argument is a plain JavaScript object, a new item will be created. If the argument is a jQuery element that holds a node, the treeview node will be moved. If the argument is an array of objects, each item of the array will be appended.</param>
|
|
/// <param name="parentNode" type="jQuery" >The node that will contain the newly appended node. If not specified, the new node will be appended to the root group of the TreeView.</param>
|
|
/// <param name="success" type="Function" >A success callback that will be called once the new node has been appended. Useful in the case of remote binding where an item is appended to an unfetched node. The callback is called once the siblings have been fetched.</param>
|
|
/// <returns type="jQuery">The inserted <li> element, wrapped in a jQuery object,or null if the new model has not been inserted immediately.</returns>
|
|
/// </signature>
|
|
},
|
|
collapse: function(nodes) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Collapses nodes.
|
|
/// </summary>
|
|
/// <param name="nodes" type="Object" >The nodes that will be collapsed.</param>
|
|
/// </signature>
|
|
},
|
|
dataItem: function(node) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the data item to which the specified node is bound.
|
|
/// </summary>
|
|
/// <param name="node" type="Object" >A string, DOM element or jQuery object which represents the node. A string is treated as a jQuery selector.</param>
|
|
/// <returns type="kendo.data.Node">The model of the item that was passed as a parameter.</returns>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the widget for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
detach: function(node) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes a node from a TreeView, but keeps its jQuery.data() objects.
|
|
/// </summary>
|
|
/// <param name="node" type="Object" >The node that is to be detached.</param>
|
|
/// <returns type="jQuery">The node that has been detached.</returns>
|
|
/// </signature>
|
|
},
|
|
enable: function(nodes,enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables or disables nodes.
|
|
/// </summary>
|
|
/// <param name="nodes" type="Object" >The nodes that are to be enabled/disabled.</param>
|
|
/// <param name="enable" type="Boolean" >Whether the nodes should be enabled or disabled.</param>
|
|
/// </signature>
|
|
},
|
|
expand: function(nodes) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Expands collapsed nodes.
|
|
/// </summary>
|
|
/// <param name="nodes" type="Object" >The nodes that are to be expanded.</param>
|
|
/// </signature>
|
|
},
|
|
findByText: function(text) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Searches for a node that has specific text.
|
|
/// </summary>
|
|
/// <param name="text" type="String" >The text that is being searched for.</param>
|
|
/// <returns type="jQuery">All nodes that have the text.</returns>
|
|
/// </signature>
|
|
},
|
|
findByUid: function(text) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Searches for a node with the given unique identifier.
|
|
/// Applicable when the widget is bound to a HierarchicalDataSource.
|
|
/// If you want to find a node by its id, use the dataSource.get() method and supply its uid to the findByUid method.
|
|
/// </summary>
|
|
/// <param name="text" type="String" >The text that is being searched for.</param>
|
|
/// <returns type="jQuery">All nodes that have the text.</returns>
|
|
/// </signature>
|
|
},
|
|
insertAfter: function(nodeData,referenceNode) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts a node after a specified node.
|
|
/// This method may also be used to reorder nodes.
|
|
/// </summary>
|
|
/// <param name="nodeData" type="Object" >A JSON-formatted string or selector that specifies the node to be inserted.</param>
|
|
/// <param name="referenceNode" type="jQuery" >The node that will precede the newly-appended node.</param>
|
|
/// </signature>
|
|
},
|
|
insertBefore: function(nodeData,referenceNode) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts a node before another node. This method may also be used to reorder nodes.
|
|
/// </summary>
|
|
/// <param name="nodeData" type="Object" >A JSON-formatted string or selector that specifies the node to be inserted.</param>
|
|
/// <param name="referenceNode" type="jQuery" >The node that follows the inserted node.</param>
|
|
/// </signature>
|
|
},
|
|
parent: function(node) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the parent node of the item
|
|
/// </summary>
|
|
/// <param name="node" type="Object" >The child node whose parent will be returned.</param>
|
|
/// <returns type="jQuery">The parent node of the given parameter node.</returns>
|
|
/// </signature>
|
|
},
|
|
remove: function(node) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes a node from the widget.
|
|
/// </summary>
|
|
/// <param name="node" type="Object" >The node that is to be removed.</param>
|
|
/// </signature>
|
|
},
|
|
select: function(node) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the selected node.
|
|
/// </summary>
|
|
/// <param name="node" type="Object" >If provided, the node that should be selected.</param>
|
|
/// <returns type="jQuery">The currently selected node.</returns>
|
|
/// </signature>
|
|
},
|
|
setDataSource: function(dataSource) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets and binds a dataSource to the widget.
|
|
/// </summary>
|
|
/// <param name="dataSource" type="kendo.data.HierarchicalDataSource" >The new dataSource that the widget will bind to</param>
|
|
/// </signature>
|
|
},
|
|
text: function(node,newText) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the text of a node in a TreeView.
|
|
/// </summary>
|
|
/// <param name="node" type="Object" >The node of which the text is being retrieved or set.</param>
|
|
/// <param name="newText" type="String" >Optional. When passed, sets the node text to the specified string</param>
|
|
/// <returns type="String">The text of a node.</returns>
|
|
/// </signature>
|
|
},
|
|
toggle: function(node) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Toggles the node of a TreeView between its expanded and collapsed states.
|
|
/// </summary>
|
|
/// <param name="node" type="Object" >The node that should be toggled.</param>
|
|
/// </signature>
|
|
},
|
|
updateIndeterminate: function(node) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Updates the indeterminate state of the treeview checkboxes. Should be used for better performance when checking multiple checkboxes through code.
|
|
/// </summary>
|
|
/// <param name="node" type="jQuery" >Optional. The root of the hierarchy that will be looped through. Allows only a subtree to be processed. The default value is the treeview root.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoTreeView = function() {
|
|
this.data("kendoTreeView", new kendo.ui.TreeView());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoTreeView: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.TreeView widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.TreeView">The kendo.ui.TreeView instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoTreeView: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.TreeView widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// animation — Boolean
|
|
/// A collection of visual animations used when items are expanded or collapsed through user interaction.
|
|
/// Setting this option to false will disable all animations.
|
|
///
|
|
/// animation — Object
|
|
/// A collection of visual animations used when items are expanded or collapsed through user interaction.
|
|
/// Setting this option to false will disable all animations.
|
|
///
|
|
/// autoBind — Boolean (default: true)
|
|
/// If set to false the widget will not bind to the data source during initialization. In this case data binding will occur when the change event of the
|
|
/// data source is fired. By default the widget will bind to the data source specified in the configuration.
|
|
///
|
|
/// checkboxes — Boolean
|
|
/// If true or an object, renders checkboxes beside each node.
|
|
///
|
|
/// checkboxes — Object
|
|
/// If true or an object, renders checkboxes beside each node.
|
|
///
|
|
/// dataImageUrlField — String (default: null)
|
|
/// Sets the field of the data item that provides the image URL of the treeview nodes.
|
|
///
|
|
/// dataSource — Object|Array
|
|
/// The data source of the widget which is used render nodes. Can be a JavaScript object which represents a valid data source configuration, a JavaScript array or an existing kendo.data.HierarchicalDataSource instance.If the dataSource option is set to a JavaScript object or array the widget will initialize a new kendo.data.HierarchicalDataSource instance using that value as data source configuration.If the dataSource option is an existing kendo.data.HierarchicalDataSource instance the widget will use that instance and will not initialize a new one.
|
|
///
|
|
/// dataSpriteCssClassField — String (default: null)
|
|
/// Sets the field of the data item that provides the sprite CSS class of the nodes.
|
|
/// If an array, each level uses the field that is at the same index in the array, or the last item in the array.
|
|
///
|
|
/// dataTextField — String|Array (default: null)
|
|
/// Sets the field of the data item that provides the text content of the nodes.
|
|
/// If an array, each level uses the field that is at the same index in the array, or the last item in the array.
|
|
///
|
|
/// dataUrlField — String (default: null)
|
|
/// Sets the field of the data item that provides the link URL of the nodes.
|
|
///
|
|
/// dragAndDrop — Boolean (default: false)
|
|
/// Disables (false) or enables (true) drag-and-drop of the nodes.
|
|
///
|
|
/// loadOnDemand — Boolean (default: true)
|
|
/// Indicates whether the child datasources should be fetched lazily when parent groups get expanded.
|
|
/// Setting this to false causes all child dataSources to be loaded at initialization time.
|
|
/// Note: when initializing the widget from an array (rather than from a HierarchicalDataSource instance), this option defaults to false, rather than true.
|
|
///
|
|
/// template — String|Function
|
|
/// Template for rendering each node.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Upload: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Upload</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Upload = (function() {
|
|
var original = kendo.ui.Upload;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the Upload for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
disable: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Disables the upload.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
enable: function(enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables the upload.
|
|
/// </summary>
|
|
/// <param name="enable" type="Boolean" >The argument, which defines whether to enable/disable the upload.</param>
|
|
/// </signature>
|
|
},
|
|
toggle: function(enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Toggles the upload enabled state.
|
|
/// </summary>
|
|
/// <param name="enable" type="Boolean" >(Optional) The new enabled state.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoUpload = function() {
|
|
this.data("kendoUpload", new kendo.ui.Upload());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoUpload: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Upload widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Upload">The kendo.ui.Upload instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoUpload: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Upload widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// async — Object
|
|
/// Configures the ability to upload a file(s) in an asynchronous manner. Please refer to the
|
|
/// async mode help topic
|
|
/// for more details.
|
|
///
|
|
/// enabled — Boolean (default: true)
|
|
/// Enables (true) or disables (false) an Upload. A disabled
|
|
/// Upload may be re-enabled via enable().
|
|
///
|
|
/// files — Array
|
|
/// List of files to be initially rendered in the Upload widget files list.
|
|
///
|
|
/// localization — Object
|
|
/// Sets the strings rendered by the Upload.
|
|
///
|
|
/// multiple — Boolean (default: true)
|
|
/// Enables (true) or disables (false) the ability to select multiple files.
|
|
/// If false, users will be able to select only one file at a time. Note: This option does not
|
|
/// limit the total number of uploaded files in an asynchronous configuration.
|
|
///
|
|
/// showFileList — Boolean (default: true)
|
|
/// Enables (true) or disables (false) the ability to display a file listing
|
|
/// for uploading a file(s). Disabling a file listing may be useful you wish to customize the UI; use the
|
|
/// client-side events to build your own UI.
|
|
///
|
|
/// template — String|Function
|
|
/// The template used to render the files in the list
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Validator: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Validator</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Validator = (function() {
|
|
var original = kendo.ui.Validator;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
errors: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get the error messages if any.
|
|
/// </summary>
|
|
/// <returns type="Array">Messages for the failed validation rules.</returns>
|
|
/// </signature>
|
|
},
|
|
hideMessages: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Hides the validation messages.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
validate: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Validates the input element(s) against the declared validation rules.
|
|
/// </summary>
|
|
/// <returns type="Boolean">true if all validation rules passed successfully.Note that if a HTML form element is set as validation container, the form submits will be automatically prevented if validation fails.</returns>
|
|
/// </signature>
|
|
},
|
|
validateInput: function(input) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Validates the input element against the declared validation rules.
|
|
/// </summary>
|
|
/// <param name="input" type="Object" >Input element to be validated.</param>
|
|
/// <returns type="Boolean">true if all validation rules passed successfully.</returns>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoValidator = function() {
|
|
this.data("kendoValidator", new kendo.ui.Validator());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoValidator: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Validator widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Validator">The kendo.ui.Validator instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoValidator: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Validator widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// messages — Object
|
|
/// Set of messages (either strings or functions) which will be shown when given validation rule fails.
|
|
/// By setting already existing key the appropriate built-in message will be overridden.
|
|
///
|
|
/// rules — Object
|
|
/// Set of custom validation rules. Those rules will extend the built-in ones.
|
|
///
|
|
/// validateOnBlur — Boolean
|
|
/// Determines if validation will be triggered when element loses focus. Default value is true.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Widget: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Widget</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Widget = (function() {
|
|
var original = kendo.ui.Widget;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
bind: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Attaches a handler to an event. Examples and more info can be found in the bind section of the kendo.Observable API reference.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the widget for safe removal from the DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
one: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Attaches a handler to an event. The handler is executed only once. Examples and more info can be found in the one section of the
|
|
/// kendo.Observable API reference.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
trigger: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Executes all handlers attached to the given event. More info can be found in the trigger section of the
|
|
/// kendo.Observable API reference.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
unbind: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Remove a previously attached event handler. More info can be found in the unbind section of the
|
|
/// kendo.Observable API reference.
|
|
/// </summary>
|
|
/// </signature>
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoWidget = function() {
|
|
this.data("kendoWidget", new kendo.ui.Widget());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoWidget: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Widget widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Widget">The kendo.ui.Widget instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoWidget: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Widget widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Window: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Window</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Window = (function() {
|
|
var original = kendo.ui.Window;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
center: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Centers the window within the viewport.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Window">Returns the window object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
close: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Closes a Window.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Window">Returns the window object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
content: function(content) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or set the content of a window.
|
|
/// </summary>
|
|
/// <param name="content" type="String" >The content of the Window.</param>
|
|
/// <returns type="kendo.ui.Window">If the content parameter is provided, this method will return the widget object to support chaining. Otherwise, it will return the current content of the widget.</returns>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Destroys the window and its modal overlay, if necessary. Removes the widget HTML elements from the DOM.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
maximize: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Maximizes a Window to the entire viewing area of the user agent. Triggers the resize event.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Window">Returns the window object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
minimize: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Maximizes a Window to its title bar.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Window">Returns the window object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
open: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Opens a Window.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Window">Returns the window object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
pin: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Pins the Window at its current position with a position:fixed style, i.e. the widget stops moving together with the other page content when the page is scrolled.
|
|
/// The user will still be able to move the Window with the mouse or keyboard.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
refresh: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Refreshes the content of a Window from a remote URL or the initially defined content template.
|
|
/// Note that passing data and requests different than GET cannot be sent to an iframe at this time, as they tequire a form with a target attribute.
|
|
/// </summary>
|
|
/// <param name="options" type="String" >Options for requesting data from the server. If omitted, the window uses the content property that was supplied when the window was created. Any options specified here are passed to jQuery.ajax().</param>
|
|
/// <returns type="kendo.ui.Window">Returns the window object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
restore: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Restores a maximized or minimized Window to its previous state. Triggers the resize event.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Window">Returns the window object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
setOptions: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Allows the window to be configured with new options.
|
|
/// </summary>
|
|
/// <param name="options" type="Object" >The configuration options to be set.</param>
|
|
/// </signature>
|
|
},
|
|
title: function(text) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or set the title of a Window.
|
|
/// </summary>
|
|
/// <param name="text" type="String" >The title of the Window.</param>
|
|
/// <returns type="kendo.ui.Window">If a title is provided, this method will return the window object to support chaining. Otherwise, it will return the current title of the window.</returns>
|
|
/// </signature>
|
|
},
|
|
toFront: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Brings forward a Window to the top of the z-index.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Window">Returns the window object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
toggleMaximization: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Toggles a Window between a maximized and restored state. Triggers the resize event.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Window">Returns the window object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
unpin: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Disables the Window's pinned state, so that the widget will move together with the other page content when the page is scrolled.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
|
|
bind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Binds to a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be executed when the event is triggered.</param>
|
|
/// </signature>
|
|
},
|
|
|
|
unbind: function(event, callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unbinds a callback from a widget event.
|
|
/// </summary>
|
|
/// <param name="event" type="String">The event name</param>
|
|
/// <param name="callback" type="Function">The callback to be removed.</param>
|
|
/// </signature>
|
|
}
|
|
|
|
});
|
|
|
|
return instance;
|
|
|
|
};
|
|
|
|
intellisense.redirectDefinition(wrapper, original);
|
|
|
|
return wrapper;
|
|
|
|
})();
|
|
|
|
|
|
jQuery.fn.kendoWindow = function() {
|
|
this.data("kendoWindow", new kendo.ui.Window());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoWindow: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Window widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Window">The kendo.ui.Window instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoWindow: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Window widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// actions — Array (default: ["Close"])
|
|
/// The buttons for interacting with the window. Predefined array values are "Close", "Refresh", "Minimize",
|
|
/// and "Maximize".
|
|
///
|
|
/// animation — Object
|
|
/// A collection of {Animation} objects, used to change default animations. A value of false
|
|
/// will disable all animations in the widget.
|
|
///
|
|
/// appendTo — Object|String (default: document.body)
|
|
/// The element that the Window will be appended to. Beneficial if the Window is used together with a form.
|
|
/// Note that this does not constrain the window dragging within the given element.
|
|
///
|
|
/// content — String
|
|
/// Specifies a URL or request options that the window should load its content from.Note: For URLs starting with a protocol (e.g. http://),
|
|
/// a container iframe element is automatically created. This behavior may change in future
|
|
/// versions, so it is advisable to always use the iframe configuration option.
|
|
///
|
|
/// content — Object
|
|
/// Specifies a URL or request options that the window should load its content from.Note: For URLs starting with a protocol (e.g. http://),
|
|
/// a container iframe element is automatically created. This behavior may change in future
|
|
/// versions, so it is advisable to always use the iframe configuration option.
|
|
///
|
|
/// draggable — Boolean (default: true)
|
|
/// Enables (true) or disables (false) the ability for users to move/drag the widget.
|
|
///
|
|
/// iframe — Boolean
|
|
/// Explicitly states whether content iframe should be created.
|
|
///
|
|
/// maxHeight — Number (default: Infinity)
|
|
/// The maximum height (in pixels) that may be achieved by resizing the window.
|
|
///
|
|
/// maxWidth — Number (default: Infinity)
|
|
/// The maximum width (in pixels) that may be achieved by resizing the window.
|
|
///
|
|
/// minHeight — Number (default: 50)
|
|
/// The minimum height (in pixels) that may be achieved by resizing the window.
|
|
///
|
|
/// minWidth — Number (default: 50)
|
|
/// The minimum width (in pixels) that may be achieved by resizing the window.
|
|
///
|
|
/// modal — Boolean (default: false)
|
|
/// Specifies whether the window should show a modal overlay over the page.
|
|
///
|
|
/// pinned — Boolean (default: false)
|
|
/// Specifies whether the window should be pinned, i.e. it will not move together with the page content during scrolling.
|
|
///
|
|
/// position — Object
|
|
/// A collection of one or two members, which define the initial Window's top and/or left position on the page.
|
|
///
|
|
/// resizable — Boolean (default: true)
|
|
/// Enables (true) or disables (false) the ability for users to resize a Window.
|
|
///
|
|
/// title — String|Boolean (default: "")
|
|
/// The text in the window title bar. If false, the window will be displayed without a title bar. Note that this will prevent the window from being dragged, and the window titlebar buttons will not be shown.
|
|
///
|
|
/// visible — Boolean (default: true)
|
|
/// Specifies whether the window will be initially visible.
|
|
///
|
|
/// width — Number|String
|
|
/// Specifies width of the window.
|
|
///
|
|
/// height — Number|String
|
|
/// Specifies height of the window.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|