Skip to content

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 as the default Vue. They behave generally the same as in Vue, differing only in 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 plugins and how to register mixins.

Overview of all the mixins

NameDescriptionLink
discard-detail-page-changesMixin which resets entity changes on page leave or if the ID of the entity changes. This also affects changes in associations of the entitylink
form-fieldThis Mixin is used to provide common functionality between form fieldslink
generic-conditionMixin that provides reusable logic for rendering and handling generic rule/condition UI elements (a base for condition components) in the admin interfacelink
listingMixin which is used in almost all listing pages to, for example, keep track of the current page of the administrationlink
notificationThis Mixin is used to create notifications in the administration more easilylink
placeholderProvides a function to localize placeholderslink
positionA Mixin which contains helpers to work with position integerslink
remove-api-errorThis Mixin removes API errors e.g., after the user corrected an invalid input, i.e., leaving the product name field blanklink
rule-containerProvides common functions between the sw-condition-or-container and the sw-condition-and-containerlink
salutationA common adapter for the salutation filterlink
sw-inline-snippetMakes it possible to use snippets inlinelink
form-fieldMixin that provides standard form‑field behavior and helpers (including name handling and “inheritance” support) for input components used throughout the admin UIlink
user-settingsadds reusable helpers and reactive support for accessing and managing the current user’s personal settings (e.g., profile preferences like language, UI settings, etc.)link
validationIs used to validate inputs in various form fieldslink
Was this page helpful?
UnsatisfiedSatisfied
Be the first to vote!
0.0 / 5  (0 votes)