Skip to content

getPrefixedSlots ​

Overview ​

Helper to get slot names with a specific prefix, excluding certain slots.

Signature ​

getPrefixedSlots(slots, prefix, retainFullName, exclude, keepEmptySuffix)

Parameters ​

NameTypeRequiredDescription
slotsobjectyesThe slots object
prefixstringyesThe prefix to filter slot names by.
retainFullNamebooleannoIf true, the full slot name is returned without slicing the prefix.
excludestring[]yesList of slot names or suffixes to exclude.
keepEmptySuffixbooleannoIf true, empty suffixes are kept in the result.

Returns ​

[string, string][]

  • An array of slot names and the slot name without the prefix. i.e. (outerName, innerName)

Source ​

client/lib/utils/rendererSupport.js:17