Mixins
This is an overview of all the mixins provided by the Shopware 6 Administration. Mixins in the Shopware 6 Administration are essentially the same in default Vue. They behave generally the same as they do in Vue normally, differing only in the registration and the way mixins are included in a component. Learn more about them in the official Vue documentation.
Also take a look at how to use them in your plugin and how to register your own mixin.
Overview of all the mixins
Name | Description | Link |
---|---|---|
discard-detail-page-changes | Mixin which resets entity changes on page leave or if the id of the entity changes. This also affects changes in associations of the entity | link |
listing | Mixin which is used in almost all listing pages to for example keep track of the current page of the administration | link |
notification | This mixin is used to create notifications in the administrations more easily | link |
placeholder | Provides a function to localize placeholders | link |
position | A Mixin which contains helpers to work with position integers | link |
remove-api-error | This mixin removes API errors e.g. after the user corrected a invalid input i.e. leaving the product name field blank | link |
ruleContainer | Provides common functions between the sw-condition-or-container and the sw-condition-and-container | link |
salutation | A common adapter for the salutation filter | link |
sw-form-field | This mixin is used to provide common functionality between form fields | link |
sw-inline-snippet | Makes it possible to use snippets inline | link |
validation | Is used to validate inputs in various form fields | link |