Mixins
About
Mixin — is a powerful feature that allows you to override or disable any built-in or third-party Breeze component.
The syntax is:
$.mixin('componentName|component', propsToExtend);
componentName
– is the name of component that you want to modify, or the component object itself.propsToExtend
– an object with methods to override.
Example
$.mixin('collapsible', {
create: function (parent) {
parent();
},
someMethod: function (parent, arg1, arg2) {
parent(arg1, arg2);
}
});
You can also use mixin to disable component:
$.mixin('quickSearch', {
component: false
});