Skip to Content

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 very simple:

$.mixin('componentName', propsToExtend);
  • componentName – is the name of component that you want to modify.
  • propsToExtend – an object with methods to override.

Example

Where to place my custom scripts?

$.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
});