14230 lines
556 KiB
JavaScript
14230 lines
556 KiB
JavaScript
/* global intellisense */
|
|
// jshint unused: false
|
|
|
|
|
|
|
|
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>
|
|
},
|
|
toHSV: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the color in HSV representation. As HSV object, it has the
|
|
/// following properties:This does not modify the current object, it creates a new one instead.
|
|
/// </summary>
|
|
/// <returns type="Object">An object with h, s, v and a fields.</returns>
|
|
/// </signature>
|
|
},
|
|
toRGB: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the color in RGB representation. The result has the following
|
|
/// properties:This does not modify the current object, it creates a new one instead.
|
|
/// </summary>
|
|
/// <returns type="Object">An object with r, g, b and a fields.</returns>
|
|
/// </signature>
|
|
},
|
|
toBytes: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the color in "Bytes" representation. It has the same properties as
|
|
/// RGB, but r, g and b are integers between 0 and 255 instead of floats.This does not modify the current object, it creates a new one instead.
|
|
/// </summary>
|
|
/// <returns type="Object">An object with r, g and b fields.</returns>
|
|
/// </signature>
|
|
},
|
|
toHex: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a string in "FF0000" form (without a leading #).
|
|
/// </summary>
|
|
/// <returns type="String">The color in hex notation.</returns>
|
|
/// </signature>
|
|
},
|
|
toCss: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Like toHex, but includes a leading #.
|
|
/// </summary>
|
|
/// <returns type="String">The color in CSS notation.</returns>
|
|
/// </signature>
|
|
},
|
|
toCssRgba: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the color in RGBA notation (includes the opacity).
|
|
/// </summary>
|
|
/// <returns type="String">The color in RGBA notation.</returns>
|
|
/// </signature>
|
|
},
|
|
toDisplay: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the color in the best notation supported by the current browser. In
|
|
/// IE < 9 this returns the #FF0000 form; in all other browsers it returns the
|
|
/// RGBA form.
|
|
/// </summary>
|
|
/// <returns type="String">The color in the best notation supported by the current browser.</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,transitionClass) {
|
|
/// <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>
|
|
/// <param name="transitionClass" type="string" >Optional. If provided, the new view will replace the current one with a replace effect.</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 changes.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
route: function(route,callback) {
|
|
/// <signature>
|
|
/// <summary>
|
|
///
|
|
/// </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>
|
|
},
|
|
replace: function(route,silent) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Navigates to the given route, replacing the current view in the history stack (like window.history.replaceState or location.replace work).
|
|
/// </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.Compare with the view method, which will return the data items that correspond to the current page, filter, sort and group configuration.
|
|
/// </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>
|
|
/// <returns type="Promise">A promise that will be resolved when the data has been loaded, or rejected if an HTTP error occurs.</returns>
|
|
/// </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 (check there for more examples).</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>
|
|
/// Checks if the data items 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>
|
|
},
|
|
online: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the online state of the data source.
|
|
/// </summary>
|
|
/// <param name="value" type="Boolean" >The online state - true for online, false for offline.</param>
|
|
/// <returns type="Boolean">the current online state - true if online; otherwise false.</returns>
|
|
/// </signature>
|
|
},
|
|
offlineData: function(data) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the offline state of the data source.
|
|
/// </summary>
|
|
/// <param name="data" type="Array" >The array of data items that replace the current offline state of the data source.</param>
|
|
/// <returns type="Array">array of JavaScript objects that represent the data items. Changed data items have a __state__ field attached. That field indicates the type of change: "create", "update" or "destroy". Unmodified data items don't have a __state__ field.</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>
|
|
},
|
|
pushCreate: function(items) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Appends the specified data item(s) to the data source without marking them as "new". The data source will not sync data items appended via pushCreate.
|
|
/// </summary>
|
|
/// <param name="items" type="Object" >The data item or data items to append to the data source.</param>
|
|
/// </signature>
|
|
},
|
|
pushDestroy: function(items) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes the specified data item(s) from the data source without marking them as "removed". The data source will not sync data items appended via pushDestroy.
|
|
/// </summary>
|
|
/// <param name="items" type="Object" >The data item or data items to remove from the data source.</param>
|
|
/// </signature>
|
|
},
|
|
pushUpdate: function(items) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Updates the specified data item(s) without marking them as "dirty". The data source will not sync data items appended via pushUpdate.
|
|
/// If the data items are not found (using schema.model.id) they will be appended.
|
|
/// </summary>
|
|
/// <param name="items" type="Object" >The data item or data items to update.</param>
|
|
/// </signature>
|
|
},
|
|
query: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Executes the specified query over the data items. Makes a HTTP request if bound to a remote service.This method is useful when you need to modify several parameters of the data request at the same time (e.g. filtering and sorting).
|
|
/// If you execute filter() and then sort(), the DataSource will make two separate requests. With query(), it will make one request.
|
|
/// </summary>
|
|
/// <param name="options" type="" >The query options which should be applied.</param>
|
|
/// <returns type="Promise">A promise that will be resolved when the data has been loaded, or rejected if an HTTP error occurs.</returns>
|
|
/// </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. If you need to filter, it is better to use the filter() method or the query() method with a filter parameter.</param>
|
|
/// <returns type="Promise">A promise that will be resolved when the data has been loaded, or rejected if an HTTP error occurs.</returns>
|
|
/// </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>
|
|
/// <returns type="Promise">A promise that will be resolved when all sync requests have finished succesfully, or rejected if any single request fails.</returns>
|
|
/// </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.
|
|
/// Compare with the data method, which will return data items from all pages, if local data binding and paging are used.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, {
|
|
GanttDataSource: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.data.GanttDataSource</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.data.GanttDataSource = (function() {
|
|
var original = kendo.data.GanttDataSource;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
taskAllChildren: function(task) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a list of all child tasks. The search is recursive.
|
|
/// </summary>
|
|
/// <param name="task" type="kendo.data.GanttTask" >The parent task. If this parameter is not specified, all gantt tasks will be returned.</param>
|
|
/// <returns type="Array">the list of all child tasks.</returns>
|
|
/// </signature>
|
|
},
|
|
taskChildren: function(task) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a list of all direct child tasks.
|
|
/// </summary>
|
|
/// <param name="task" type="kendo.data.GanttTask" >The parent task. If this parameter is not specified, all root level tasks will be returned.</param>
|
|
/// <returns type="Array">the list of all direct child tasks.</returns>
|
|
/// </signature>
|
|
},
|
|
taskLevel: function(task) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the level of the task in the hierrarchy. 0 for root level taks.
|
|
/// </summary>
|
|
/// <param name="task" type="kendo.data.GanttTask" >The reference task.</param>
|
|
/// <returns type="Number">the level of the task in the hierarchy.</returns>
|
|
/// </signature>
|
|
},
|
|
taskParent: function(task) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the parent task of a certain task.
|
|
/// </summary>
|
|
/// <param name="task" type="kendo.data.GanttTask" >The reference task.</param>
|
|
/// <returns type="kendo.data.GanttTask">the parent task.</returns>
|
|
/// </signature>
|
|
},
|
|
taskSiblings: function(task) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a list of all tasks that have the same parent.
|
|
/// </summary>
|
|
/// <param name="task" type="kendo.data.GanttTask" >The reference task.</param>
|
|
/// <returns type="Array">the list of all tasks with the same parent as the parameter task. If the parameter task is a root level task, all root level tasks are returned.</returns>
|
|
/// </signature>
|
|
},
|
|
taskTree: function(task) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a list of all child gantt tasks, ordered by their hierarchical index (Depth-First). a parent is collapsed, it's children are not returned.
|
|
/// </summary>
|
|
/// <param name="task" type="kendo.data.GanttTask" >The reference task. If this parameter is specified, the result will be all child tasks of this task, ordered by their hierarchical index.</param>
|
|
/// <returns type="Array">the list of all child gantt tasks, ordered by their hierarchical index (Depth-First).</returns>
|
|
/// </signature>
|
|
},
|
|
update: function(task,taskInfo) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Updates a gantt task.
|
|
/// </summary>
|
|
/// <param name="task" type="kendo.data.GanttTask" >The task to be updated.</param>
|
|
/// <param name="taskInfo" type="Object" >The new values, which will be used to update the task.</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.data, {
|
|
GanttDependency: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.data.GanttDependency</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.data.GanttDependency = (function() {
|
|
var original = kendo.data.GanttDependency;
|
|
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, {
|
|
GanttDependencyDataSource: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.data.GanttDependencyDataSource</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.data.GanttDependencyDataSource = (function() {
|
|
var original = kendo.data.GanttDependencyDataSource;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
dependencies: function(id) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a list of all dependencies for a certain task.
|
|
/// </summary>
|
|
/// <param name="id" type="Object" >The id of the gantt task, based on which the dependencies are filtered.</param>
|
|
/// <returns type="Array">the list of all task dependencies.</returns>
|
|
/// </signature>
|
|
},
|
|
predecessors: function(id) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a list of all predecessor dependencies for a certain task.
|
|
/// </summary>
|
|
/// <param name="id" type="Object" >The id of the gantt task, based on which the dependencies are filtered.</param>
|
|
/// <returns type="Array">the list of all task predecessors.</returns>
|
|
/// </signature>
|
|
},
|
|
successors: function(id) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a list of all successor dependencies for a certain task.
|
|
/// </summary>
|
|
/// <param name="id" type="Object" >The id of the gantt task, based on which the dependencies are filtered.</param>
|
|
/// <returns type="Array">the list of all task successors.</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, {
|
|
GanttTask: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.data.GanttTask</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.data.GanttTask = (function() {
|
|
var original = kendo.data.GanttTask;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
duration: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the gantt task length in milliseconds.
|
|
/// </summary>
|
|
/// <returns type="Number">the length of the task.</returns>
|
|
/// </signature>
|
|
},
|
|
isMilestone: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Checks whether the event has zero duration.
|
|
/// </summary>
|
|
/// <returns type="Boolean">return true if the task start is equal to the task end.</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, {
|
|
PivotDataSource: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.data.PivotDataSource</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.data.PivotDataSource = (function() {
|
|
var original = kendo.data.PivotDataSource;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
axes: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get the parsed axes data
|
|
/// </summary>
|
|
/// <returns type="Object">the parsed axes data</returns>
|
|
/// </signature>
|
|
},
|
|
catalog: function(name) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get or sets the current catalog name.
|
|
/// </summary>
|
|
/// <param name="name" type="String" >The name of the catalog.</param>
|
|
/// <returns type="String">the current catalog name.</returns>
|
|
/// </signature>
|
|
},
|
|
columns: function(val) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get or sets the columns configuration.
|
|
/// </summary>
|
|
/// <param name="val" type="Array" >The columns configuration. Accepts the same values as the columns option.</param>
|
|
/// <returns type="Array">the current columns configuration.</returns>
|
|
/// </signature>
|
|
},
|
|
cube: function(name) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get or sets the current cube name.
|
|
/// </summary>
|
|
/// <param name="name" type="String" >The name of the cube.</param>
|
|
/// <returns type="String">the current cube name.</returns>
|
|
/// </signature>
|
|
},
|
|
discover: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Starts discover request with given options.
|
|
/// </summary>
|
|
/// <param name="options" type="String" >The options of the discover request</param>
|
|
/// <returns type="Object">Deferred object</returns>
|
|
/// </signature>
|
|
},
|
|
measures: function(val) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get or sets the measures configuration.
|
|
/// </summary>
|
|
/// <param name="val" type="Array" >The measures configuration. Accepts the same values as the measures option.</param>
|
|
/// <returns type="Array">the current measures configuration.</returns>
|
|
/// </signature>
|
|
},
|
|
measuresAxis: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get the name of the axis on which measures are displayed.
|
|
/// </summary>
|
|
/// <returns type="String">the axis name.</returns>
|
|
/// </signature>
|
|
},
|
|
rows: function(val) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get or sets the rows configuration.
|
|
/// </summary>
|
|
/// <param name="val" type="Array" >The rows configuration. Accepts the same values as the row option.</param>
|
|
/// <returns type="Array">the current rows configuration.</returns>
|
|
/// </signature>
|
|
},
|
|
schemaCatalogs: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Request catalogs information.
|
|
/// </summary>
|
|
/// <returns type="Object">Deferred object</returns>
|
|
/// </signature>
|
|
},
|
|
schemaCubes: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Request cubes schema information.
|
|
/// </summary>
|
|
/// <returns type="Object">Deferred object</returns>
|
|
/// </signature>
|
|
},
|
|
schemaDimensions: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Request dimensions schema information.
|
|
/// </summary>
|
|
/// <returns type="Object">Deferred object</returns>
|
|
/// </signature>
|
|
},
|
|
schemaHierarchies: function(dimensionName) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Request hierarchies schema information.
|
|
/// </summary>
|
|
/// <param name="dimensionName" type="String" >The name of the dimensions which is 'owner' of the hierarchy.</param>
|
|
/// <returns type="Object">Deferred object</returns>
|
|
/// </signature>
|
|
},
|
|
schemaLevels: function(hierarchyName) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Request levels schema information.
|
|
/// </summary>
|
|
/// <param name="hierarchyName" type="String" >The name of the hierarchy which is 'owner' of the level.</param>
|
|
/// <returns type="Object">Deferred object</returns>
|
|
/// </signature>
|
|
},
|
|
schemaMeasures: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Request measures schema information.
|
|
/// </summary>
|
|
/// <returns type="Object">Deferred object</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, {
|
|
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,updateUid) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Clones the scheduler event.
|
|
/// </summary>
|
|
/// <param name="options" type="Object" >Additional options passed to the SchedulerEvent constructor.</param>
|
|
/// <param name="updateUid" type="Boolean" >If you pass true the uid of the event will be updated.</param>
|
|
/// <returns type="kendo.data.SchedulerEvent">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">list of occurrences.</returns>
|
|
/// </signature>
|
|
},
|
|
update: function(eventInfo) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Updates the scheduler event.
|
|
/// </summary>
|
|
/// <param name="eventInfo" type="Object" >The new values, which will be used to update the event.</param>
|
|
/// </signature>
|
|
},
|
|
isMultiDay: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Checks whether the event is equal to or longer then twenty four hours.
|
|
/// </summary>
|
|
/// <returns type="Boolean">return true if event is equal to or longer then 24 hours.</returns>
|
|
/// </signature>
|
|
},
|
|
isException: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Checks whether the event is a recurrence exception.
|
|
/// </summary>
|
|
/// <returns type="Boolean">return true if event is a recurrence exception.</returns>
|
|
/// </signature>
|
|
},
|
|
isOccurrence: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Checks whether the event is an occurrence part of a recurring series.
|
|
/// </summary>
|
|
/// <returns type="Boolean">return true if event is an occurrence.</returns>
|
|
/// </signature>
|
|
},
|
|
isRecurring: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Checks whether the event is part of a recurring series.
|
|
/// </summary>
|
|
/// <returns type="Boolean">return true if event is recurring.</returns>
|
|
/// </signature>
|
|
},
|
|
isRecurrenceHead: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Checks whether the event is the head of a recurring series.
|
|
/// </summary>
|
|
/// <returns type="Boolean">return true if event is a recurrence head.</returns>
|
|
/// </signature>
|
|
},
|
|
toOccurrence: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Converts the scheduler event to a event occurrence. Method will remove recurrenceRule, recurrenceException options, will add a recurrenceId field and will set id to the default one.
|
|
/// </summary>
|
|
/// <param name="options" type="Object" >Additional options passed to the SchedulerEvent constructor.</param>
|
|
/// <returns type="kendo.data.SchedulerEvent">the occurrence.</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, {
|
|
TreeListDataSource: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.data.TreeListDataSource</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.data.TreeListDataSource = (function() {
|
|
var original = kendo.data.TreeListDataSource;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
load: function(model) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Loads the child nodes of a model.
|
|
/// </summary>
|
|
/// <param name="model" type="kendo.data.TreeListModel" >The model that must be loaded.</param>
|
|
/// <returns type="Promise">A promise that will be resolved when the child nodes have been loaded, or rejected if an HTTP error occurs.</returns>
|
|
/// </signature>
|
|
},
|
|
childNodes: function(model) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Child nodes for model.
|
|
/// </summary>
|
|
/// <param name="model" type="kendo.data.TreeListModel" >The model whose children must be returned.</param>
|
|
/// <returns type="Array">of the child items.</returns>
|
|
/// </signature>
|
|
},
|
|
rootNodes: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Return all root nodes.
|
|
/// </summary>
|
|
/// <returns type="Array">of the root items.</returns>
|
|
/// </signature>
|
|
},
|
|
parentNode: function(model) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// The parent of given node.
|
|
/// </summary>
|
|
/// <param name="model" type="kendo.data.TreeListModel" >The model whose parent must be returned.</param>
|
|
/// <returns type="kendo.data.TreeListModel">parent of the node.</returns>
|
|
/// </signature>
|
|
},
|
|
level: function(model) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// The hierarchical level of the node.
|
|
/// </summary>
|
|
/// <param name="model" type="kendo.data.TreeListModel" >The model whose level must be calculated.</param>
|
|
/// <returns type="Number">the hierachy level of the node.</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, {
|
|
TreeListModel: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.data.TreeListModel</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.data.TreeListModel = (function() {
|
|
var original = kendo.data.TreeListModel;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
loaded: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the loaded flag of the TreeList. Setting the loaded flag to false allows reloading of child items.
|
|
/// </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.drawing, {
|
|
Arc: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.Arc</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.Arc = (function() {
|
|
var original = kendo.drawing.Arc;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
bbox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with transformations applied.
|
|
/// Inherited from Element.bbox
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
clip: function(clip) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the element clipping path.
|
|
/// Inherited from Element.clip
|
|
/// </summary>
|
|
/// <param name="clip" type="kendo.drawing.Path" >The element clipping path.</param>
|
|
/// <returns type="kendo.drawing.Path">The current element clipping path.</returns>
|
|
/// </signature>
|
|
},
|
|
clippedBBox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with clipping and transformations applied.
|
|
/// Inherited from Element.clippedBBox
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with clipping transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
geometry: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the arc geometry.
|
|
/// </summary>
|
|
/// <param name="value" type="kendo.geometry.Arc" >The new geometry to use.</param>
|
|
/// <returns type="kendo.geometry.Arc">The current arc geometry.</returns>
|
|
/// </signature>
|
|
},
|
|
fill: function(color,opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the shape fill.
|
|
/// </summary>
|
|
/// <param name="color" type="String" >The fill color to set.</param>
|
|
/// <param name="opacity" type="Number" >The fill opacity to set.</param>
|
|
/// <returns type="kendo.drawing.Arc">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
opacity: function(opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the element opacity.
|
|
/// Inherited from Element.opacityIf set, the stroke and fill opacity will be multiplied by the element opacity.
|
|
/// </summary>
|
|
/// <param name="opacity" type="Number" >The element opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).</param>
|
|
/// <returns type="Number">The current element opacity.</returns>
|
|
/// </signature>
|
|
},
|
|
stroke: function(color,width,opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the shape stroke.
|
|
/// </summary>
|
|
/// <param name="color" type="String" >The stroke color to set.</param>
|
|
/// <param name="width" type="Number" >The stroke width to set.</param>
|
|
/// <param name="opacity" type="Number" >The stroke opacity to set.</param>
|
|
/// <returns type="kendo.drawing.Arc">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
transform: function(transform) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the transformation of the element.
|
|
/// Inherited from Element.transform
|
|
/// </summary>
|
|
/// <param name="transform" type="kendo.geometry.Transformation" >The transformation to apply to the element.</param>
|
|
/// <returns type="kendo.geometry.Transformation">The current transformation on the element.</returns>
|
|
/// </signature>
|
|
},
|
|
visible: function(visible) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the visibility of the element.
|
|
/// Inherited from Element.visible
|
|
/// </summary>
|
|
/// <param name="visible" type="Boolean" >A flag indicating if the element should be visible.</param>
|
|
/// <returns type="Boolean">true if the element is visible; false otherwise.</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.drawing, {
|
|
Circle: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.Circle</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.Circle = (function() {
|
|
var original = kendo.drawing.Circle;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
bbox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with transformations applied.
|
|
/// Inherited from Element.bbox
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
clip: function(clip) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the element clipping path.
|
|
/// Inherited from Element.clip
|
|
/// </summary>
|
|
/// <param name="clip" type="kendo.drawing.Path" >The element clipping path.</param>
|
|
/// <returns type="kendo.drawing.Path">The current element clipping path.</returns>
|
|
/// </signature>
|
|
},
|
|
clippedBBox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with clipping and transformations applied.
|
|
/// Inherited from Element.clippedBBox
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with clipping transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
geometry: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the circle geometry.
|
|
/// </summary>
|
|
/// <param name="value" type="kendo.geometry.Circle" >The new geometry to use.</param>
|
|
/// <returns type="kendo.geometry.Circle">The current circle geometry.</returns>
|
|
/// </signature>
|
|
},
|
|
fill: function(color,opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the shape fill.
|
|
/// </summary>
|
|
/// <param name="color" type="String" >The fill color to set.</param>
|
|
/// <param name="opacity" type="Number" >The fill opacity to set.</param>
|
|
/// <returns type="kendo.drawing.Circle">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
opacity: function(opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the element opacity.
|
|
/// Inherited from Element.opacityIf set, the stroke and fill opacity will be multiplied by the element opacity.
|
|
/// </summary>
|
|
/// <param name="opacity" type="Number" >The element opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).</param>
|
|
/// <returns type="Number">The current element opacity.</returns>
|
|
/// </signature>
|
|
},
|
|
stroke: function(color,width,opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the shape stroke.
|
|
/// </summary>
|
|
/// <param name="color" type="String" >The stroke color to set.</param>
|
|
/// <param name="width" type="Number" >The stroke width to set.</param>
|
|
/// <param name="opacity" type="Number" >The stroke opacity to set.</param>
|
|
/// <returns type="kendo.drawing.Circle">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
transform: function(transform) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the transformation of the element.
|
|
/// Inherited from Element.transform
|
|
/// </summary>
|
|
/// <param name="transform" type="kendo.geometry.Transformation" >The transformation to apply to the element.</param>
|
|
/// <returns type="kendo.geometry.Transformation">The current transformation on the element.</returns>
|
|
/// </signature>
|
|
},
|
|
visible: function(visible) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the visibility of the element.
|
|
/// Inherited from Element.visible
|
|
/// </summary>
|
|
/// <param name="visible" type="Boolean" >A flag indicating if the element should be visible.</param>
|
|
/// <returns type="Boolean">true if the element is visible; false otherwise.</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.drawing, {
|
|
Element: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.Element</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.Element = (function() {
|
|
var original = kendo.drawing.Element;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
bbox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with transformations applied.
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
clip: function(clip) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the element clipping path.
|
|
/// </summary>
|
|
/// <param name="clip" type="kendo.drawing.Path" >The element clipping path.</param>
|
|
/// <returns type="kendo.drawing.Path">The current element clipping path.</returns>
|
|
/// </signature>
|
|
},
|
|
clippedBBox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with clipping and transformations applied.This is the rectangle that will fit around the actual rendered element.
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with clipping and transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
opacity: function(opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the element opacity.
|
|
/// </summary>
|
|
/// <param name="opacity" type="Number" >The element opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).</param>
|
|
/// <returns type="Number">The current element opacity.</returns>
|
|
/// </signature>
|
|
},
|
|
transform: function(transform) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the transformation of the element.
|
|
/// </summary>
|
|
/// <param name="transform" type="kendo.geometry.Transformation" >The transformation to apply to the element.</param>
|
|
/// <returns type="kendo.geometry.Transformation">The current transformation on the element.</returns>
|
|
/// </signature>
|
|
},
|
|
visible: function(visible) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the visibility of the element.
|
|
/// </summary>
|
|
/// <param name="visible" type="Boolean" >A flag indicating if the element should be visible.</param>
|
|
/// <returns type="Boolean">true if the element is visible; false otherwise.</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.drawing, {
|
|
FillOptions: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.FillOptions</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.FillOptions = (function() {
|
|
var original = kendo.drawing.FillOptions;
|
|
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.drawing, {
|
|
Gradient: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.Gradient</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.Gradient = (function() {
|
|
var original = kendo.drawing.Gradient;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
addStop: function(offset,color,opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Adds a color stop to the gradient.
|
|
/// </summary>
|
|
/// <param name="offset" type="Number" >The stop offset from the start of the element. Ranges from 0 (start of gradient) to 1 (end of gradient).</param>
|
|
/// <param name="color" type="String" >The color in any of the following formats.| Format | Description | --- | --- | --- | red | Basic or Extended CSS Color name | #ff0000 | Hex RGB value | rgb(255, 0, 0) | RGB valueSpecifying 'none', 'transparent' or '' (empty string) will clear the fill.</param>
|
|
/// <param name="opacity" type="Number" >The fill opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).</param>
|
|
/// <returns type="kendo.drawing.GradientStop">The new gradient color stop.</returns>
|
|
/// </signature>
|
|
},
|
|
removeStop: function(stop) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes a color stop from the gradient.
|
|
/// </summary>
|
|
/// <param name="stop" type="kendo.drawing.GradientStop" >The gradient color stop to remove.</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.drawing, {
|
|
GradientStop: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.GradientStop</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.GradientStop = (function() {
|
|
var original = kendo.drawing.GradientStop;
|
|
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.drawing, {
|
|
Group: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.Group</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.Group = (function() {
|
|
var original = kendo.drawing.Group;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
append: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Appends the specified element as a last child of the group.
|
|
/// </summary>
|
|
/// <param name="element" type="kendo.drawing.Element" >The element to append. Multiple parameters are accepted.</param>
|
|
/// </signature>
|
|
},
|
|
clear: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes all child elements from the group.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
clip: function(clip) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the group clipping path.
|
|
/// Inherited from Element.clip
|
|
/// </summary>
|
|
/// <param name="clip" type="kendo.drawing.Path" >The group clipping path.</param>
|
|
/// <returns type="kendo.drawing.Path">The current group clipping path.</returns>
|
|
/// </signature>
|
|
},
|
|
clippedBBox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with clipping and transformations applied.
|
|
/// Inherited from Element.clippedBBox
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with clipping transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
insert: function(position,element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts an element at the specified position.
|
|
/// </summary>
|
|
/// <param name="position" type="Number" >The position to insert the element at. Existing children beyond this position will be shifted right.</param>
|
|
/// <param name="element" type="kendo.drawing.Element" >The element to insert.</param>
|
|
/// </signature>
|
|
},
|
|
opacity: function(opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the group opacity.
|
|
/// Inherited from Element.opacityThe opacity of any child groups and elements will be multiplied by this value.
|
|
/// </summary>
|
|
/// <param name="opacity" type="Number" >The group opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).</param>
|
|
/// <returns type="Number">The current group opacity.</returns>
|
|
/// </signature>
|
|
},
|
|
remove: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes the specified element from the group.
|
|
/// </summary>
|
|
/// <param name="element" type="kendo.drawing.Element" >The element to remove.</param>
|
|
/// </signature>
|
|
},
|
|
removeAt: function(index) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes the child element at the specified position.
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >The index at which the element currently resides.</param>
|
|
/// </signature>
|
|
},
|
|
visible: function(visible) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the visibility of the element.
|
|
/// </summary>
|
|
/// <param name="visible" type="Boolean" >A flag indicating if the element should be visible.</param>
|
|
/// <returns type="Boolean">true if the element is visible; false otherwise.</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.drawing, {
|
|
Image: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.Image</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.Image = (function() {
|
|
var original = kendo.drawing.Image;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
bbox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with transformations applied.
|
|
/// Inherited from Element.bbox
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
clip: function(clip) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the element clipping path.
|
|
/// Inherited from Element.clip
|
|
/// </summary>
|
|
/// <param name="clip" type="kendo.drawing.Path" >The element clipping path.</param>
|
|
/// <returns type="kendo.drawing.Path">The current element clipping path.</returns>
|
|
/// </signature>
|
|
},
|
|
clippedBBox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with clipping and transformations applied.
|
|
/// Inherited from Element.clippedBBox
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with clipping transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
opacity: function(opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the element opacity.
|
|
/// Inherited from Element.opacity
|
|
/// </summary>
|
|
/// <param name="opacity" type="Number" >The element opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).</param>
|
|
/// <returns type="Number">The current element opacity.</returns>
|
|
/// </signature>
|
|
},
|
|
src: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the image source URL.
|
|
/// </summary>
|
|
/// <param name="value" type="String" >The new source URL.</param>
|
|
/// <returns type="String">The current image source URL.</returns>
|
|
/// </signature>
|
|
},
|
|
rect: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the rectangle defines the image position and size.
|
|
/// </summary>
|
|
/// <param name="value" type="kendo.geometry.Rect" >The new image rectangle.</param>
|
|
/// <returns type="kendo.geometry.Rect">The current image rectangle.</returns>
|
|
/// </signature>
|
|
},
|
|
transform: function(transform) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the transformation of the element.
|
|
/// Inherited from Element.transform
|
|
/// </summary>
|
|
/// <param name="transform" type="kendo.geometry.Transformation" >The transformation to apply to the element.</param>
|
|
/// <returns type="kendo.geometry.Transformation">The current transformation on the element.</returns>
|
|
/// </signature>
|
|
},
|
|
visible: function(visible) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the visibility of the element.
|
|
/// Inherited from Element.visible
|
|
/// </summary>
|
|
/// <param name="visible" type="Boolean" >A flag indicating if the element should be visible.</param>
|
|
/// <returns type="Boolean">true if the element is visible; false otherwise.</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.drawing, {
|
|
Layout: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.Layout</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.Layout = (function() {
|
|
var original = kendo.drawing.Layout;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
rect: function(rect) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the layout rectangle.
|
|
/// </summary>
|
|
/// <param name="rect" type="kendo.geometry.Rect" >The layout rectangle.</param>
|
|
/// <returns type="kendo.geometry.Rect">The current rectangle.</returns>
|
|
/// </signature>
|
|
},
|
|
reflow: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Arranges the elements based on the current options.
|
|
/// </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.drawing, {
|
|
LinearGradient: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.LinearGradient</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.LinearGradient = (function() {
|
|
var original = kendo.drawing.LinearGradient;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
addStop: function(offset,color,opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Adds a color stop to the gradient.
|
|
/// Inherited from Gradient.addStop
|
|
/// </summary>
|
|
/// <param name="offset" type="Number" ></param>
|
|
/// <param name="color" type="String" >The color of the stop.</param>
|
|
/// <param name="opacity" type="Number" >The fill opacity.</param>
|
|
/// <returns type="kendo.drawing.GradientStop">The new gradient color stop.</returns>
|
|
/// </signature>
|
|
},
|
|
end: function(end) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the end point of the gradient.
|
|
/// </summary>
|
|
/// <param name="end" type="Object" >The end point of the gradient.Coordinates are relative to the shape bounding box. For example [0, 0] is top left and [1, 1] is bottom right.</param>
|
|
/// <returns type="kendo.geometry.Point">The current end point of the gradient.</returns>
|
|
/// </signature>
|
|
},
|
|
start: function(start) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the start point of the gradient.
|
|
/// </summary>
|
|
/// <param name="start" type="Object" >The start point of the gradient.Coordinates are relative to the shape bounding box. For example [0, 0] is top left and [1, 1] is bottom right.</param>
|
|
/// <returns type="kendo.geometry.Point">The current start point of the gradient.</returns>
|
|
/// </signature>
|
|
},
|
|
removeStop: function(stop) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes a color stop from the gradient.
|
|
/// Inherited from Gradient.removeStop
|
|
/// </summary>
|
|
/// <param name="stop" type="kendo.drawing.GradientStop" >The gradient color stop to remove.</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.drawing, {
|
|
MultiPath: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.MultiPath</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.MultiPath = (function() {
|
|
var original = kendo.drawing.MultiPath;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
bbox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with transformations applied.
|
|
/// Inherited from Element.bbox
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
clip: function(clip) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the element clipping path.
|
|
/// Inherited from Element.clip
|
|
/// </summary>
|
|
/// <param name="clip" type="kendo.drawing.Path" >The element clipping path.</param>
|
|
/// <returns type="kendo.drawing.Path">The current element clipping path.</returns>
|
|
/// </signature>
|
|
},
|
|
clippedBBox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with clipping and transformations applied.
|
|
/// Inherited from Element.clippedBBox
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with clipping transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
close: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Closes the current sub-path by linking its current end point with its start point.
|
|
/// </summary>
|
|
/// <returns type="kendo.drawing.MultiPath">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
curveTo: function(controlOut,controlIn,endPoint) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Draws a cubic Bézier curve (with two control points).A quadratic Bézier curve (with one control point) can be plotted by making the control point equal.
|
|
/// </summary>
|
|
/// <param name="controlOut" type="Object" >The first control point for the curve.</param>
|
|
/// <param name="controlIn" type="Object" >The second control point for the curve.</param>
|
|
/// <param name="endPoint" type="Object" >The curve end point.</param>
|
|
/// <returns type="kendo.drawing.MultiPath">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
fill: function(color,opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the shape fill.
|
|
/// </summary>
|
|
/// <param name="color" type="String" >The fill color to set.</param>
|
|
/// <param name="opacity" type="Number" >The fill opacity to set.</param>
|
|
/// <returns type="kendo.drawing.MultiPath">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
lineTo: function(x,y) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Draws a straight line to the specified absolute coordinates.
|
|
/// </summary>
|
|
/// <param name="x" type="Object" >The line end X coordinate or a Point/Array with X and Y coordinates.</param>
|
|
/// <param name="y" type="Number" >The line end Y coordinate.Optional if the first parameter is a Point/Array.</param>
|
|
/// <returns type="kendo.drawing.MultiPath">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
moveTo: function(x,y) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Creates a new sub-path or clears all segments and moves the starting point to the specified absolute coordinates.
|
|
/// </summary>
|
|
/// <param name="x" type="Object" >The starting X coordinate or a Point/Array with X and Y coordinates.</param>
|
|
/// <param name="y" type="Number" >The starting Y coordinate.Optional if the first parameter is a Point/Array.</param>
|
|
/// <returns type="kendo.drawing.MultiPath">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
opacity: function(opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the element opacity.
|
|
/// Inherited from Element.opacityIf set, the stroke and fill opacity will be multiplied by the element opacity.
|
|
/// </summary>
|
|
/// <param name="opacity" type="Number" >The element opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).</param>
|
|
/// <returns type="Number">The current element opacity.</returns>
|
|
/// </signature>
|
|
},
|
|
stroke: function(color,width,opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the shape stroke.
|
|
/// </summary>
|
|
/// <param name="color" type="String" >The stroke color to set.</param>
|
|
/// <param name="width" type="Number" >The stroke width to set.</param>
|
|
/// <param name="opacity" type="Number" >The stroke opacity to set.</param>
|
|
/// <returns type="kendo.drawing.MultiPath">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
transform: function(transform) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the transformation of the element.
|
|
/// Inherited from Element.transform
|
|
/// </summary>
|
|
/// <param name="transform" type="kendo.geometry.Transformation" >The transformation to apply to the element.</param>
|
|
/// <returns type="kendo.geometry.Transformation">The current transformation on the element.</returns>
|
|
/// </signature>
|
|
},
|
|
visible: function(visible) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the visibility of the element.
|
|
/// Inherited from Element.visible
|
|
/// </summary>
|
|
/// <param name="visible" type="Boolean" >A flag indicating if the element should be visible.</param>
|
|
/// <returns type="Boolean">true if the element is visible; false otherwise.</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.drawing, {
|
|
OptionsStore: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.OptionsStore</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.OptionsStore = (function() {
|
|
var original = kendo.drawing.OptionsStore;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
get: function(field) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the value of the specified option.
|
|
/// </summary>
|
|
/// <param name="field" type="String" >The field name to retrieve. Must be a fully qualified name (e.g. "foo.bar") for nested options.</param>
|
|
/// <returns type="Object">The current option value.</returns>
|
|
/// </signature>
|
|
},
|
|
set: function(field,value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the value of the specified option.
|
|
/// </summary>
|
|
/// <param name="field" type="String" >The name of the option to set. Must be a fully qualified name (e.g. "foo.bar") for nested options.</param>
|
|
/// <param name="value" type="Object" >The new option value.If the new value is exactly the same as the new value the operation will not trigger options change on the observer (if any).</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.drawing, {
|
|
PDFOptions: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.PDFOptions</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.PDFOptions = (function() {
|
|
var original = kendo.drawing.PDFOptions;
|
|
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.drawing, {
|
|
Path: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.Path</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.Path = (function() {
|
|
var original = kendo.drawing.Path;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
bbox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with transformations applied.
|
|
/// Inherited from Element.bbox
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
clip: function(clip) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the element clipping path.
|
|
/// Inherited from Element.clip
|
|
/// </summary>
|
|
/// <param name="clip" type="kendo.drawing.Path" >The element clipping path.</param>
|
|
/// <returns type="kendo.drawing.Path">The current element clipping path.</returns>
|
|
/// </signature>
|
|
},
|
|
clippedBBox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with clipping and transformations applied.
|
|
/// Inherited from Element.clippedBBox
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with clipping transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
close: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Closes the path by linking the current end point with the start point.
|
|
/// </summary>
|
|
/// <returns type="kendo.drawing.Path">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
curveTo: function(controlOut,controlIn,endPoint) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Draws a cubic Bézier curve (with two control points).A quadratic Bézier curve (with one control point) can be plotted by making the control point equal.
|
|
/// </summary>
|
|
/// <param name="controlOut" type="Object" >The first control point for the curve.</param>
|
|
/// <param name="controlIn" type="Object" >The second control point for the curve.</param>
|
|
/// <param name="endPoint" type="Object" >The curve end point.</param>
|
|
/// <returns type="kendo.drawing.Path">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
fill: function(color,opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the shape fill.
|
|
/// </summary>
|
|
/// <param name="color" type="String" >The fill color to set.</param>
|
|
/// <param name="opacity" type="Number" >The fill opacity to set.</param>
|
|
/// <returns type="kendo.drawing.Path">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
lineTo: function(x,y) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Draws a straight line to the specified absolute coordinates.
|
|
/// </summary>
|
|
/// <param name="x" type="Object" >The line end X coordinate or a Point/Array with X and Y coordinates.</param>
|
|
/// <param name="y" type="Number" >The line end Y coordinate.Optional if the first parameter is a Point/Array.</param>
|
|
/// <returns type="kendo.drawing.Path">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
moveTo: function(x,y) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Clears all existing segments and moves the starting point to the specified absolute coordinates.
|
|
/// </summary>
|
|
/// <param name="x" type="Object" >The starting X coordinate or a Point/Array with X and Y coordinates.</param>
|
|
/// <param name="y" type="Number" >The starting Y coordinate.Optional if the first parameter is a Point/Array.</param>
|
|
/// <returns type="kendo.drawing.Path">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
opacity: function(opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the element opacity.
|
|
/// Inherited from Element.opacityIf set, the stroke and fill opacity will be multiplied by the element opacity.
|
|
/// </summary>
|
|
/// <param name="opacity" type="Number" >The element opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).</param>
|
|
/// <returns type="Number">The current element opacity.</returns>
|
|
/// </signature>
|
|
},
|
|
stroke: function(color,width,opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the shape stroke.
|
|
/// </summary>
|
|
/// <param name="color" type="String" >The stroke color to set.</param>
|
|
/// <param name="width" type="Number" >The stroke width to set.</param>
|
|
/// <param name="opacity" type="Number" >The stroke opacity to set.</param>
|
|
/// <returns type="kendo.drawing.Path">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
transform: function(transform) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the transformation of the element.
|
|
/// Inherited from Element.transform
|
|
/// </summary>
|
|
/// <param name="transform" type="kendo.geometry.Transformation" >The transformation to apply to the element.</param>
|
|
/// <returns type="kendo.geometry.Transformation">The current transformation on the element.</returns>
|
|
/// </signature>
|
|
},
|
|
visible: function(visible) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the visibility of the element.
|
|
/// Inherited from Element.visible
|
|
/// </summary>
|
|
/// <param name="visible" type="Boolean" >A flag indicating if the element should be visible.</param>
|
|
/// <returns type="Boolean">true if the element is visible; false otherwise.</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.drawing, {
|
|
RadialGradient: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.RadialGradient</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.RadialGradient = (function() {
|
|
var original = kendo.drawing.RadialGradient;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
addStop: function(offset,color,opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Adds a color stop to the gradient.
|
|
/// Inherited from Gradient.addStop
|
|
/// </summary>
|
|
/// <param name="offset" type="Number" ></param>
|
|
/// <param name="color" type="String" >The color of the stop.</param>
|
|
/// <param name="opacity" type="Number" >The fill opacity.</param>
|
|
/// <returns type="kendo.drawing.GradientStop">The new gradient color stop.</returns>
|
|
/// </signature>
|
|
},
|
|
center: function(center) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the center point of the gradient.
|
|
/// </summary>
|
|
/// <param name="center" type="Object" >The center point of the gradient.Coordinates are relative to the shape bounding box. For example [0, 0] is top left and [1, 1] is bottom right.</param>
|
|
/// <returns type="kendo.geometry.Point">The current radius of the gradient.</returns>
|
|
/// </signature>
|
|
},
|
|
radius: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the radius of the gradient.
|
|
/// </summary>
|
|
/// <param name="value" type="Number" >The new radius of the gradient.</param>
|
|
/// <returns type="Number">The current radius of the gradient.</returns>
|
|
/// </signature>
|
|
},
|
|
removeStop: function(stop) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes a color stop from the gradient.
|
|
/// Inherited from Gradient.removeStop
|
|
/// </summary>
|
|
/// <param name="stop" type="kendo.drawing.GradientStop" >The gradient color stop to remove.</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.drawing, {
|
|
Rect: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.Rect</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.Rect = (function() {
|
|
var original = kendo.drawing.Rect;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
bbox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with transformations applied.
|
|
/// Inherited from Element.bbox
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
clip: function(clip) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the element clipping path.
|
|
/// Inherited from Element.clip
|
|
/// </summary>
|
|
/// <param name="clip" type="kendo.drawing.Path" >The element clipping path.</param>
|
|
/// <returns type="kendo.drawing.Path">The current element clipping path.</returns>
|
|
/// </signature>
|
|
},
|
|
clippedBBox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with clipping and transformations applied.
|
|
/// Inherited from Element.clippedBBox
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with clipping transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
geometry: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the rectangle geometry.
|
|
/// </summary>
|
|
/// <param name="value" type="kendo.geometry.Rect" >The new geometry to use.</param>
|
|
/// <returns type="kendo.geometry.Rect">The current rectangle geometry.</returns>
|
|
/// </signature>
|
|
},
|
|
fill: function(color,opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the shape fill.
|
|
/// </summary>
|
|
/// <param name="color" type="String" >The fill color to set.</param>
|
|
/// <param name="opacity" type="Number" >The fill opacity to set.</param>
|
|
/// <returns type="kendo.drawing.Rect">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
opacity: function(opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the element opacity.
|
|
/// Inherited from Element.opacityIf set, the stroke and fill opacity will be multiplied by the element opacity.
|
|
/// </summary>
|
|
/// <param name="opacity" type="Number" >The element opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).</param>
|
|
/// <returns type="Number">The current element opacity.</returns>
|
|
/// </signature>
|
|
},
|
|
stroke: function(color,width,opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the shape stroke.
|
|
/// </summary>
|
|
/// <param name="color" type="String" >The stroke color to set.</param>
|
|
/// <param name="width" type="Number" >The stroke width to set.</param>
|
|
/// <param name="opacity" type="Number" >The stroke opacity to set.</param>
|
|
/// <returns type="kendo.drawing.Rect">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
transform: function(transform) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the transformation of the element.
|
|
/// Inherited from Element.transform
|
|
/// </summary>
|
|
/// <param name="transform" type="kendo.geometry.Transformation" >The transformation to apply to the element.</param>
|
|
/// <returns type="kendo.geometry.Transformation">The current transformation on the element.</returns>
|
|
/// </signature>
|
|
},
|
|
visible: function(visible) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the visibility of the element.
|
|
/// Inherited from Element.visible
|
|
/// </summary>
|
|
/// <param name="visible" type="Boolean" >A flag indicating if the element should be visible.</param>
|
|
/// <returns type="Boolean">true if the element is visible; false otherwise.</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.drawing, {
|
|
Segment: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.Segment</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.Segment = (function() {
|
|
var original = kendo.drawing.Segment;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
anchor: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the segment anchor point.The setter returns the current Segment to allow chaining.
|
|
/// </summary>
|
|
/// <param name="value" type="kendo.geometry.Point" >The new anchor point.</param>
|
|
/// <returns type="kendo.geometry.Point">The current anchor point.</returns>
|
|
/// </signature>
|
|
},
|
|
controlIn: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the first curve control point of this segment.The setter returns the current Segment to allow chaining.
|
|
/// </summary>
|
|
/// <param name="value" type="kendo.geometry.Point" >The new control point.</param>
|
|
/// <returns type="kendo.geometry.Point">The current control point.</returns>
|
|
/// </signature>
|
|
},
|
|
controlOut: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the second curve control point of this segment.The setter returns the current Segment to allow chaining.
|
|
/// </summary>
|
|
/// <param name="value" type="kendo.geometry.Point" >The new control point.</param>
|
|
/// <returns type="kendo.geometry.Point">The current control point.</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.drawing, {
|
|
StrokeOptions: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.StrokeOptions</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.StrokeOptions = (function() {
|
|
var original = kendo.drawing.StrokeOptions;
|
|
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.drawing, {
|
|
Surface: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.Surface</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.Surface = (function() {
|
|
var original = kendo.drawing.Surface;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
clear: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Clears the drawing surface.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
draw: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Draws the element and its children on the surface.
|
|
/// Existing elements will remain visible.
|
|
/// </summary>
|
|
/// <param name="element" type="kendo.drawing.Element" >The element to draw.</param>
|
|
/// </signature>
|
|
},
|
|
eventTarget: function(e) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the target drawing element of a DOM event.
|
|
/// </summary>
|
|
/// <param name="e" type="Object" >The original DOM or jQuery event object.</param>
|
|
/// <returns type="kendo.drawing.Element">The target drawing element, if any.</returns>
|
|
/// </signature>
|
|
},
|
|
resize: function(force) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Resizes the surface to match the size of the container.
|
|
/// </summary>
|
|
/// <param name="force" type="Boolean" >Whether to proceed with resizing even if the container dimensions have not changed.</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.drawing, {
|
|
Text: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.drawing.Text</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.drawing.Text = (function() {
|
|
var original = kendo.drawing.Text;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
bbox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with transformations applied.
|
|
/// Inherited from Element.bbox
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
clip: function(clip) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the element clipping path.
|
|
/// Inherited from Element.clip
|
|
/// </summary>
|
|
/// <param name="clip" type="kendo.drawing.Path" >The element clipping path.</param>
|
|
/// <returns type="kendo.drawing.Path">The current element clipping path.</returns>
|
|
/// </signature>
|
|
},
|
|
clippedBBox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of the element with clipping and transformations applied.
|
|
/// Inherited from Element.clippedBBox
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box of the element with clipping transformations applied.</returns>
|
|
/// </signature>
|
|
},
|
|
content: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the text content.
|
|
/// </summary>
|
|
/// <param name="value" type="String" >The new text content to set.</param>
|
|
/// <returns type="String">The current content of the text.</returns>
|
|
/// </signature>
|
|
},
|
|
fill: function(color,opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the text fill.
|
|
/// </summary>
|
|
/// <param name="color" type="String" >The fill color to set.</param>
|
|
/// <param name="opacity" type="Number" >The fill opacity to set.</param>
|
|
/// <returns type="kendo.drawing.Text">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
opacity: function(opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the element opacity.
|
|
/// Inherited from Element.opacityIf set, the stroke and fill opacity will be multiplied by the element opacity.
|
|
/// </summary>
|
|
/// <param name="opacity" type="Number" >The element opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).</param>
|
|
/// <returns type="Number">The current element opacity.</returns>
|
|
/// </signature>
|
|
},
|
|
position: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the position of the text upper left corner.
|
|
/// </summary>
|
|
/// <param name="value" type="kendo.geometry.Point" >The new position of the text upper left corner.</param>
|
|
/// <returns type="kendo.geometry.Point">The current position of the text upper left corner.</returns>
|
|
/// </signature>
|
|
},
|
|
stroke: function(color,width,opacity) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the text stroke.
|
|
/// </summary>
|
|
/// <param name="color" type="String" >The stroke color to set.</param>
|
|
/// <param name="width" type="Number" >The stroke width to set.</param>
|
|
/// <param name="opacity" type="Number" >The stroke opacity to set.</param>
|
|
/// <returns type="kendo.drawing.Text">The current instance to allow chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
transform: function(transform) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the transformation of the element.
|
|
/// Inherited from Element.transform
|
|
/// </summary>
|
|
/// <param name="transform" type="kendo.geometry.Transformation" >The transformation to apply to the element.</param>
|
|
/// <returns type="kendo.geometry.Transformation">The current transformation on the element.</returns>
|
|
/// </signature>
|
|
},
|
|
visible: function(visible) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the visibility of the element.
|
|
/// Inherited from Element.visible
|
|
/// </summary>
|
|
/// <param name="visible" type="Boolean" >A flag indicating if the element should be visible.</param>
|
|
/// <returns type="Boolean">true if the element is visible; false otherwise.</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.geometry, {
|
|
Arc: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.geometry.Arc</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.geometry.Arc = (function() {
|
|
var original = kendo.geometry.Arc;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
bbox: function(matrix) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of this arc after applying the specified transformation matrix.
|
|
/// </summary>
|
|
/// <param name="matrix" type="kendo.geometry.Matrix" >Transformation matrix to apply.</param>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box after applying the transformation matrix.</returns>
|
|
/// </signature>
|
|
},
|
|
getAnticlockwise: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the arc anticlokwise flag.
|
|
/// </summary>
|
|
/// <returns type="Boolean">The anticlokwise flag of the arc.</returns>
|
|
/// </signature>
|
|
},
|
|
getCenter: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the arc center location.
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Point">The location of the arc center.</returns>
|
|
/// </signature>
|
|
},
|
|
getEndAngle: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the end angle of the arc in decimal degrees.
|
|
/// Measured in clockwise direction with 0 pointing "right".
|
|
/// </summary>
|
|
/// <returns type="Number">The end angle of the arc.</returns>
|
|
/// </signature>
|
|
},
|
|
getRadiusX: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the x radius of the arc.
|
|
/// </summary>
|
|
/// <returns type="Number">The x radius of the arc.</returns>
|
|
/// </signature>
|
|
},
|
|
getRadiusY: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the y radius of the arc.
|
|
/// </summary>
|
|
/// <returns type="Number">The y radius of the arc.</returns>
|
|
/// </signature>
|
|
},
|
|
getStartAngle: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the start angle of the arc in decimal degrees.
|
|
/// Measured in clockwise direction with 0 pointing "right".
|
|
/// </summary>
|
|
/// <returns type="Number">The start angle of the arc.</returns>
|
|
/// </signature>
|
|
},
|
|
pointAt: function(angle) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the location of a point on the arc's circumference at a given angle.
|
|
/// </summary>
|
|
/// <param name="angle" type="Number" >Angle in decimal degrees. Measured in clockwise direction with 0 pointing "right". Negative values or values greater than 360 will be normalized.</param>
|
|
/// <returns type="kendo.geometry.Point">The point on the arc's circumference.</returns>
|
|
/// </signature>
|
|
},
|
|
setAnticlockwise: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the arc anticlokwise flag.
|
|
/// </summary>
|
|
/// <param name="value" type="Boolean" >The new anticlockwise value.</param>
|
|
/// <returns type="kendo.geometry.Arc">The current arc instance.</returns>
|
|
/// </signature>
|
|
},
|
|
setCenter: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the arc center location.
|
|
/// </summary>
|
|
/// <param name="value" type="kendo.geometry.Point" >The new arc center.</param>
|
|
/// <returns type="kendo.geometry.Arc">The current arc instance.</returns>
|
|
/// </signature>
|
|
},
|
|
setEndAngle: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the end angle of the arc in decimal degrees.
|
|
/// Measured in clockwise direction with 0 pointing "right".
|
|
/// </summary>
|
|
/// <param name="value" type="Number" >The new arc end angle.</param>
|
|
/// <returns type="kendo.geometry.Arc">The current arc instance.</returns>
|
|
/// </signature>
|
|
},
|
|
setRadiusX: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the x radius of the arc.
|
|
/// </summary>
|
|
/// <param name="value" type="Number" >The new arc x radius.</param>
|
|
/// <returns type="kendo.geometry.Arc">The current arc instance.</returns>
|
|
/// </signature>
|
|
},
|
|
setRadiusY: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the y radius of the arc.
|
|
/// </summary>
|
|
/// <param name="value" type="Number" >The new arc y radius.</param>
|
|
/// <returns type="kendo.geometry.Arc">The current arc instance.</returns>
|
|
/// </signature>
|
|
},
|
|
setStartAngle: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the start angle of the arc in decimal degrees.
|
|
/// Measured in clockwise direction with 0 pointing "right".
|
|
/// </summary>
|
|
/// <param name="value" type="Number" >The new arc atart angle.</param>
|
|
/// <returns type="kendo.geometry.Arc">The current arc instance.</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.geometry, {
|
|
Circle: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.geometry.Circle</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.geometry.Circle = (function() {
|
|
var original = kendo.geometry.Circle;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
bbox: function(matrix) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of this circle after applying the
|
|
/// specified transformation matrix.
|
|
/// </summary>
|
|
/// <param name="matrix" type="kendo.geometry.Matrix" >Transformation matrix to apply.</param>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box after applying the transformation matrix.</returns>
|
|
/// </signature>
|
|
},
|
|
clone: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Creates a new instance with the same center and radius.
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Circle">A new Circle instance with the same center and radius.</returns>
|
|
/// </signature>
|
|
},
|
|
equals: function(other) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Compares this circle with another instance.
|
|
/// </summary>
|
|
/// <param name="other" type="kendo.geometry.Circle" >The circle to compare with.</param>
|
|
/// <returns type="Boolean">true if the point coordinates match; false otherwise.</returns>
|
|
/// </signature>
|
|
},
|
|
getCenter: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the circle center location.
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Point">The location of the circle center.</returns>
|
|
/// </signature>
|
|
},
|
|
getRadius: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the circle radius.
|
|
/// </summary>
|
|
/// <returns type="Number">The radius of the circle.</returns>
|
|
/// </signature>
|
|
},
|
|
pointAt: function(angle) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the location of a point on the circle's circumference at a given angle.
|
|
/// </summary>
|
|
/// <param name="angle" type="Number" >Angle in decimal degrees. Measured in clockwise direction with 0 pointing "right". Negative values or values greater than 360 will be normalized.</param>
|
|
/// <returns type="kendo.geometry.Point">The point on the circle's circumference.</returns>
|
|
/// </signature>
|
|
},
|
|
setCenter: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the location of the circle center.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The new center Point or equivalent [x, y] array.</param>
|
|
/// <returns type="kendo.geometry.Point">The location of the circle center.</returns>
|
|
/// </signature>
|
|
},
|
|
setRadius: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the circle radius.
|
|
/// </summary>
|
|
/// <param name="value" type="Number" >The new circle radius.</param>
|
|
/// <returns type="kendo.geometry.Circle">The current circle instance.</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.geometry, {
|
|
Matrix: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.geometry.Matrix</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.geometry.Matrix = (function() {
|
|
var original = kendo.geometry.Matrix;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
clone: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Creates a new instance with the same element values.
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Matrix">A new Matrix instance with the same element values.</returns>
|
|
/// </signature>
|
|
},
|
|
equals: function(other) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Compares this matrix with another instance.
|
|
/// </summary>
|
|
/// <param name="other" type="kendo.geometry.Matrix" >The matrix instance to compare with.</param>
|
|
/// <returns type="Boolean">true if the matrix elements match; false otherwise.</returns>
|
|
/// </signature>
|
|
},
|
|
round: function(digits) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Rounds the matrix elements to the specified number of fractional digits.
|
|
/// </summary>
|
|
/// <param name="digits" type="Number" >Number of fractional digits.</param>
|
|
/// <returns type="kendo.geometry.Matrix">The current matrix instance.</returns>
|
|
/// </signature>
|
|
},
|
|
multiplyCopy: function(matrix) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Multiplies the matrix with another one and returns the result as new instance.
|
|
/// The current instance elements are not altered.
|
|
/// </summary>
|
|
/// <param name="matrix" type="kendo.geometry.Matrix" >The matrix to multiply by.</param>
|
|
/// <returns type="kendo.geometry.Matrix">The result of the multiplication.</returns>
|
|
/// </signature>
|
|
},
|
|
toArray: function(digits) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the matrix elements as an [a, b, c, d, e, f] array.
|
|
/// </summary>
|
|
/// <param name="digits" type="Number" >(Optional) Number of fractional digits.</param>
|
|
/// <returns type="Array">An array representation of the matrix.</returns>
|
|
/// </signature>
|
|
},
|
|
toString: function(digits,separator) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Formats the matrix elements as a string.
|
|
/// </summary>
|
|
/// <param name="digits" type="Number" >(Optional) Number of fractional digits.</param>
|
|
/// <param name="separator" type="String" >The separator to place between elements.</param>
|
|
/// <returns type="String">A string representation of the matrix, e.g. "1, 0, 0, 1, 0, 0".</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.geometry, {
|
|
Point: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.geometry.Point</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.geometry.Point = (function() {
|
|
var original = kendo.geometry.Point;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
clone: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Creates a new instance with the same coordinates.
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Point">A new Point instance with the same coordinates.</returns>
|
|
/// </signature>
|
|
},
|
|
distanceTo: function(point) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Calculates the distance to another point.
|
|
/// </summary>
|
|
/// <param name="point" type="kendo.geometry.Point" >The point to calculate the distance to.</param>
|
|
/// <returns type="Number">The straight line distance to the given point.</returns>
|
|
/// </signature>
|
|
},
|
|
equals: function(other) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Compares this point with another instance.
|
|
/// </summary>
|
|
/// <param name="other" type="kendo.geometry.Point" >The point to compare with.</param>
|
|
/// <returns type="Boolean">true if the point coordinates match; false otherwise.</returns>
|
|
/// </signature>
|
|
},
|
|
getX: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the x coordinate value.
|
|
/// </summary>
|
|
/// <returns type="Number">The current x coordinate value.</returns>
|
|
/// </signature>
|
|
},
|
|
getY: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the y coordinate value.
|
|
/// </summary>
|
|
/// <returns type="Number">The current y coordinate value.</returns>
|
|
/// </signature>
|
|
},
|
|
move: function(x,y) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Moves the point to the specified x and y coordinates.
|
|
/// </summary>
|
|
/// <param name="x" type="Number" >The new X coordinate.</param>
|
|
/// <param name="y" type="Number" >The new Y coordinate.</param>
|
|
/// <returns type="kendo.geometry.Point">The current point instance.</returns>
|
|
/// </signature>
|
|
},
|
|
rotate: function(angle,center) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Rotates the point around the given center.
|
|
/// </summary>
|
|
/// <param name="angle" type="Number" >Angle in decimal degrees. Measured in clockwise direction with 0 pointing "right". Negative values or values greater than 360 will be normalized.</param>
|
|
/// <param name="center" type="Object" >The rotation center. Can be a Point instance or an [x, y] array.</param>
|
|
/// <returns type="kendo.geometry.Point">The current Point instance.</returns>
|
|
/// </signature>
|
|
},
|
|
round: function(digits) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Rounds the point coordinates to the specified number of fractional digits.
|
|
/// </summary>
|
|
/// <param name="digits" type="Number" >Number of fractional digits.</param>
|
|
/// <returns type="kendo.geometry.Point">The current Point instance.</returns>
|
|
/// </signature>
|
|
},
|
|
scale: function(scaleX,scaleY) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Scales the point coordinates along the x and y axis.
|
|
/// </summary>
|
|
/// <param name="scaleX" type="Number" >The x scale multiplier.</param>
|
|
/// <param name="scaleY" type="Number" >The y scale multiplier.</param>
|
|
/// <returns type="kendo.geometry.Point">The current point instance.</returns>
|
|
/// </signature>
|
|
},
|
|
scaleCopy: function(scaleX,scaleY) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Scales the point coordinates on a copy of the current point.
|
|
/// The callee coordinates will remain unchanged.
|
|
/// </summary>
|
|
/// <param name="scaleX" type="Number" >The x scale multiplier.</param>
|
|
/// <param name="scaleY" type="Number" >The y scale multiplier.</param>
|
|
/// <returns type="kendo.geometry.Point">The new Point instance.</returns>
|
|
/// </signature>
|
|
},
|
|
setX: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the x coordinate to a new value.
|
|
/// </summary>
|
|
/// <param name="value" type="Number" >The new x coordinate value.</param>
|
|
/// <returns type="kendo.geometry.Point">The current Point instance.</returns>
|
|
/// </signature>
|
|
},
|
|
setY: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the y coordinate to a new value.
|
|
/// </summary>
|
|
/// <param name="value" type="Number" >The new y coordinate value.</param>
|
|
/// <returns type="kendo.geometry.Point">The current Point instance.</returns>
|
|
/// </signature>
|
|
},
|
|
toArray: function(digits) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the point coordinates as an [x, y] array.
|
|
/// </summary>
|
|
/// <param name="digits" type="Number" >(Optional) Number of fractional digits.</param>
|
|
/// <returns type="Array">An array representation of the point, e.g. [10, 20]</returns>
|
|
/// </signature>
|
|
},
|
|
toString: function(digits,separator) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Formats the point value to a string.
|
|
/// </summary>
|
|
/// <param name="digits" type="Number" >(Optional) Number of fractional digits.</param>
|
|
/// <param name="separator" type="String" >The separator to place between coordinates.</param>
|
|
/// <returns type="String">A string representation of the point, e.g. "10 20".</returns>
|
|
/// </signature>
|
|
},
|
|
transform: function(tansformation) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Applies a transformation to the point coordinates.
|
|
/// The current coordinates will be overriden.
|
|
/// </summary>
|
|
/// <param name="tansformation" type="kendo.geometry.Transformation" >The transformation to apply.</param>
|
|
/// <returns type="kendo.geometry.Point">The current Point instance.</returns>
|
|
/// </signature>
|
|
},
|
|
transformCopy: function(tansformation) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Applies a transformation on a copy of the current point.
|
|
/// The callee coordinates will remain unchanged.
|
|
/// </summary>
|
|
/// <param name="tansformation" type="kendo.geometry.Transformation" >The transformation to apply.</param>
|
|
/// <returns type="kendo.geometry.Point">The new Point instance.</returns>
|
|
/// </signature>
|
|
},
|
|
translate: function(dx,dy) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Translates the point along the x and y axis.
|
|
/// </summary>
|
|
/// <param name="dx" type="Number" >The distance to move along the X axis.</param>
|
|
/// <param name="dy" type="Number" >The distance to move along the Y axis.</param>
|
|
/// <returns type="kendo.geometry.Point">The current point instance.</returns>
|
|
/// </signature>
|
|
},
|
|
translateWith: function(vector) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Translates the point by using a Point instance as a vector of translation.
|
|
/// </summary>
|
|
/// <param name="vector" type="Object" >The vector of translation. Can be either a Point instance or an [x, y] array.</param>
|
|
/// <returns type="kendo.geometry.Point">The current point instance.</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.geometry, {
|
|
Rect: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.geometry.Rect</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.geometry.Rect = (function() {
|
|
var original = kendo.geometry.Rect;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
bbox: function(matrix) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the bounding box of this rectangle after applying the
|
|
/// specified transformation matrix.
|
|
/// </summary>
|
|
/// <param name="matrix" type="kendo.geometry.Matrix" >Transformation matrix to apply.</param>
|
|
/// <returns type="kendo.geometry.Rect">The bounding box after applying the transformation matrix.</returns>
|
|
/// </signature>
|
|
},
|
|
bottomLeft: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the position of the bottom-left corner of the rectangle.
|
|
/// This is also the rectangle origin
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Point">The position of the bottom-left corner.</returns>
|
|
/// </signature>
|
|
},
|
|
bottomRight: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the position of the bottom-right corner of the rectangle.
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Point">The position of the bottom-right corner.</returns>
|
|
/// </signature>
|
|
},
|
|
center: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the position of the center of the rectangle.
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Point">The position of the center.</returns>
|
|
/// </signature>
|
|
},
|
|
clone: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Creates a new instance with the same origin and size.
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Rect">A new Rect instance with the same origin and size.</returns>
|
|
/// </signature>
|
|
},
|
|
equals: function(other) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Compares this rectangle with another instance.
|
|
/// </summary>
|
|
/// <param name="other" type="kendo.geometry.Rect" >The rectangle to compare with.</param>
|
|
/// <returns type="Boolean">true if the origin and size is the same for both rectangles; false otherwise.</returns>
|
|
/// </signature>
|
|
},
|
|
getOrigin: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the origin (top-left point) of the rectangle.
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Point">The origin (top-left point).</returns>
|
|
/// </signature>
|
|
},
|
|
getSize: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the rectangle size.
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Size">The current rectangle Size.</returns>
|
|
/// </signature>
|
|
},
|
|
height: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the rectangle height.
|
|
/// </summary>
|
|
/// <returns type="Number">The rectangle height.</returns>
|
|
/// </signature>
|
|
},
|
|
setOrigin: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the origin (top-left point) of the rectangle.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The new origin Point or equivalent [x, y] array.</param>
|
|
/// <returns type="kendo.geometry.Rect">The current rectangle instance.</returns>
|
|
/// </signature>
|
|
},
|
|
setSize: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the rectangle size.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The new rectangle Size or equivalent [width, height] array.</param>
|
|
/// <returns type="kendo.geometry.Rect">The current rectangle instance.</returns>
|
|
/// </signature>
|
|
},
|
|
topLeft: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the position of the top-left corner of the rectangle.
|
|
/// This is also the rectangle origin
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Point">The position of the top-left corner.</returns>
|
|
/// </signature>
|
|
},
|
|
topRight: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the position of the top-right corner of the rectangle.
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Point">The position of the top-right corner.</returns>
|
|
/// </signature>
|
|
},
|
|
width: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the rectangle width.
|
|
/// </summary>
|
|
/// <returns type="Number">The rectangle width.</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.geometry, {
|
|
Size: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.geometry.Size</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.geometry.Size = (function() {
|
|
var original = kendo.geometry.Size;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
clone: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Creates a new instance with the same width and height.
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Size">A new Size instance with the same coordinates.</returns>
|
|
/// </signature>
|
|
},
|
|
equals: function(other) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Compares this Size with another instance.
|
|
/// </summary>
|
|
/// <param name="other" type="kendo.geometry.Size" >The Size to compare with.</param>
|
|
/// <returns type="Boolean">true if the size members match; false otherwise.</returns>
|
|
/// </signature>
|
|
},
|
|
getWidth: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the width value.
|
|
/// </summary>
|
|
/// <returns type="Number">The current width value.</returns>
|
|
/// </signature>
|
|
},
|
|
getHeight: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the height value.
|
|
/// </summary>
|
|
/// <returns type="Number">The current height value.</returns>
|
|
/// </signature>
|
|
},
|
|
setWidth: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the width to a new value.
|
|
/// </summary>
|
|
/// <param name="value" type="Number" >The new width value.</param>
|
|
/// <returns type="kendo.geometry.Size">The current Size instance.</returns>
|
|
/// </signature>
|
|
},
|
|
setHeight: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the height to a new value.
|
|
/// </summary>
|
|
/// <param name="value" type="Number" >The new height value.</param>
|
|
/// <returns type="kendo.geometry.Size">The current Size instance.</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.geometry, {
|
|
Transformation: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.geometry.Transformation</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.geometry.Transformation = (function() {
|
|
var original = kendo.geometry.Transformation;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
clone: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Creates a new instance with the same transformation matrix.
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Transformation">A new Transformation instance with the same matrix.</returns>
|
|
/// </signature>
|
|
},
|
|
equals: function(other) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Compares this transformation with another instance.
|
|
/// </summary>
|
|
/// <param name="other" type="kendo.geometry.Transformation" >The transformation to compare with.</param>
|
|
/// <returns type="Boolean">true if the transformation matrix is the same; false otherwise.</returns>
|
|
/// </signature>
|
|
},
|
|
matrix: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the current transformation matrix for this transformation.
|
|
/// </summary>
|
|
/// <returns type="kendo.geometry.Matrix">The current transformation matrix.</returns>
|
|
/// </signature>
|
|
},
|
|
multiply: function(transformation) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Multiplies the transformation with another.
|
|
/// The underlying transformation matrix is updated in-place.
|
|
/// </summary>
|
|
/// <param name="transformation" type="kendo.geometry.Transformation" >The transformation to multiply by.</param>
|
|
/// <returns type="kendo.geometry.Transformation">The current transformation instance.</returns>
|
|
/// </signature>
|
|
},
|
|
rotate: function(angle,center) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets rotation with the specified parameters.
|
|
/// </summary>
|
|
/// <param name="angle" type="Number" >The angle of rotation in decimal degrees. Measured in clockwise direction with 0 pointing "right". Negative values or values greater than 360 will be normalized.</param>
|
|
/// <param name="center" type="Object" >The center of rotation.</param>
|
|
/// <returns type="kendo.geometry.Transformation">The current transformation instance.</returns>
|
|
/// </signature>
|
|
},
|
|
scale: function(scaleX,scaleY) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets scale with the specified parameters.
|
|
/// </summary>
|
|
/// <param name="scaleX" type="Number" >The scale factor on the X axis.</param>
|
|
/// <param name="scaleY" type="Number" >The scale factor on the Y axis.</param>
|
|
/// <returns type="kendo.geometry.Transformation">The current transformation instance.</returns>
|
|
/// </signature>
|
|
},
|
|
translate: function(x,y) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets translation with the specified parameters.
|
|
/// </summary>
|
|
/// <param name="x" type="Number" >The distance to translate along the X axis.</param>
|
|
/// <param name="y" type="Number" >The distance to translate along the Y axis.</param>
|
|
/// <returns type="kendo.geometry.Transformation">The current transformation instance.</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.ooxml, {
|
|
Workbook: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ooxml.Workbook</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ooxml.Workbook = (function() {
|
|
var original = kendo.ooxml.Workbook;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
toDataURL: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Creates an Excel file that represents the current workbook and returns it as a data URL.
|
|
/// </summary>
|
|
/// <returns type="String">the Excel file as data URL.</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.spreadsheet, {
|
|
CustomFilter: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.spreadsheet.CustomFilter</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.spreadsheet.CustomFilter = (function() {
|
|
var original = kendo.spreadsheet.CustomFilter;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
init: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// The constructor of the filter.
|
|
/// </summary>
|
|
/// <param name="options" type="Object" >An object which may contain the following keys:The supported criteria operators are: eq (equal to), neq (not equal to), lt (less than), lte (less than or equal to), gt (greater than), gte (greater than or equal to). In addition, startswith, endswith, contains, doesnotstartwith and doesnotendwith are supported for cells that contain strings.</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.spreadsheet, {
|
|
DynamicFilter: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.spreadsheet.DynamicFilter</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.spreadsheet.DynamicFilter = (function() {
|
|
var original = kendo.spreadsheet.DynamicFilter;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
init: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// The constructor of the filter.
|
|
/// </summary>
|
|
/// <param name="options" type="Object" >An object which should have a type field set to:</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.spreadsheet, {
|
|
Range: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.spreadsheet.Range</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.spreadsheet.Range = (function() {
|
|
var original = kendo.spreadsheet.Range;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
borderBottom: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the state of the bottom border of the cells. If the range includes more than a single cell, the setting is applied to all cells.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The border configuration object. It may contain size and color keys.The color may be set to any valid CSS color. The size accepts any valid Length value.</param>
|
|
/// <returns type="Object">the current value of the top-left cell of the range.</returns>
|
|
/// </signature>
|
|
},
|
|
borderLeft: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the state of the left border of the cells. If the range includes more than a single cell, the setting is applied to all cells.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The border configuration object. It may contain size and color keys.The color may be set to any valid CSS color. The size accepts any valid Length value.</param>
|
|
/// <returns type="Object">the current value of the top-left cell of the range.</returns>
|
|
/// </signature>
|
|
},
|
|
borderRight: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the state of the right border of the cells. If the range includes more than a single cell, the setting is applied to all cells.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The border configuration object. It may contain size and color keys.The color may be set to any valid CSS color. The size accepts any valid Length value.</param>
|
|
/// <returns type="Object">the current value of the top-left cell of the range.</returns>
|
|
/// </signature>
|
|
},
|
|
borderTop: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the state of the top border of the cells. If the range includes more than a single cell, the setting is applied to all cells.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The border configuration object. It may contain size and color keys.The color may be set to any valid CSS color. The size accepts any valid Length value.</param>
|
|
/// <returns type="Object">the current value of the top-left cell of the range.</returns>
|
|
/// </signature>
|
|
},
|
|
clear: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Clears the contents of the range cells.
|
|
/// </summary>
|
|
/// <param name="options" type="Object" >An object which may contain contentsOnly: true or formatOnly: true key values. Clearing the format will remove the cell formatting and visual styles.If a parameter is not passed, the method will clear both the cells values and the formatting.</param>
|
|
/// </signature>
|
|
},
|
|
clearFilter: function(indices) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Clears the set filters for the given column(s). The indices is relative to the beginning of the range.
|
|
/// </summary>
|
|
/// <param name="indices" type="Object" >The column(s) which filters should be cleared.</param>
|
|
/// </signature>
|
|
},
|
|
filter: function(filter) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables/disables or sets the filter for a given range.
|
|
/// </summary>
|
|
/// <param name="filter" type="Object" >Determines the action performed by the method.</param>
|
|
/// </signature>
|
|
},
|
|
format: function(format) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the format of the cells.
|
|
/// </summary>
|
|
/// <param name="format" type="String" >The new format for the cells.</param>
|
|
/// <returns type="String">the format of the top-left cell of the range. When used as asetter, format returns the Range object to allow chained calls.More details about the supported format may be found in the cell formatting help topic.</returns>
|
|
/// </signature>
|
|
},
|
|
formula: function(formula) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the formula of the cells.
|
|
/// </summary>
|
|
/// <param name="formula" type="String" >The new formula of the cell. The string may optionally start with =.</param>
|
|
/// <returns type="String">the formula of the top-left cell of the range.</returns>
|
|
/// </signature>
|
|
},
|
|
hasFilter: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns true if the sheet of the range has filter enabled.
|
|
/// </summary>
|
|
/// <returns type="Boolean">true if the sheet has a filter, false otherwise.</returns>
|
|
/// </signature>
|
|
},
|
|
input: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the value of the cells. This is similar to value, but it parses the argument as if it was entered through the text box:
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The value to be set to the cells.</param>
|
|
/// <returns type="Object">the current value of the top-left cell of the range.</returns>
|
|
/// </signature>
|
|
},
|
|
isSortable: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns if a range can be sorted.
|
|
/// </summary>
|
|
/// <returns type="Boolean">whether the range can be sorted.</returns>
|
|
/// </signature>
|
|
},
|
|
isFilterable: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns if a range can be filtered.
|
|
/// </summary>
|
|
/// <returns type="Boolean">whether the range can be filtered.</returns>
|
|
/// </signature>
|
|
},
|
|
merge: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Merges the range cells into a single merged cell. If the range already includes a merged cell, they are merged, too.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
select: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the sheet selection to the range cells.```
|
|
/// <div id="spreadsheet"></div>
|
|
/// script```
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
sort: function(sort) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sorts the rows in the range.
|
|
/// </summary>
|
|
/// <param name="sort" type="Object" >Determines the action performed by the method.</param>
|
|
/// </signature>
|
|
},
|
|
unmerge: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Un-merges any merged cells which are included in the range.```
|
|
/// <div id="spreadsheet"></div>
|
|
/// script```
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
values: function(values) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the values of the range cells. The argument should be an array of arrays which match the dimensions of the range.
|
|
/// </summary>
|
|
/// <param name="values" type="Array" >The cell values.</param>
|
|
/// </signature>
|
|
},
|
|
validation: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the validation of the cells.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The validation configuration object. It may contain type, comparerType, dataType, from, to, allowNulls, messageTemplate and titleTemplate keys.The type Can be set to "warning" or "reject". By default the type is "warning".The comparerType Can be set to "greaterThan", "lessThan", "between", "equalTo", "notEqualTo", "greaterThanOrEqualTo", "lessThanOrEqualTo", "notBetween" or "custom".The dataType Can be set to "date", "text", "number" or "custom".The from This key holds formula or value. Used as first or only compare value depending on specified comparer.The to This key can be set to formula or value. It's optional depending on the specified comparer.The allowNulls Can be set to boolean value.The messageTemplate The message which will be displayed in the "reject" validation window.The titleTemplate The title of the "reject" validation window.</param>
|
|
/// <returns type="Object">the current validation of the top-left cell of the range.</returns>
|
|
/// </signature>
|
|
},
|
|
value: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the value of the cells.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The value to be set to the cells.</param>
|
|
/// <returns type="Object">the current value of the top-left cell of the range.</returns>
|
|
/// </signature>
|
|
},
|
|
wrap: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the wrap of the range cells.
|
|
/// </summary>
|
|
/// <param name="value" type="Boolean" >if to enable wrapping, false otherwise.</param>
|
|
/// <returns type="Boolean">the current wrap state of the top-left cell of the range.</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.spreadsheet, {
|
|
Sheet: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.spreadsheet.Sheet</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.spreadsheet.Sheet = (function() {
|
|
var original = kendo.spreadsheet.Sheet;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
clearFilter: function(indexes) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Clears the filters for the passed column index. If an array is passed, clearFilter will clear the filter for each column index.
|
|
/// </summary>
|
|
/// <param name="indexes" type="Object" >The column index(es)</param>
|
|
/// </signature>
|
|
},
|
|
columnWidth: function(index,width) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the width of the column at the given index.
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >The zero-based index of the column</param>
|
|
/// <param name="width" type="Number" >If passed, the method will set the width of the column at the passed index.</param>
|
|
/// </signature>
|
|
},
|
|
deleteColumn: function(index) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Deletes the contents of the column at the provided index and shifts the remaining contents of the sheet to the left.
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >The zero-based index of the column</param>
|
|
/// </signature>
|
|
},
|
|
fromJSON: function(data) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Loads the widget state and sheet data from JSON.The schema follows the same structure as the widget configuration.
|
|
/// </summary>
|
|
/// <param name="data" type="Object" >The object to load data from. This should be the deserialized object, not the JSON string.</param>
|
|
/// </signature>
|
|
},
|
|
frozenColumns: function(count) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the amount of frozen columns displayed by the sheet.
|
|
/// </summary>
|
|
/// <param name="count" type="Number" >The amount of columns to be frozen. Pass 0 to remove the frozen pane.</param>
|
|
/// <returns type="Number">The current frozen columns. By default, returns 0.</returns>
|
|
/// </signature>
|
|
},
|
|
frozenRows: function(count) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the amount of frozen rows displayed by the sheet.
|
|
/// </summary>
|
|
/// <param name="count" type="Number" >The amount of columns to be frozen. Pass 0 to remove the frozen pane.</param>
|
|
/// <returns type="Number">The current frozen rows. By default, returns 0.</returns>
|
|
/// </signature>
|
|
},
|
|
hideColumn: function(index) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Hides the column at the provided index.
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >The zero-based index of the column</param>
|
|
/// </signature>
|
|
},
|
|
hideRow: function(index) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Hides the row at the provided index.
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >The zero-based index of the row</param>
|
|
/// </signature>
|
|
},
|
|
insertColumn: function(index) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts a new, empty column at the provided index. The contents of the spreadsheet (including the ones in the current column index) are shifted to the right.
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >The zero-based index of the column</param>
|
|
/// </signature>
|
|
},
|
|
insertRow: function(index) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts a new, empty row at the provided index. The contents of the spreadsheet (including the ones in the current row index) are shifted down.
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >The zero-based index of the column</param>
|
|
/// </signature>
|
|
},
|
|
range: function(ref) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a Range for the given range specification.
|
|
/// </summary>
|
|
/// <param name="ref" type="String" >A1 or RC notation reference of the cells.</param>
|
|
/// <returns type="kendo.spreadsheet.Range">a range object, which may be used to manipulate the cell state further.</returns>
|
|
/// </signature>
|
|
},
|
|
rowHeight: function(index,width) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the height of the row at the given index.
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >The zero-based index of the row</param>
|
|
/// <param name="width" type="Number" >If passed, the method will set the height of the row at the passed index.</param>
|
|
/// </signature>
|
|
},
|
|
selection: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a range with the current active selection.
|
|
/// </summary>
|
|
/// <returns type="kendo.spreadsheet.Range">the selection range.</returns>
|
|
/// </signature>
|
|
},
|
|
toJSON: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Stores the widget state and sheet data to JSON format.The schema follows the same structure as the widget configuration.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
unhideColumn: function(index) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Shows the hidden column at the provided index. Does not have any effect if the column is already visible.
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >The zero-based index of the column</param>
|
|
/// </signature>
|
|
},
|
|
unhideRow: function(index) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Shows the hidden row at the provided index. Does not have any effect if the row is already visible.
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >The zero-based index of the row</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.spreadsheet, {
|
|
TopFilter: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.spreadsheet.TopFilter</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.spreadsheet.TopFilter = (function() {
|
|
var original = kendo.spreadsheet.TopFilter;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
init: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// The constructor of the filter.
|
|
/// </summary>
|
|
/// <param name="options" type="Object" >An object which may contain the following keys:</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.spreadsheet, {
|
|
ValueFilter: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.spreadsheet.ValueFilter</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.spreadsheet.ValueFilter = (function() {
|
|
var original = kendo.spreadsheet.ValueFilter;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
init: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// The constructor of the filter.
|
|
/// </summary>
|
|
/// <param name="options" type="Object" >An object which may contain the following keys:</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.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|kendo.data.DataSource
|
|
/// 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.
|
|
///
|
|
/// fixedGroupTemplate — String|Function
|
|
/// The template used to render the fixed header group. By default the widget displays only the value of the current group.
|
|
///
|
|
/// groupTemplate — String|Function
|
|
/// The template used to render the groups. By default the widget displays only the value of the group.
|
|
///
|
|
/// 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.
|
|
///
|
|
/// popup — Object
|
|
/// The options that will be used for the popup initialization. For more details about the available options
|
|
/// refer to Popup documentation.
|
|
///
|
|
/// 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)
|
|
/// 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 text field. If set to false, the View-Model field will be updated with the selected item.
|
|
///
|
|
/// virtual — Boolean (default: false)
|
|
/// Enables the virtualization feature of the widget.
|
|
///
|
|
/// virtual — Object (default: false)
|
|
/// Enables the virtualization feature of the widget.
|
|
///
|
|
/// </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. true and false 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 (default: 14)
|
|
/// 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 (default: 14)
|
|
/// The size of a color cell.
|
|
///
|
|
/// messages — Object
|
|
/// Allows localization of the strings that are used in the widget.
|
|
///
|
|
/// 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>
|
|
/// 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 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 defined the parent's dataValueField option will be used.
|
|
/// Help topic showing how cascading functionality works
|
|
///
|
|
/// dataSource — Object|Array|kendo.data.DataSource
|
|
/// 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 off by default.
|
|
/// The supported filter values are startswith, endswith and contains.
|
|
///
|
|
/// fixedGroupTemplate — String|Function
|
|
/// The template used to render the fixed header group. By default the widget displays only the value of the current group.
|
|
///
|
|
/// groupTemplate — String|Function
|
|
/// The template used to render the groups. By default the widget displays only the value of the group.
|
|
///
|
|
/// 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.
|
|
///
|
|
/// popup — Object
|
|
/// The options that will be used for the popup initialization. For more details about the available options
|
|
/// refer to Popup documentation.
|
|
///
|
|
/// 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.
|
|
///
|
|
/// virtual — Boolean (default: false)
|
|
/// Enables the virtualization feature of the widget.
|
|
///
|
|
/// virtual — Object (default: false)
|
|
/// Enables the virtualization feature of the widget.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
ContextMenu: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.ContextMenu</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.ContextMenu = (function() {
|
|
var original = kendo.ui.ContextMenu;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
append: function(item,referenceItem) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Appends an item to a ContextMenu in the specified referenceItem's sub menu (or the root context menu if not specified).
|
|
/// </summary>
|
|
/// <param name="item" type="Object" >Item to be appended, specified as a JSON object. An array of objects can also be passed.</param>
|
|
/// <param name="referenceItem" type="Object" >A reference item to append the new item in. Root context menu if not specified.</param>
|
|
/// <returns type="kendo.ui.ContextMenu">Returns the ContextMenu object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
close: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Closes the ContextMenu. This method can be prevented to stop the closure.
|
|
/// </summary>
|
|
/// <param name="element" type="Object" >If called without arguments, will close the ContextMenu. If passed an item, it will be closed (if opened).</param>
|
|
/// <returns type="kendo.ui.ContextMenu">Returns the ContextMenu object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the ContextMenu 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 ContextMenu. This can optionally be accomplished on
|
|
/// initialization by setting the disabled="disabled" on the desired menu item html element.
|
|
/// </summary>
|
|
/// <param name="element" type="Object" >Target element</param>
|
|
/// <param name="enable" type="Boolean" >Desired state</param>
|
|
/// <returns type="kendo.ui.ContextMenu">Returns the ContextMenu object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
insertAfter: function(item,referenceItem) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts an item into a ContextMenu after the specified referenceItem.
|
|
/// </summary>
|
|
/// <param name="item" type="Object" >Target item, specified as a JSON object. Can also handle an array of such objects.</param>
|
|
/// <param name="referenceItem" type="Object" >A reference item to insert the new item after.</param>
|
|
/// <returns type="kendo.ui.ContextMenu">Returns the ContextMenu object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
insertBefore: function(item,referenceItem) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts an item into a ContextMenu before the specified referenceItem.
|
|
/// </summary>
|
|
/// <param name="item" type="Object" >Target item, specified as a JSON object. Can also handle an array of such objects.</param>
|
|
/// <param name="referenceItem" type="Object" >A reference item to insert the new item before</param>
|
|
/// <returns type="kendo.ui.ContextMenu">Returns the ContextMenu object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
open: function(x,y) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Shows the ContextMenu at the specified coordinates in pixels or aligned to the specified anchor. If passed an item, it will be opened. This method can be prevented to stop the ContextMenu from opening.
|
|
/// </summary>
|
|
/// <param name="x" type="Object" >X coordinate in pixels or the anchor element to which to align. If passed an item - jQuery object or element - it will be opened.</param>
|
|
/// <param name="y" type="Number" >Y coordinate in pixels. If not specified, ContextMenu will assume the first parameter is an anchor element.</param>
|
|
/// <returns type="kendo.ui.ContextMenu">Returns the ContextMenu object to support chaining.</returns>
|
|
/// </signature>
|
|
},
|
|
remove: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes a specified item(s) from a ContextMenu.
|
|
/// </summary>
|
|
/// <param name="element" type="Object" >Target item selector.</param>
|
|
/// <returns type="kendo.ui.ContextMenu">Returns the ContextMenu 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.kendoContextMenu = function() {
|
|
this.data("kendoContextMenu", new kendo.ui.ContextMenu());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoContextMenu: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.ContextMenu widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.ContextMenu">The kendo.ui.ContextMenu instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoContextMenu: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.ContextMenu widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// alignToAnchor — Boolean (default: false)
|
|
/// Specifies that ContextMenu should be shown aligned to the target or the filter element if specified.
|
|
///
|
|
/// 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 ContextMenu 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).
|
|
///
|
|
/// dataSource — Object|Array
|
|
/// The data source of the widget which is used to render its items. Can be a JSON object/Array that contains an item or an Array of items to be rendered.
|
|
/// Refer to the example below for a list of the supported properties.
|
|
///
|
|
/// direction — String (default: "default")
|
|
/// Specifies ContextMenu's sub menu opening direction. Can be "top", "bottom", "left", "right".
|
|
/// The example below will initialize the sub menus to open to the left.
|
|
///
|
|
/// filter — String
|
|
/// Specifies ContextMenu filter selector - the ContextMenu will only be shown on items that satisfy the provided selector.
|
|
///
|
|
/// hoverDelay — Number (default: 100)
|
|
/// Specifies the delay in ms before the sub menus are opened/closed - used to avoid accidental closure on leaving.
|
|
///
|
|
/// orientation — String (default: "vertical")
|
|
/// Root menu orientation. Could be horizontal or vertical.
|
|
///
|
|
/// popupCollision — String
|
|
/// Specifies how ContextMenu should adjust to screen boundaries. By default the strategy is "fit" for a sub menu with a horizontal parent or the root menu,
|
|
/// 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.
|
|
///
|
|
/// showOn — String
|
|
/// Specifies the event or events on which ContextMenu should open. By default ContextMenu will show on contextmenu event on desktop and hold event on touch devices.
|
|
/// Could be any pointer/mouse/touch event, also several, separated by spaces.
|
|
///
|
|
/// target — String|jQuery (default: "body")
|
|
/// Specifies the element on which ContextMenu should open. The default element is the document body.
|
|
///
|
|
/// </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>
|
|
},
|
|
setOptions: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Changes the initial DatePicker configuration.
|
|
/// </summary>
|
|
/// <param name="options" type="Object" >The new configuration options.</param>
|
|
/// </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 list 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 the format option is always used during parsing.
|
|
///
|
|
/// 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>
|
|
},
|
|
setOptions: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object" >The new configuration options.</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. The timeFormat value also will be used if defined.
|
|
///
|
|
/// 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".
|
|
///
|
|
/// autoScroll — Boolean (default: false)
|
|
/// If set to true the widget will auto-scroll the container when the mouse/finger is close to the top/bottom of it.
|
|
///
|
|
/// container — jQuery
|
|
/// If set, the hint movement is constrained to the container boundaries.
|
|
///
|
|
/// 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|jQuery
|
|
/// 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 DropDownList 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 defined the parent's dataValueField option will be used.
|
|
/// Help topic showing how cascading functionality works
|
|
///
|
|
/// dataSource — Object|Array|kendo.data.DataSource
|
|
/// 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.
|
|
///
|
|
/// filter — String (default: "none")
|
|
/// The filtering method used to determine the suggestions for the current value. Filtration is turned off by default.
|
|
/// The supported filter values are startswith, endswith and contains.
|
|
///
|
|
/// fixedGroupTemplate — String|Function
|
|
/// The template used to render the fixed header group. By default the widget displays only the value of the current group.
|
|
///
|
|
/// groupTemplate — String|Function
|
|
/// The template used to render the groups. By default the widget displays only the value of the group.
|
|
///
|
|
/// 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.
|
|
///
|
|
/// minLength — Number (default: 1)
|
|
/// The minimum number of characters the user must type before a filter is performed. Set to higher value than 1 if the search could match a lot of items.
|
|
///
|
|
/// popup — Object
|
|
/// The options that will be used for the popup initialization. For more details about the available options
|
|
/// refer to Popup documentation.
|
|
///
|
|
/// optionLabel — String|Object (default: "")
|
|
/// Define the text of the default empty item. If the value is an object, then the widget will use it as a valid data item.
|
|
/// Note that the optionLabel will not be available if the widget is empty.
|
|
///
|
|
/// optionLabelTemplate — String|Function
|
|
/// The template used to render the option label.
|
|
///
|
|
/// 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)
|
|
/// 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.
|
|
///
|
|
/// virtual — Boolean (default: false)
|
|
/// Enables the virtualization feature of the widget.
|
|
///
|
|
/// virtual — Object (default: false)
|
|
/// Enables the virtualization feature of the widget.
|
|
///
|
|
/// </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. The available names match the list of tools, plus "undo" and "redo".</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,options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts HTML into the editable area. Cleans up MS Word formatting.
|
|
/// </summary>
|
|
/// <param name="html" type="String" >The HTML to be inserted.</param>
|
|
/// <param name="options" type="" >Options that configure how the content is processed when pasting.</param>
|
|
/// </signature>
|
|
},
|
|
selectedHtml: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Serializes the currently selected text to a XHTML string.
|
|
/// </summary>
|
|
/// <returns type="String">The selected 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>
|
|
},
|
|
saveAsPDF: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Initiates the PDF export and returns a promise. Also triggers the pdfExport event.
|
|
/// </summary>
|
|
/// <returns type="Promise">A promise that will be resolved when the export completes. The same promise is available in the pdfExport event arguments.</returns>
|
|
/// </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:
|
|
///
|
|
/// domain — String
|
|
/// Relaxes the same-origin policy when using the iframe-based editor.
|
|
/// This is done automatically for all cases except when the policy is relaxed by document.domain = document.domain.
|
|
/// In that case, this property must be used to allow the editor to function properly across browsers.
|
|
/// This property has been introduced in internal builds after 2014.1.319.
|
|
///
|
|
/// 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.
|
|
///
|
|
/// pdf — Object
|
|
/// Configures the Kendo UI Editor PDF export settings.
|
|
///
|
|
/// resizable — Boolean (default: false)
|
|
/// If enabled, the editor renders a resize handle to allow users to resize it.
|
|
///
|
|
/// resizable — Object (default: false)
|
|
/// If enabled, the editor renders a resize handle to allow users to resize it.
|
|
///
|
|
/// serialization — Object
|
|
/// Allows setting of serialization options.
|
|
///
|
|
/// stylesheets — Array
|
|
/// Allows custom stylesheets to be included within the editing area. This setting is applicable only when the Editor is initialized from a textarea
|
|
/// and a contenteditable iframe is generated.
|
|
///
|
|
/// 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.
|
|
///
|
|
/// fileBrowser — Object
|
|
/// Configuration for file 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, {
|
|
Gantt: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Gantt</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Gantt = (function() {
|
|
var original = kendo.ui.Gantt;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
clearSelection: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Clears the currently selected task or dependency.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
dataItem: function(row) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the data item to which the specified table row from the TreeList 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.GanttTask">the task 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>
|
|
},
|
|
refresh: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Renders all tasks and dependencies using the current data items.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
refreshDependencies: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Renders all dependencies using the current data items.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
removeDependency: function(dependency) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes the specified Gantt dependency.
|
|
/// </summary>
|
|
/// <param name="dependency" type="Object" >The dependency which should be removed. Also accepts a string which is the uid of the dependency which should be removed.</param>
|
|
/// </signature>
|
|
},
|
|
removeTask: function(task) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes the specified Gantt task.
|
|
/// </summary>
|
|
/// <param name="task" type="Object" >The task which should be removed. Also accepts a string which is the uid of the task which should be removed.</param>
|
|
/// </signature>
|
|
},
|
|
saveAsPDF: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Initiates the PDF export and returns a promise. Also triggers the pdfExport event.
|
|
/// </summary>
|
|
/// <returns type="Promise">A promise that will be resolved when the export completes. The same promise is available in the pdfExport event arguments.</returns>
|
|
/// </signature>
|
|
},
|
|
select: function(row) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the table row which is selected.
|
|
/// </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="jQuery">the selected table row.</returns>
|
|
/// </signature>
|
|
},
|
|
setDataSource: function(dataSource) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the tasks data source of the widget.
|
|
/// </summary>
|
|
/// <param name="dataSource" type="kendo.data.GanttDataSource" >The tasks data source to which the widget should be bound.</param>
|
|
/// </signature>
|
|
},
|
|
setDependenciesDataSource: function(dataSource) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the dependencies data source of the widget.
|
|
/// </summary>
|
|
/// <param name="dataSource" type="kendo.data.GanttDependencyDataSource" >The dependencies data source to which the widget should be bound.</param>
|
|
/// </signature>
|
|
},
|
|
view: function(type) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the current Gantt view.
|
|
/// </summary>
|
|
/// <param name="type" type="String" >The view type to select.</param>
|
|
/// <returns type="kendo.ui.GanttView">the current Gantt 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.kendoGantt = function() {
|
|
this.data("kendoGantt", new kendo.ui.Gantt());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoGantt: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Gantt widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Gantt">The kendo.ui.Gantt instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoGantt: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Gantt widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// assignments — Object
|
|
/// The configuration of the assignments of the gantt resources. An assignment is a one-to-one mapping between a gantt task and a gantt resource containing the number of units for which a resource is assigned to a task.
|
|
///
|
|
/// 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 Gantt 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 Gantt will create a column for every item of the array.
|
|
///
|
|
/// currentTimeMarker — Boolean
|
|
/// If set to false the "current time" marker of the Gantt would not be displayed.
|
|
///
|
|
/// currentTimeMarker — Object
|
|
/// If set to false the "current time" marker of the Gantt would not be displayed.
|
|
///
|
|
/// dataSource — Object|Array|kendo.data.GanttDataSource
|
|
/// The data source of the widget which contains the tasks. Can be a JavaScript object which represents a valid data source configuration, a JavaScript array or an existing kendo.data.GanttDataSource
|
|
/// instance.If the dataSource option is set to a JavaScript object or array the widget will initialize a new kendo.data.GanttDataSource instance using that value as data source configuration.If the dataSource option is an existing kendo.data.GanttDataSource instance the widget will use that instance and will not initialize a new one.
|
|
///
|
|
/// dependencies — Object|Array|kendo.data.GanttDependencyDataSource
|
|
/// The data source of the widget which contains the dependencies. Can be a JavaScript object which represents a valid data source configuration, a JavaScript array or an existing kendo.data.GanttDependencyDataSource
|
|
/// instance.If the dependencies option is set to a JavaScript object or array the widget will initialize a new kendo.data.GanttDependencyDataSource instance using that value as data source configuration.If the dependencies option is an existing kendo.data.GanttDependencyDataSource instance the widget will use that instance and will not initialize a new one.
|
|
///
|
|
/// editable — Boolean (default: true)
|
|
/// If set to false the user won't be able to create, modify or delete tasks and dependencies.
|
|
///
|
|
/// editable — Object (default: true)
|
|
/// If set to false the user won't be able to create, modify or delete tasks and dependencies.
|
|
///
|
|
/// navigatable — Boolean (default: false)
|
|
/// If set to true the user could navigate the widget using the keyboard. By default keyboard navigation is disabled.
|
|
///
|
|
/// workDayStart — Date
|
|
/// Sets the start of the work day.
|
|
///
|
|
/// workDayEnd — Date
|
|
/// Sets the end of the work day.
|
|
///
|
|
/// workWeekStart — Number (default: 1)
|
|
/// The start of working week (index based).
|
|
///
|
|
/// workWeekEnd — Number (default: 5)
|
|
/// The end of working week (index based).
|
|
///
|
|
/// hourSpan — Number (default: 1)
|
|
/// The span of an hour slot.
|
|
///
|
|
/// snap — Boolean (default: true)
|
|
/// If set to true the Gantt will snap tasks to the nearest slot during dragging (resizing or moving). Set it to false to allow free moving and resizing of tasks.
|
|
///
|
|
/// height — Number|String (default: 600)
|
|
/// The height of the widget. Numeric values are treated as pixels.
|
|
///
|
|
/// listWidth — String|Number (default: "30%")
|
|
/// The width of the task list. Numeric values are treated as pixels.
|
|
///
|
|
/// messages — Object
|
|
/// The configuration of the Gantt messages. Use this option to customize or localize the Gantt messages.
|
|
///
|
|
/// pdf — Object
|
|
/// Configures the Kendo UI Gantt PDF export settings.
|
|
///
|
|
/// resizable — Boolean (default: false)
|
|
/// If set to true allows users to resize columns by dragging their header borders. By default resizing is disabled.
|
|
///
|
|
/// selectable — Boolean (default: true)
|
|
/// If set to false the user won't be able to select tasks in the Gantt. By default selection is enabled and triggers the change event.
|
|
///
|
|
/// showWorkDays — Boolean (default: true)
|
|
/// If set to false, Gantt views will show all days of the week. By default the views display only business days.
|
|
///
|
|
/// showWorkHours — Boolean (default: true)
|
|
/// If set to false, the day view will show all hours of the day. By default the view displays only business hours.
|
|
///
|
|
/// taskTemplate — String|Function
|
|
/// The template used to render the gantt tasks.The fields which can be used in the template are the task fields
|
|
///
|
|
/// toolbar — String|Function
|
|
/// If a String value is assigned to the toolbar configuration option, it will be treated as a single string template for the whole Gantt Toolbar,
|
|
/// and the string value will be passed as an argument to a kendo.template() function.If a Function value is assigned (it may be a kendo.template() function call or a generic function reference), then the return value of the function will be used to render the Gantt Toolbar contents.If an Array value is assigned, it will be treated as the list of commands displayed in the Gantt Toolbar. Commands can be custom or built-in ("append", "pdf").The "append" command adds a new task to the gantt.The "pdf" command exports the gantt in PDF format.
|
|
///
|
|
/// toolbar — Array
|
|
/// If a String value is assigned to the toolbar configuration option, it will be treated as a single string template for the whole Gantt Toolbar,
|
|
/// and the string value will be passed as an argument to a kendo.template() function.If a Function value is assigned (it may be a kendo.template() function call or a generic function reference), then the return value of the function will be used to render the Gantt Toolbar contents.If an Array value is assigned, it will be treated as the list of commands displayed in the Gantt Toolbar. Commands can be custom or built-in ("append", "pdf").The "append" command adds a new task to the gantt.The "pdf" command exports the gantt in PDF format.
|
|
///
|
|
/// tooltip — Object
|
|
/// The task tooltip configuration options.
|
|
///
|
|
/// views — Array
|
|
/// The views displayed by the Gantt 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 Gantt widget displays "day", "week", and "month" views.
|
|
///
|
|
/// resources — Object
|
|
/// The configuration of the gantt resource(s). A gantt resource is optional metadata that can be associated
|
|
/// with a gantt task.
|
|
///
|
|
/// rowHeight — Number|String
|
|
/// The height of the table rows. Numeric values are treated as pixels.
|
|
///
|
|
/// </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>
|
|
},
|
|
autoFitColumn: function(column) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Applies the minimum possible width for the specified column, so that all text fits without wrapping.
|
|
/// </summary>
|
|
/// <param name="column" type="Object" >The index of the column, or the field to which the columns is bound, or the column object obtained from the columns collection.When using multicolumn headers, using an index is not allowed. In such scenarios, please use a field name or a column object as a method argument.</param>
|
|
/// </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(isCancel) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Stops editing the table cell which is in edit mode. Requires "incell" edit mode.
|
|
/// </summary>
|
|
/// <param name="isCancel" type="Boolean" >A flag specifying whether to fire the cancel event. By default the event is not fired.</param>
|
|
/// </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. The data item is a Kendo UI Model instance.
|
|
/// </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. More information about the ObservableObject type...</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 the 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>
|
|
},
|
|
getOptions: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Retrieves the options that are currently enabled or disabled on the Grid, also gives the current state of the dataSource.
|
|
/// Use this method if you want to save the state of the Grid into a variable.
|
|
/// </summary>
|
|
/// <returns type="Object">The configuration options of the widget.</returns>
|
|
/// </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, or the column object obtained from the columns collection.When using multicolumn headers, using an index will hide a top-level column together will all its "child columns". In such scenarios, using field names or column objects may be more appropriate.</param>
|
|
/// </signature>
|
|
},
|
|
lockColumn: function(column) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Locks (freezes) a column, allowing users to see it at all times when scrolling.
|
|
/// </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>
|
|
},
|
|
saveAsExcel: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Initiates the Excel export. Also fires the excelExport event.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
saveAsPDF: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Initiates the PDF export and returns a promise. Also triggers the pdfExport event.
|
|
/// </summary>
|
|
/// <returns type="Promise">A promise that will be resolved when the export completes. The same promise is available in the pdfExport event arguments.</returns>
|
|
/// </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>
|
|
},
|
|
setOptions: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the options of the Grid. Use this method if you want to enable/disable a particular feature/option or to load
|
|
/// the complete state obtained previously with the getOptions method.When setOptions is called, the Grid widget will be destroyed and recreated.
|
|
/// </summary>
|
|
/// <param name="options" type="Object" >The configuration options to be set.</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, or the column object obtained from the columns collection.When using multicolumn headers, using an index will hide a top-level column together will all its "child columns". In such scenarios, using field names or column objects may be more appropriate.</param>
|
|
/// </signature>
|
|
},
|
|
unlockColumn: function(column) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unlocks (unfreezes) a 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:
|
|
///
|
|
/// allowCopy — Boolean (default: false)
|
|
/// If set to true and selection of the Grid is enabled the user could copy the selection into the clipboard and paste it into Excel or other similar programs that understand TSV/CSV formats. By default allowCopy is disabled and the default format is TSV.
|
|
/// Can be set to a JavaScript object which represents the allowCopy configuration.
|
|
///
|
|
/// allowCopy — Object (default: false)
|
|
/// If set to true and selection of the Grid is enabled the user could copy the selection into the clipboard and paste it into Excel or other similar programs that understand TSV/CSV formats. By default allowCopy is disabled and the default format is TSV.
|
|
/// Can be set to a JavaScript object which represents the allowCopy configuration.
|
|
///
|
|
/// 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 (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.
|
|
///
|
|
/// dataSource — Object|Array|kendo.data.DataSource
|
|
/// 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.
|
|
/// Check Detail Template for a live demo.
|
|
///
|
|
/// editable — Boolean (default: false)
|
|
/// If set to true the user would be able to edit the data to which the grid is bound. 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 (default: false)
|
|
/// If set to true the user would be able to edit the data to which the grid is bound. 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.
|
|
///
|
|
/// excel — Object
|
|
/// Configures the Kendo UI Grid Excel export settings.
|
|
///
|
|
/// 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 (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.
|
|
///
|
|
/// 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 (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.
|
|
///
|
|
/// height — Number|String
|
|
/// The height of the grid. Numeric values are treated as pixels.
|
|
///
|
|
/// messages — Object
|
|
/// Defines the text of the command buttons that are shown within the Grid. Used primarily for localization.
|
|
///
|
|
/// 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.
|
|
///
|
|
/// navigatable — Boolean (default: false)
|
|
/// If set to true the use could navigate the widget using the keyboard navigation. By default keyboard navigation is disabled.
|
|
///
|
|
/// noRecords — Boolean (default: false)
|
|
/// If set to true and current view contains no records, message similar to "No records available" will be displayed. By default this option is disabled.
|
|
///
|
|
/// noRecords — Object (default: false)
|
|
/// If set to true and current view contains no records, message similar to "No records available" will be displayed. By default this option 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 (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.
|
|
///
|
|
/// pdf — Object
|
|
/// Configures the Kendo UI Grid PDF export settings.
|
|
///
|
|
/// reorderable — Boolean (default: false)
|
|
/// If set to true the user could reorder the columns by dragging their header cells. By default reordering is disabled.
|
|
/// Multi-level headers allow reordering only in same level.
|
|
///
|
|
/// resizable — Boolean (default: false)
|
|
/// If set to true, users can resize columns by dragging the edges (resize handles) of their header cells. As of Kendo UI Q1 2015, users can also auto-fit a column by double-clicking
|
|
/// its resize handle. In this case the column will assume the smallest possible width, which allows the column content to fit without wrapping.By default, column 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 (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.
|
|
///
|
|
/// 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 (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.
|
|
///
|
|
/// toolbar — String|Function
|
|
/// If a String value is assigned to the toolbar configuration option, it will be treated as a single string template for the whole grid Toolbar,
|
|
/// and the string value will be passed as an argument to a kendo.template() function.If a Function value is assigned (it may be a kendo.template() function call or a generic function reference), then the return value of the function will be used to render the Grid Toolbar contents.If an Array value is assigned, it will be treated as the list of commands displayed in the grid's Toolbar. Commands can be custom or built-in ("cancel", "create", "save", "excel", "pdf").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.The "excel" command exports the grid data in MS Excel format.The "pdf" command exports the grid data in PDF format.
|
|
///
|
|
/// toolbar — Array
|
|
/// If a String value is assigned to the toolbar configuration option, it will be treated as a single string template for the whole grid Toolbar,
|
|
/// and the string value will be passed as an argument to a kendo.template() function.If a Function value is assigned (it may be a kendo.template() function call or a generic function reference), then the return value of the function will be used to render the Grid Toolbar contents.If an Array value is assigned, it will be treated as the list of commands displayed in the grid's Toolbar. Commands can be custom or built-in ("cancel", "create", "save", "excel", "pdf").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.The "excel" command exports the grid data in MS Excel format.The "pdf" command exports the grid data in PDF format.
|
|
///
|
|
/// </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>
|
|
},
|
|
dataItem: function(row) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the specified data item.
|
|
/// </summary>
|
|
/// <param name="row" type="Object" >A string, DOM element or jQuery object which represents the listview item. A string is treated as a jQuery selector.</param>
|
|
/// <returns type="kendo.data.ObservableObject">the data item to which the specified listview item is bound. More information about the ObservableObject type...</returns>
|
|
/// </signature>
|
|
},
|
|
dataItems: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the array that is bound to the widget
|
|
/// </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|kendo.data.DataSource
|
|
/// 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, {
|
|
MaskedTextBox: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.MaskedTextBox</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.MaskedTextBox = (function() {
|
|
var original = kendo.ui.MaskedTextBox;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
destroy: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Prepares the MaskedTextBox for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks.
|
|
/// </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>
|
|
},
|
|
raw: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the unmasked value of the MaskedTextBox.
|
|
/// </summary>
|
|
/// <returns type="String">The raw value of the widget.</returns>
|
|
/// </signature>
|
|
},
|
|
value: function(value) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the value of the MaskedTextBox.
|
|
/// </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.kendoMaskedTextBox = function() {
|
|
this.data("kendoMaskedTextBox", new kendo.ui.MaskedTextBox());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoMaskedTextBox: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.MaskedTextBox widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.MaskedTextBox">The kendo.ui.MaskedTextBox instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoMaskedTextBox: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.MaskedTextBox widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// clearPromptChar — Boolean (default: false)
|
|
/// Specifies whether the widget will replace the prompt characters with spaces on blur. Prompt chars will be shown again on focus (available since Q2 2014 SP1).
|
|
///
|
|
/// culture — String (default: "en-US")
|
|
/// Specifies the culture info used by the widget.
|
|
///
|
|
/// mask — String (default: "")
|
|
/// Specifies the input mask. The following mask rules are supported:
|
|
///
|
|
/// promptChar — String (default: "_")
|
|
/// Specifies the character used to represent the absence of user input in the widget
|
|
///
|
|
/// rules — Object
|
|
/// Defines an object of custom mask rules.
|
|
///
|
|
/// unmaskOnPost — Boolean (default: false)
|
|
/// Specifies whether the widget will unmask the input value on form post (available since Q1 2015).
|
|
///
|
|
/// value — String (default: "")
|
|
/// Specifies the value of the MaskedTextBox widget.
|
|
///
|
|
/// </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="Object" >Item to be appended, specified as a JSON object. An array of objects can also be passed.</param>
|
|
/// <param name="referenceItem" type="Object" >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="Object" >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="Object" >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="Object" >Target item, specified as a JSON object. Can also handle an array of such objects.</param>
|
|
/// <param name="referenceItem" type="Object" >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="Object" >Target item, specified as a JSON object. Can also handle an array of such objects.</param>
|
|
/// <param name="referenceItem" type="Object" >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="Object" >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="Object" >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).
|
|
///
|
|
/// dataSource — Object|Array
|
|
/// The data source of the widget which is used to render its items. Can be a JSON object/Array that contains an item or an Array of items to be rendered.
|
|
/// Refer to the example below for a list of the supported properties.
|
|
///
|
|
/// 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 MultiSelect 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.
|
|
/// </summary>
|
|
/// <param name="value" type="Object" >The value to set. A String value or an Array of strings is accepted. To clear the value, pass an empty array.</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|kendo.data.DataSource
|
|
/// 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: "startswith")
|
|
/// 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.
|
|
///
|
|
/// fixedGroupTemplate — String|Function
|
|
/// The template used to render the fixed header group. By default the widget displays only the value of the current group.
|
|
///
|
|
/// groupTemplate — String|Function
|
|
/// The template used to render the groups. By default the widget displays only the value of the group.
|
|
///
|
|
/// 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: 0)
|
|
/// The minimum number of characters the user must type before a search is performed. Set to a higher value if the search could match a lot of items.
|
|
/// A zero value means that a request will be made as soon as the user focuses the widget.
|
|
///
|
|
/// 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.
|
|
///
|
|
/// popup — Object
|
|
/// The options that will be used for the popup initialization. For more details about the available options
|
|
/// refer to Popup documentation.
|
|
///
|
|
/// 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.
|
|
///
|
|
/// tagMode — String (default: "multiple")
|
|
/// The mode used to render the selected tags. The available modes are:
|
|
/// - multiple - renders a tag for every selected value
|
|
/// - single - renders only one tag that shows the number of the selected values
|
|
///
|
|
/// value — Array (default: [])
|
|
/// Define the value of the widget
|
|
///
|
|
/// valuePrimitive — Boolean (default: false)
|
|
/// Specifies the value binding behavior for the widget. 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.
|
|
///
|
|
/// virtual — Boolean (default: false)
|
|
/// Enables the virtualization feature of the widget.
|
|
///
|
|
/// virtual — Object (default: false)
|
|
/// Enables the virtualization feature of the widget.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Notification: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Notification</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Notification = (function() {
|
|
var original = kendo.ui.Notification;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
error: function(data) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// This is a shorthand method for show(data, "error")
|
|
/// </summary>
|
|
/// <param name="data" type="Object" >Required. The string content for the notification; or the object with the values for the variables inside the notification template; or the function, which returns the required string or an object.</param>
|
|
/// </signature>
|
|
},
|
|
getNotifications: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a jQuery collection of all visible notifications, displayed by the given widget instance. Each item in the collection is a div.k-notification element.This method is useful for quick removal of all visible messages before showing new ones. After obtaining all visible messages, remove them from the DOM
|
|
/// instead of hiding them, unless animations are disabled. This is because animations are asynchronous and the new messages
|
|
/// will be shown on the wrong places before the old ones have been hidden. Another thing to keep in mind is that when using
|
|
/// popup notification messages, you should remove the parent
|
|
/// of each member of the collection, returned by the getNotifications() method. In this case the parent will be a div.k-animation-container element.
|
|
/// </summary>
|
|
/// <returns type="jQuery">A collection of all visible notifications.</returns>
|
|
/// </signature>
|
|
},
|
|
hide: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Hides all notifications from the given widget instance.If you intend to use this method to dispose of all visible messages before showing new ones,
|
|
/// then use the getNotifications() method instead, unless animations are disabled.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
info: function(data) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// This is a shorthand method for show(data, "info")
|
|
/// </summary>
|
|
/// <param name="data" type="Object" >Required. The string content for the notification; or the object with the values for the variables inside the notification template; or the function, which returns the required string or an object.Note that the widget does not perform any automatic sanitization of the passed content and script tags will be evaluated. In order to encode script tags as HTML entities, use #: # expressions in the Kendo UI templates.</param>
|
|
/// </signature>
|
|
},
|
|
show: function(data,type) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Displays a notification.
|
|
/// </summary>
|
|
/// <param name="data" type="Object" >Required. The string content for the notification; or the object with the values for the variables inside the notification template; or the function, which returns the required string or an object.</param>
|
|
/// <param name="type" type="String" >The notification type. Built-in types include "info", "success", "warning" and "error". Custom types should match the types from the template configuration. If this argument is not supplied, then "info" is assumed.</param>
|
|
/// </signature>
|
|
},
|
|
success: function(data) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// This is a shorthand method for show(data, "success")
|
|
/// </summary>
|
|
/// <param name="data" type="Object" >Required. The string content for the notification; or the object with the values for the variables inside the notification template; or the function, which returns the required string or an object.</param>
|
|
/// </signature>
|
|
},
|
|
warning: function(data) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// This is a shorthand method for show(data, "warning")
|
|
/// </summary>
|
|
/// <param name="data" type="Object" >Required. The string content for the notification; or the object with the values for the variables inside the notification template; or the function, which returns the required string or an object.</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.kendoNotification = function() {
|
|
this.data("kendoNotification", new kendo.ui.Notification());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoNotification: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Notification widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Notification">The kendo.ui.Notification instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoNotification: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Notification widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// allowHideAfter — Number (default: 0)
|
|
/// Indicates the period in milliseconds after which a notification can be dismissed (hidden) by the user.
|
|
///
|
|
/// animation — Object|Boolean
|
|
/// Defines custom show and hide animations via an Kendo UI Animation object. Setting the value to false disables animations.
|
|
///
|
|
/// appendTo — String|jQuery (default: null)
|
|
/// Defines the element to which the notifications will be appended or prepended (depending on the stacking direction).
|
|
///
|
|
/// autoHideAfter — Number (default: 5000)
|
|
/// Indicates the period in milliseconds after which a notification disappears automatically. Setting a zero value disables this behavior.
|
|
///
|
|
/// button — Boolean (default: false)
|
|
/// Determines whether the notifications will include a hide button. This setting works with the built-in templates only.
|
|
///
|
|
/// height — Number|String (default: null)
|
|
/// Defines the notifications' height. Numbers are treated as pixels.
|
|
///
|
|
/// hideOnClick — Boolean (default: true)
|
|
/// Determines whether notifications can be hidden by clicking anywhere on their content.
|
|
///
|
|
/// position — Object
|
|
/// This setting applies to popup notifications only, i.e. in cases when appendTo is not set.
|
|
/// It determines the position of the first notification on the screen, as well as whether the notifications will move together with the page content during scrolling.
|
|
/// top takes precedence over bottom and left takes precedence over right.
|
|
///
|
|
/// stacking — String (default: "default")
|
|
/// Determines the direction in which multiple notification will stack (arrange) with regard to the first one. Possible values are "up", "right", "down", "left" and "default".
|
|
/// The "default" setting takes into consideration the applied position settings and is evaluated to "up" or "down".
|
|
///
|
|
/// templates — Array (default: [])
|
|
/// Describes the HTML markup of the different notification types as Kendo UI template strings. The built-in types are "info", "success", "warning" and "error".This documentation section assumes that you are familiar with Kendo UI templates.
|
|
///
|
|
/// width — Number|String (default: null)
|
|
/// Defines the notifications' width. Numbers are treated as pixels.
|
|
///
|
|
/// </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>
|
|
/// <returns type="Number">The number of pages.</returns>
|
|
/// </signature>
|
|
},
|
|
pageSize: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the page size - maximum number of items allowed on one page.
|
|
/// </summary>
|
|
/// <returns type="Number">The maximum number of items allowed on one page.</returns>
|
|
/// </signature>
|
|
},
|
|
page: function(page) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets or gets the current page.
|
|
/// </summary>
|
|
/// <param name="page" type="Number" >The new page number.</param>
|
|
/// <returns type="Number">The current page number.</returns>
|
|
/// </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|kendo.data.DataSource
|
|
/// 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)
|
|
/// If set to true the pager will display a drop-down which allows the user to pick a page size.
|
|
/// By default the page size drop-down is not displayed.Can be set to an array of predefined page sizes to override the default list.
|
|
/// A special all value is supported. It sets the page size to the total number of records.If a pageSize setting is provided for the data source then this value will be selected initially.
|
|
///
|
|
/// 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="Object" >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="Object" >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>
|
|
},
|
|
clearSelection: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Clears the currently selected PanelBar items.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
collapse: function(element,useAnimation) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Collapses the specified item(s) of a PanelBar.
|
|
/// </summary>
|
|
/// <param name="element" type="Object" >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="Object" >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="Object" >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="Object" >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="Object" >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="Object" >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="Object" >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>
|
|
/// Gets or sets the 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>
|
|
/// <returns type="jQuery">the selected item if called without arguments. kendo.ui.PanelBar 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.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.
|
|
///
|
|
/// contentUrls — Array
|
|
/// Sets an array with the URLs from which the PanelBar items content to be loaded from. If only specific items should be loaded via Ajax, then you should set the URLs to the corresponding positions in the array and set the other elements to null.
|
|
///
|
|
/// dataSource — Object|Array
|
|
/// The data source of the widget which is used to render its items. Can be a JSON object/Array that contains an item or an Array of items to be rendered.
|
|
/// Refer to the example below for a list of the supported properties.
|
|
///
|
|
/// 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, {
|
|
PivotConfigurator: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.PivotConfigurator</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.PivotConfigurator = (function() {
|
|
var original = kendo.ui.PivotConfigurator;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
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>
|
|
},
|
|
refresh: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Refresh widget content
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
setDataSource: function(dataSource) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the data source of the widget.
|
|
/// </summary>
|
|
/// <param name="dataSource" type="kendo.data.PivotDataSource" >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.kendoPivotConfigurator = function() {
|
|
this.data("kendoPivotConfigurator", new kendo.ui.PivotConfigurator());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoPivotConfigurator: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.PivotConfigurator widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.PivotConfigurator">The kendo.ui.PivotConfigurator instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoPivotConfigurator: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.PivotConfigurator widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// dataSource — Object|kendo.data.PivotDataSource
|
|
/// The data source of the widget which is used to display values. Can be a JavaScript object which represents a valid data source configuration or an existing kendo.data.PivotDataSource
|
|
/// instance.If the dataSource option is set to a JavaScript object the widget will initialize a new kendo.data.PivotDataSource instance using that value as data source configuration.If the dataSource option is an existing kendo.data.PivotDataSource instance the widget will use that instance and will not initialize a new one.
|
|
///
|
|
/// filterable — Boolean (default: false)
|
|
/// If set to true the user will be able to filter by using the field menu.
|
|
///
|
|
/// sortable — Boolean (default: false)
|
|
/// If set to true the user could sort the widget by clicking the dimension fields. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.
|
|
///
|
|
/// sortable — Object (default: false)
|
|
/// If set to true the user could sort the widget by clicking the dimension fields. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.
|
|
///
|
|
/// height — Number|String
|
|
/// The height of the PivotConfigurator. Numeric values are treated as pixels.
|
|
///
|
|
/// messages — Object
|
|
/// The text messages displayed in the fields sections.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
PivotGrid: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.PivotGrid</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.PivotGrid = (function() {
|
|
var original = kendo.ui.PivotGrid;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
cellInfo: function(columnIndex,rowIndex) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns an information about a data cell at a specific column and row index.
|
|
/// </summary>
|
|
/// <param name="columnIndex" type="Number" >The index of the column cell that crosses the data cell.</param>
|
|
/// <param name="rowIndex" type="Number" >The index of the row cell that crosses the data cell.</param>
|
|
/// <returns type="Object">the data cell information.The fields of the result object:</returns>
|
|
/// </signature>
|
|
},
|
|
cellInfoByElement: function(cell) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns an information about for a specific data cell element
|
|
/// </summary>
|
|
/// <param name="cell" type="Object" >A string, DOM element or jQuery object which represents the data table cell. A string is treated as a jQuery selector.</param>
|
|
/// <returns type="Object">the data cell information.The fields of the result 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>
|
|
},
|
|
refresh: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Renders all content using the current data items.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
setDataSource: function(dataSource) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the data source of the widget.
|
|
/// </summary>
|
|
/// <param name="dataSource" type="kendo.data.PivotDataSource" >The data source to which the widget should be bound.</param>
|
|
/// </signature>
|
|
},
|
|
saveAsExcel: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Initiates the Excel export. Also fires the excelExport event.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
saveAsPDF: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Initiates the PDF export and returns a promise. Also triggers the pdfExport event.
|
|
/// </summary>
|
|
/// <returns type="Promise">A promise that will be resolved when the export completes. The same promise is available in the pdfExport event 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.kendoPivotGrid = function() {
|
|
this.data("kendoPivotGrid", new kendo.ui.PivotGrid());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoPivotGrid: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.PivotGrid widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.PivotGrid">The kendo.ui.PivotGrid instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoPivotGrid: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.PivotGrid widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// dataSource — Object|kendo.data.PivotDataSource
|
|
/// The data source of the widget which is used to display values. Can be a JavaScript object which represents a valid data source configuration or an existing kendo.data.PivotDataSource
|
|
/// instance.If the dataSource option is set to a JavaScript object the widget will initialize a new kendo.data.PivotDataSource instance using that value as data source configuration.If the dataSource option is an existing kendo.data.PivotDataSource instance the widget will use that instance and will not initialize a new one.
|
|
///
|
|
/// 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.
|
|
///
|
|
/// reorderable — Boolean (default: true)
|
|
/// If set to false the user will not be able to add/close/reorder current fields for columns/rows/measures.
|
|
///
|
|
/// excel — Object
|
|
/// Configures the Kendo UI PivotGrid Excel export settings.
|
|
///
|
|
/// pdf — Object
|
|
/// Configures the Kendo UI PivotGrid PDF export settings.
|
|
///
|
|
/// filterable — Boolean (default: false)
|
|
/// If set to true the user will be able to filter by using the field menu.
|
|
///
|
|
/// sortable — Boolean (default: false)
|
|
/// If set to true the user could sort the pivotgrid by clicking the dimension fields. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.
|
|
///
|
|
/// sortable — Object (default: false)
|
|
/// If set to true the user could sort the pivotgrid by clicking the dimension fields. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.
|
|
///
|
|
/// columnWidth — Number
|
|
/// The width of the table columns. Value is treated as pixels.
|
|
///
|
|
/// height — Number|String
|
|
/// The height of the PivotGrid. Numeric values are treated as pixels.
|
|
///
|
|
/// columnHeaderTemplate — String|Function
|
|
/// The template which renders the content of the column header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are:For information about the tuple structure check this link.
|
|
///
|
|
/// dataCellTemplate — String|Function
|
|
/// The template which renders the content of the data cell. By default renders the formatted value (fmtValue) of the data item.The fields which can be used in the template are:For information about the tuple structure check this link.
|
|
/// About the data item structure review this help topic.
|
|
///
|
|
/// kpiStatusTemplate — String|Function
|
|
/// The template which renders the content of the KPI Status value. By default renders "open", "hold" and "denied" status icons.The fields which can be used in the template are:For information about the tuple structure check this link.
|
|
/// About the data item structure review this help topic.
|
|
///
|
|
/// kpiTrendTemplate — String|Function
|
|
/// The template which renders the content of the KPI Trend value. By default renders "increase", "decrease" and "equal" status icons.The fields which can be used in the template are:For information about the tuple structure check this link.
|
|
/// About the data item structure review this help topic.
|
|
///
|
|
/// rowHeaderTemplate — String|Function
|
|
/// The template which renders the content of the row header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are:For information about the tuple structure check this link.
|
|
///
|
|
/// messages — Object
|
|
/// The text messages displayed in the fields sections.
|
|
///
|
|
/// </summary>
|
|
/// <param name="options" type="Object">
|
|
/// The widget configuration options
|
|
/// </param>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
intellisense.annotate(kendo.ui, {
|
|
Popup: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Popup</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Popup = (function() {
|
|
var original = kendo.ui.Popup;
|
|
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.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
position: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Re-positions the popup element
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
setOptions: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Changes the initial Popup configuration.
|
|
/// </summary>
|
|
/// <param name="options" type="Object" >The new configuration options.</param>
|
|
/// </signature>
|
|
},
|
|
visible: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Checks whether the popup is visible
|
|
/// </summary>
|
|
/// <returns type="Boolean">True when the popup is visible</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.kendoPopup = function() {
|
|
this.data("kendoPopup", new kendo.ui.Popup());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoPopup: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Popup widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Popup">The kendo.ui.Popup instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoPopup: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Popup 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.
|
|
///
|
|
/// anchor — String|jQuery
|
|
/// Specifies the element that will be used as an anchor. The widget will open next to that element.
|
|
///
|
|
/// appendTo — String|jQuery (default: document.body)
|
|
/// Which element the popup will be appended to.
|
|
///
|
|
/// origin — String (default: "bottom left")
|
|
/// Specifies how to position the popup element based on achor point. The value is
|
|
/// space separated "y" plus "x" position.The available "y" positions are:
|
|
/// - "bottom"
|
|
/// - "center"
|
|
/// - "top"The available "x" positions are:
|
|
/// - "left"
|
|
/// - "center"
|
|
/// - "right"
|
|
///
|
|
/// position — String (default: "top left")
|
|
/// Specifies which point of the popup element to attach to the anchor's origin point. The value is
|
|
/// space separated "y" plus "x" position.The available "y" positions are:
|
|
/// - "bottom"
|
|
/// - "center"
|
|
/// - "top"The available "x" positions are:
|
|
/// - "left"
|
|
/// - "center"
|
|
/// - "right"
|
|
///
|
|
/// </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. It should be a number or false. Setting the value to false will set the state of the ProgressBar to indeterminate.
|
|
///
|
|
/// </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(selectionStart,selectionEnd) {
|
|
/// <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="selectionStart" type="Number" >The selection start value of the RangeSlider.</param>
|
|
/// <param name="selectionEnd" type="Number" >The selection start value of the RangeSlider.</param>
|
|
/// <returns type="Array">The value of the RangeSlider.</returns>
|
|
/// </signature>
|
|
},
|
|
resize: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Adjusts the RangeSlider layout to match the size of the container.
|
|
/// </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.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, {
|
|
ResponsivePanel: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.ResponsivePanel</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.ResponsivePanel = (function() {
|
|
var original = kendo.ui.ResponsivePanel;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
close: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Closes the responsive panel.
|
|
/// </summary>
|
|
/// </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 the destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
open: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Opens the responsive panel.
|
|
/// </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.kendoResponsivePanel = function() {
|
|
this.data("kendoResponsivePanel", new kendo.ui.ResponsivePanel());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoResponsivePanel: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.ResponsivePanel widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.ResponsivePanel">The kendo.ui.ResponsivePanel instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoResponsivePanel: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.ResponsivePanel widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// autoClose — Boolean (default: true)
|
|
/// If set to false the widget will not close when the page content is touched, after it was opened on a mobile device. You will need to call the close method when the panel needs to close.
|
|
///
|
|
/// breakpoint — Number (default: 640)
|
|
/// Specifies the page width at which the widget will be hidden and its toggle button will become visible.
|
|
///
|
|
/// orientation — String (default: "left")
|
|
/// Specifies the direction from which the hidden element will open up, once the toggle button has been activated. Valid values are "left", "right", and "top".
|
|
///
|
|
/// toggleButton — String (default: ".k-rpanel-toggle")
|
|
/// Specifies the selector for the toggle button that will show and hide the responsive panel.
|
|
///
|
|
/// </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>
|
|
},
|
|
data: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets currently expanded scheduler events.
|
|
/// </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>
|
|
},
|
|
occurrenceByUid: function(uid) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets the event occurrence with the specified uid.
|
|
/// </summary>
|
|
/// <param name="uid" type="String" >The uid of the occurrence to look for.</param>
|
|
/// <returns type="kendo.data.SchedulerEvent">the occurrence instance. Returns undefined if an occurrence with the specified uid is not found.</returns>
|
|
/// </signature>
|
|
},
|
|
occurrencesInRange: function(start,end) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets a list of event occurrences in specified time range.
|
|
/// </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">a list of scheduler events filtered by the specified start/end period.</returns>
|
|
/// </signature>
|
|
},
|
|
refresh: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Refreshes the Scheduler rendering using the current data items.
|
|
/// </summary>
|
|
/// </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>
|
|
},
|
|
resourcesBySlot: function(slot) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Get the relevant resources for a given slot.
|
|
/// </summary>
|
|
/// <param name="slot" type="Object" ></param>
|
|
/// <returns type="Object">The relevant resources.</returns>
|
|
/// </signature>
|
|
},
|
|
saveAsPDF: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Initiates the PDF export and returns a promise. Also triggers the pdfExport event.
|
|
/// </summary>
|
|
/// <returns type="Promise">A promise that will be resolved when the export completes. The same promise is available in the pdfExport event arguments.</returns>
|
|
/// </signature>
|
|
},
|
|
saveEvent: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Saves the scheduler event which is open in the edit form and closes it.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
select: function(events,options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the events (or slots) which are selected.
|
|
/// </summary>
|
|
/// <param name="events" type="Array" >The Uids of events which should be selected. List of the available events can be get using the data method.</param>
|
|
/// <param name="options" type="" ></param>
|
|
/// </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>
|
|
},
|
|
viewName: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// The name of the current view. Can be used for refreshing the current view data.
|
|
/// </summary>
|
|
/// <returns type="String">the name of 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.
|
|
///
|
|
/// currentTimeMarker — Boolean
|
|
/// If set to false the "current time" marker of the scheduler would not be displayed.
|
|
///
|
|
/// currentTimeMarker — Object
|
|
/// If set to false the "current time" marker of the scheduler would not be displayed.
|
|
///
|
|
/// dataSource — Object|Array|kendo.data.SchedulerDataSource
|
|
/// 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 a custom date format - "ddd M/dd".
|
|
/// The "ddd" specifier represents the abbreviated name of the week day and will be localized using the current Kendo UI culture.
|
|
/// If the developer wants to control the day and month order, then one needs to define a custom template.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 (default: true)
|
|
/// 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.
|
|
///
|
|
/// pdf — Object
|
|
/// Configures the Kendo UI Scheduler PDF export settings.
|
|
///
|
|
/// 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 displayed 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.
|
|
///
|
|
/// toolbar — Array
|
|
/// List of commands that the scheduler will display in its toolbar as buttons. Currently supports only the "pdf" command.The "pdf" command exports the scheduler in PDF format.
|
|
///
|
|
/// 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.
|
|
///
|
|
/// groupHeaderTemplate — String|Function
|
|
/// The template used to render the group headers of scheduler day, week, workWeek and timeline views.The fields which can be used in the template are:
|
|
///
|
|
/// 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="Number" >_optional, default: _The value to be set for a Slider.</param>
|
|
/// <returns type="Number">The value of the Slider.</returns>
|
|
/// </signature>
|
|
},
|
|
resize: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Adjusts the Slider layout to match the size of the container.
|
|
/// </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.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: largeStep will also set a large tick for every large step.Must be a positive number, larger than smallStep.
|
|
///
|
|
/// 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. Must be a positive number, otherwise an Javascript exception will be thrown.The small step value determines the amount of Slider value change when the end user
|
|
///
|
|
/// 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, {
|
|
Sortable: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Sortable</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Sortable = (function() {
|
|
var original = kendo.ui.Sortable;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
indexOf: function(element) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the index of specified item. Filtered items are excluded from the collection.
|
|
/// </summary>
|
|
/// <param name="element" type="jQuery" >jQuery object which represents the sortable element.</param>
|
|
/// <returns type="Number">the index of specified item.</returns>
|
|
/// </signature>
|
|
},
|
|
items: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the sortable elements. Filtered items and the placeholder are excluded from the collection.
|
|
/// </summary>
|
|
/// <returns type="jQuery">the sortable items</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.kendoSortable = function() {
|
|
this.data("kendoSortable", new kendo.ui.Sortable());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoSortable: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Sortable widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Sortable">The kendo.ui.Sortable instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoSortable: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Sortable 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".
|
|
///
|
|
/// autoScroll — Boolean (default: false)
|
|
/// If set to true the widget will auto-scroll the container when the mouse/finger is close to the top/bottom of it.
|
|
///
|
|
/// container — String|jQuery (default: null)
|
|
/// Selector that determines the container to which boundaries the hint movement will be constrained.
|
|
///
|
|
/// connectWith — String (default: null)
|
|
/// Selector which determines if items from the current Sortable widget can be accepted from another Sortable container(s). The connectWith option describes one way relationship, if the developer wants a two way connection then the connectWith option should be set on both widgets.
|
|
///
|
|
/// cursor — String (default: "auto")
|
|
/// The cursor that will be shown while user drags sortable item.
|
|
///
|
|
/// 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.
|
|
///
|
|
/// disabled — String (default: null)
|
|
/// Selector that determines which items are disabled. Disabled items cannot be dragged but are valid sort targets.
|
|
///
|
|
/// filter — String (default: null)
|
|
/// Selector that determines which items are sortable. Filtered items cannot be dragged and are not valid sort targets.
|
|
///
|
|
/// handler — String (default: null)
|
|
/// Selector that determines which element will be used as a draggable handler. If a handler is defined, the user will be able to move the Sortable items only if the cursor/finger is positioned onto the handler element.
|
|
///
|
|
/// hint — Function|String|jQuery
|
|
/// Provides a way for customization of the sortable item hint. If a function is supplied, it receives one argument - the draggable element's jQuery object.
|
|
/// If hint function is not provided the widget will clone dragged item and use it as a hint.
|
|
///
|
|
/// 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 item will be activated after the user taps and holds the finger on the element for a short amount of time.
|
|
/// The item will also be activated by pressing, holding and lifting the finger without any movement. Dragging it afterwards will initiate the drag immediately.
|
|
///
|
|
/// ignore — String (default: null)
|
|
/// Selector that determines which elements inside the sorted item's container will be ignored. Useful if the sortable item contains input elements.
|
|
///
|
|
/// placeholder — Function|String|jQuery
|
|
/// Provides a way for customization of the sortable item placeholder. If a function is supplied, it receives one argument - the draggable element's jQuery object.
|
|
/// If placeholder function is not provided the widget will clone dragged item, remove its ID attribute, set its visibility to hidden and use it as a placeholder.
|
|
///
|
|
/// </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>
|
|
/// <returns type="jQuery">the pane element.</returns>
|
|
/// </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>
|
|
/// <returns type="jQuery">the pane element.</returns>
|
|
/// </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>
|
|
/// <returns type="jQuery">the pane element.</returns>
|
|
/// </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, {
|
|
Spreadsheet: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.Spreadsheet</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.Spreadsheet = (function() {
|
|
var original = kendo.ui.Spreadsheet;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
activeSheet: function(sheet) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Gets or sets the active sheet.
|
|
/// </summary>
|
|
/// <param name="sheet" type="kendo.spreadsheet.Sheet" >The sheet to set as active.</param>
|
|
/// <returns type="kendo.spreadsheet.Sheet">the active sheet.</returns>
|
|
/// </signature>
|
|
},
|
|
sheets: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns an array with the sheets in the workbook.
|
|
/// </summary>
|
|
/// <returns type="Array">the available sheets.</returns>
|
|
/// </signature>
|
|
},
|
|
saveAsExcel: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Initiates the Excel export. Also fires the excelExport event.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
sheetByName: function(name) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a sheet matching the specified name, if any.
|
|
/// </summary>
|
|
/// <param name="name" type="String" >The name of the sheet to locate.</param>
|
|
/// <returns type="kendo.spreadsheet.Sheet">the sheet that match the name.</returns>
|
|
/// </signature>
|
|
},
|
|
sheetIndex: function(sheet) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the index of the specified sheet.
|
|
/// </summary>
|
|
/// <param name="sheet" type="kendo.spreadsheet.Sheet" >The sheet to determine the index of.</param>
|
|
/// <returns type="Number">the sheet index.</returns>
|
|
/// </signature>
|
|
},
|
|
sheetByIndex: function(index) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Locates a sheet by its index in the workbook.
|
|
/// </summary>
|
|
/// <param name="index" type="Number" >The index of the sheet to locate.</param>
|
|
/// <returns type="kendo.spreadsheet.Sheet">the sheet that match the index.</returns>
|
|
/// </signature>
|
|
},
|
|
insertSheet: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Inserts a sheet with the specified options.
|
|
/// </summary>
|
|
/// <param name="options" type="" >The configuration options for the sheet.</param>
|
|
/// <returns type="kendo.spreadsheet.Sheet">the inserted sheet.</returns>
|
|
/// </signature>
|
|
},
|
|
moveSheetToIndex: function(sheet,index) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Moves the sheet to the specified index.
|
|
/// </summary>
|
|
/// <param name="sheet" type="kendo.spreadsheet.Sheet" >The sheet instance to move.</param>
|
|
/// <param name="index" type="Number" >The new zero-based index of the sheet.</param>
|
|
/// </signature>
|
|
},
|
|
removeSheet: function(sheet) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes the specified sheet.
|
|
/// </summary>
|
|
/// <param name="sheet" type="kendo.spreadsheet.Sheet" >The sheet instance to remove.</param>
|
|
/// </signature>
|
|
},
|
|
renameSheet: function(sheet,newSheetName) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Renames the specified sheet.
|
|
/// </summary>
|
|
/// <param name="sheet" type="kendo.spreadsheet.Sheet" >The sheet instance to rename.</param>
|
|
/// <param name="newSheetName" type="String" >The new name of the sheet.</param>
|
|
/// <returns type="kendo.spreadsheet.Sheet">the renamed sheet.</returns>
|
|
/// </signature>
|
|
},
|
|
toJSON: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Serializes the workbook in the format defined in the configuration.
|
|
/// </summary>
|
|
/// <returns type="Object">the serialized workbook.</returns>
|
|
/// </signature>
|
|
},
|
|
fromJSON: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Loads the workbook data from an object with the format defined in the configuration.
|
|
/// </summary>
|
|
/// <param name="options" type="Object" >The source data.</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.kendoSpreadsheet = function() {
|
|
this.data("kendoSpreadsheet", new kendo.ui.Spreadsheet());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoSpreadsheet: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.Spreadsheet widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.Spreadsheet">The kendo.ui.Spreadsheet instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoSpreadsheet: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.Spreadsheet widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// activeSheet — String
|
|
/// The name of the currently active sheet.Must match one of the (sheet names)[#configuration-sheets.name] exactly.
|
|
///
|
|
/// columnWidth — Number (default: 64)
|
|
/// The default column width in pixels.
|
|
///
|
|
/// columns — Number (default: 50)
|
|
/// The number of columns in the document.
|
|
///
|
|
/// headerHeight — Number (default: 20)
|
|
/// The height of the header row in pixels.
|
|
///
|
|
/// headerWidth — Number (default: 32)
|
|
/// The width of the header column in pixels.
|
|
///
|
|
/// excel — Object
|
|
/// Configures the Kendo UI Spreadsheet Excel export settings.
|
|
///
|
|
/// rowHeight — Number (default: 20)
|
|
/// The default row height in pixels.
|
|
///
|
|
/// rows — Number (default: 200)
|
|
/// The number of rows in the document.
|
|
///
|
|
/// sheets — Array
|
|
/// An array defining the document sheets and their content.
|
|
///
|
|
/// toolbar — Boolean (default: true)
|
|
/// A boolean value indicating if the toolbar should be displayed.
|
|
///
|
|
/// </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>
|
|
},
|
|
setDataSource: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Sets the data source of the widget.
|
|
/// </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.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 — Boolean
|
|
/// A collection of visual animations used when TabStrip tab are selected through
|
|
/// user interactions. Setting this option to false will disable all animations.
|
|
///
|
|
/// 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.
|
|
///
|
|
/// contentUrls — Array
|
|
/// Sets an array with the URLs from which the tabs content to be loaded from. If only specific tabs should be loaded via Ajax, then you should set the URLs to the corresponding positions in the array and set the other elements to null.
|
|
///
|
|
/// 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.
|
|
///
|
|
/// navigatable — Boolean (default: true)
|
|
/// Specifies whether the TabStrip should be keyboard navigatable.
|
|
///
|
|
/// scrollable — Boolean
|
|
/// If enabled, the TabStrip will display buttons that will scroll the tabs horizontally, when they cannot fit the TabStrip width. By default scrolling is enabled.The feature requires "top" or "bottom" tabPosition.Unless disabled, scrollable must be set to a JavaScript object, which represents the scrolling configuration.See Scrollable Tabs for more information.
|
|
///
|
|
/// scrollable — Object
|
|
/// If enabled, the TabStrip will display buttons that will scroll the tabs horizontally, when they cannot fit the TabStrip width. By default scrolling is enabled.The feature requires "top" or "bottom" tabPosition.Unless disabled, scrollable must be set to a JavaScript object, which represents the scrolling configuration.See Scrollable Tabs for more information.
|
|
///
|
|
/// tabPosition — String (default: "top")
|
|
/// Specifies the position of the widget tabs. Valid values are "top" (default), "left", "right" and "bottom".
|
|
/// A fade animation is highly recommended with any of the non-default tab position settings.
|
|
///
|
|
/// value — String (default: null)
|
|
/// Specifies the selectd tab. Should be corresponding to the dataTextField configuration and used when bound to a DataSource component.
|
|
///
|
|
/// </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>
|
|
},
|
|
setOptions: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Changes the initial TimePicker configuration. Will be included in Q3 2013 SP1. Currently available in Q3 2013 internal builds only.
|
|
/// </summary>
|
|
/// <param name="options" type="Object" >The new configuration options.</param>
|
|
/// </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, {
|
|
ToolBar: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.ToolBar</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.ToolBar = (function() {
|
|
var original = kendo.ui.ToolBar;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
add: function(command) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Adds new command to the ToolBar widget. Accepts object with valid command configuration options.
|
|
/// </summary>
|
|
/// <param name="command" type="Object" >An object with valid command configuration options.</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>
|
|
},
|
|
enable: function(command,enable) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Enables or disables the specified command. If the second parameter is omitted it will be treated as true and the command will be enabled.
|
|
/// </summary>
|
|
/// <param name="command" type="Object" >A string, DOM element or jQuery object which represents the command to be enabled or disabled. A string is treated as jQuery selector.</param>
|
|
/// <param name="enable" type="Boolean" >A boolean flag that determines whether the command should be enabled (true) or disabled (false). If omitted the command will be enabled.</param>
|
|
/// </signature>
|
|
},
|
|
getSelectedFromGroup: function(groupName) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the selected toggle button from the specified group.
|
|
/// </summary>
|
|
/// <param name="groupName" type="String" >The name of the group.</param>
|
|
/// </signature>
|
|
},
|
|
hide: function(command) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Hides a command from the ToolBar widget. The command is hidden from the ToolBar container and overflow popup (if resizable is enabled).
|
|
/// </summary>
|
|
/// <param name="command" type="Object" >A string, DOM element or jQuery object which represents the command to be hidden. A string is treated as jQuery selector.</param>
|
|
/// </signature>
|
|
},
|
|
remove: function(command) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Removes a command from the ToolBar widget. The command is removed from the ToolBar container and overflow popup (if resizable is enabled).
|
|
/// </summary>
|
|
/// <param name="command" type="Object" >A string, DOM element or jQuery object which represents the command to be removed. A string is treated as jQuery selector.</param>
|
|
/// </signature>
|
|
},
|
|
show: function(command) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Shows a hidden command in the ToolBar widget. The command is shown in the ToolBar container and overflow popup (if resizable is enabled).
|
|
/// </summary>
|
|
/// <param name="command" type="Object" >A string, DOM element or jQuery object which represents the command to be shown. A string is treated as jQuery selector.</param>
|
|
/// </signature>
|
|
},
|
|
toggle: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Change the state of a togglable button.
|
|
/// </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.kendoToolBar = function() {
|
|
this.data("kendoToolBar", new kendo.ui.ToolBar());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoToolBar: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.ToolBar widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.ToolBar">The kendo.ui.ToolBar instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoToolBar: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.ToolBar widget based the DOM elements that match the selector.
|
|
/// Accepts an object with the following configuration options:
|
|
///
|
|
/// resizable — Boolean (default: true)
|
|
/// If resizable is set to true the widget will detect changes in the viewport width and hides the overflowing controls in the command overflow popup.
|
|
///
|
|
/// items — Array
|
|
/// A JavaScript array that contains the ToolBar's commands configuration.
|
|
///
|
|
/// </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, {
|
|
TreeList: function() {
|
|
/// <signature>
|
|
/// <summary>Constructor of kendo.ui.TreeList</summary>
|
|
/// </signature>
|
|
}
|
|
});
|
|
|
|
kendo.ui.TreeList = (function() {
|
|
var original = kendo.ui.TreeList;
|
|
var wrapper = function() {
|
|
var instance = new original();
|
|
intellisense.annotate(instance, {
|
|
addRow: function(parentRow) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Adds an empty data item to the treelist. In "inline" editing mode a table row will be appended. A popup window will be displayed in "popup" editing mode.Fires the edit event.
|
|
/// </summary>
|
|
/// <param name="parentRow" type="Object" >A string, DOM element or jQuery object which represents the parent table row. A string is treated as a jQuery selector.</param>
|
|
/// </signature>
|
|
},
|
|
cancelRow: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Cancels editing for the table row which is in edit mode. Reverts any changes made.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
clearSelection: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Clears the currently selected table rows or cells (depending on the current selection mode).
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
collapse: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// This method collapse the row.
|
|
/// </summary>
|
|
/// </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.TreeListModel">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 the destroy method of any child Kendo widgets.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
editRow: function(row) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Switches the specified table row to edit mode.Fires the edit event.
|
|
/// </summary>
|
|
/// <param name="row" type="jQuery" >The jQuery object which represents the table row.</param>
|
|
/// </signature>
|
|
},
|
|
expand: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// This method expands the row.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
itemFor: function(model) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns the rendered HTML element for a given model.
|
|
/// </summary>
|
|
/// <param name="model" type="Object" >A model from the DataSource, or the id of a model in the DataSource.</param>
|
|
/// <returns type="jQuery">the row that corresponds to the model</returns>
|
|
/// </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 treelist. 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>
|
|
},
|
|
saveAsExcel: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Initiates the Excel export. Also fires the excelExport event.
|
|
/// </summary>
|
|
/// </signature>
|
|
},
|
|
saveAsPDF: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Initiates the PDF export and returns a promise. Also triggers the pdfExport event.
|
|
/// </summary>
|
|
/// <returns type="Promise">A promise that will be resolved when the export completes. The same promise is available in the pdfExport event arguments.</returns>
|
|
/// </signature>
|
|
},
|
|
saveRow: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Switches the table row which is in edit mode and saves any changes made by the user.Fires the edit event.
|
|
/// </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.TreeListDataSource" >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>
|
|
},
|
|
hideColumn: function(column) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Hides 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>
|
|
},
|
|
lockColumn: function(column) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Locks (freezes) a column, allowing users to see it at all times when scrolling.
|
|
/// </summary>
|
|
/// <param name="column" type="Object" >The index of the column or the field to which the columns is bound.</param>
|
|
/// </signature>
|
|
},
|
|
unlockColumn: function(column) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Unlocks (unfreezes) a column.
|
|
/// </summary>
|
|
/// <param name="column" type="Object" >The index of the column or the field to which the columns is bound.</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>
|
|
},
|
|
|
|
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.kendoTreeList = function() {
|
|
this.data("kendoTreeList", new kendo.ui.TreeList());
|
|
|
|
return this;
|
|
};
|
|
|
|
intellisense.annotate(jQuery.fn, {
|
|
getKendoTreeList: function() {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Returns a reference to the kendo.ui.TreeList widget, instantiated on the selector.
|
|
/// </summary>
|
|
/// <returns type="kendo.ui.TreeList">The kendo.ui.TreeList instance (if present).</returns>
|
|
/// </signature>
|
|
},
|
|
kendoTreeList: function(options) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Instantiates a kendo.ui.TreeList 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.
|
|
///
|
|
/// columns — Array
|
|
/// The configuration of the treelist columns. An array of JavaScript objects or strings. JavaScript objects are interpreted as column configurations. Strings are interpreted as the
|
|
/// field to which the column is bound. The treelist will create a column for every item of the array.
|
|
///
|
|
/// resizable — Boolean (default: false)
|
|
/// If set to true allows users to resize columns by dragging their header borders. By default resizing is disabled.
|
|
///
|
|
/// reorderable — Boolean (default: false)
|
|
/// If set to true the user could reorder the columns by dragging their header cells. By default reordering is disabled.
|
|
///
|
|
/// columnMenu — Boolean (default: false)
|
|
/// If set to true the treelist 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 (default: false)
|
|
/// If set to true the treelist 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|kendo.data.TreeListDataSource
|
|
/// The data source of the widget which is used to 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.
|
|
///
|
|
/// editable — Boolean (default: false)
|
|
/// If set to true the user would be able to edit the data to which the treelist is bound. By default editing is disabled.Can be set to a string ("inline" or "popup") to specify the editing mode. The default editing mode is "inline".Can be set to a JavaScript object which represents the editing configuration.
|
|
///
|
|
/// editable — Object (default: false)
|
|
/// If set to true the user would be able to edit the data to which the treelist is bound. By default editing is disabled.Can be set to a string ("inline" or "popup") to specify the editing mode. The default editing mode is "inline".Can be set to a JavaScript object which represents the editing configuration.
|
|
///
|
|
/// excel — Object
|
|
/// Configures the Kendo UI TreeList Excel export settings.
|
|
///
|
|
/// filterable — Boolean (default: false)
|
|
/// If set to true the user can filter the data source using the treelist filter menu. Filtering is disabled by default.Can be set to a JavaScript object which represents the filter menu configuration.
|
|
///
|
|
/// filterable — Object (default: false)
|
|
/// If set to true the user can filter the data source using the treelist filter menu. Filtering is disabled by default.Can be set to a JavaScript object which represents the filter menu configuration.
|
|
///
|
|
/// height — Number|String
|
|
/// The height of the treelist. Numeric values are treated as pixels.
|
|
///
|
|
/// messages — Object
|
|
/// Defines the text of the command buttons that are shown within the TreeList. Used primarily for localization.
|
|
///
|
|
/// pdf — Object
|
|
/// Configures the Kendo UI TreeList PDF export settings.
|
|
///
|
|
/// scrollable — Boolean|Object (default: true)
|
|
/// If set to true the TreeList will display a scrollbar when the total row height (or width) exceeds the TreeList height (or width). By default scrolling is enabled.Scrolling renders separate tables for the header and data area. For accessibility-conscious applications, disable scrolling.
|
|
///
|
|
/// selectable — Boolean|String (default: false)
|
|
/// If set to true the user would be able to select treelist 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 treelist 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 (default: false)
|
|
/// If set to true the user could sort the treelist by clicking the column header cells. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.
|
|
///
|
|
/// toolbar — String|Function
|
|
/// If a String value is assigned to the toolbar configuration option, it will be treated as a single string template for the whole treelist Toolbar,
|
|
/// and the string value will be passed as an argument to a kendo.template() function.If a Function value is assigned (it may be a kendo.template() function call or a generic function reference), then the return value of the function will be used to render the treelist Toolbar contents.If an Array value is assigned, it will be treated as the list of commands displayed in the treelist Toolbar. Commands can be custom or built-in ("create", "excel", "pdf").
|
|
///
|
|
/// toolbar — Array
|
|
/// If a String value is assigned to the toolbar configuration option, it will be treated as a single string template for the whole treelist Toolbar,
|
|
/// and the string value will be passed as an argument to a kendo.template() function.If a Function value is assigned (it may be a kendo.template() function call or a generic function reference), then the return value of the function will be used to render the treelist Toolbar contents.If an Array value is assigned, it will be treated as the list of commands displayed in the treelist Toolbar. Commands can be custom or built-in ("create", "excel", "pdf").
|
|
///
|
|
/// </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>
|
|
},
|
|
expandPath: function(path,complete) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Expands all nodes to a given element. Nodes may be loaded from a remote end-point.
|
|
/// </summary>
|
|
/// <param name="path" type="Array" >The IDs of the nodes that need to be expanded.</param>
|
|
/// <param name="complete" type="Function" >Callback function that will be called once the path has been expanded.</param>
|
|
/// </signature>
|
|
},
|
|
expandTo: function(targetNode) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Expands all nodes up to a given element. The element needs to be already loaded.
|
|
/// </summary>
|
|
/// <param name="targetNode" type="Object" >The dataItem of the node up to which to expand. Can also be the node ID</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.
|
|
/// Call it after using the insert / remove API on TreeViews with checkChildren: true.
|
|
/// Use to improve 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.
|
|
///
|
|
/// autoScroll — Boolean (default: false)
|
|
/// If set to true the widget will auto-scroll the containing element when the mouse/finger is close to the top/bottom of it.
|
|
///
|
|
/// 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|kendo.data.HierarchicalDataSource
|
|
/// 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.
|
|
///
|
|
/// messages — Object
|
|
/// The text messages displayed in the widget. Use it to customize or localize the messages.
|
|
///
|
|
/// 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:
|
|
///
|
|
/// errorTemplate — String
|
|
/// The template which renders the validation message.
|
|
///
|
|
/// 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>
|
|
},
|
|
setOptions: function(newOptions) {
|
|
/// <signature>
|
|
/// <summary>
|
|
/// Allows changing the widget configuration after initialization. Depending on the widget, some properties may not be changed, e.g. ones that influence the widget's HTML output (such as Grid scrollability or columns).
|
|
/// </summary>
|
|
/// <param name="newOptions" type="Object" >The options to be changed or added.</param>
|
|
/// </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="Object" >The content of the Window. Can be an HTML string or jQuery object.</param>
|
|
/// <returns type="Object">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 non-GET requests cannot be sent to an iframe, as they require 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. If you change the content url, call refresh afterwards.
|
|
/// Another option is to execute the refresh method with the new URL directly.
|
|
/// </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.
|
|
///
|
|
/// autoFocus — Boolean (default: true)
|
|
/// Determines whether the Window will be focused automatically when opened. The property also influences the focus behavior when the Window is clicked when already opened.
|
|
///
|
|
/// 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 a content iframe should be created. For more information, please read Using iframes.
|
|
///
|
|
/// 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.
|
|
///
|
|
/// scrollable — Boolean (default: true)
|
|
/// Enables (true) or disables (false) the ability for users to scroll the window contents.
|
|
///
|
|
/// 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>
|
|
}
|
|
});
|