getPrefixedSlots
Overview
Helper to get slot names with a specific prefix, excluding certain slots.
Signature
getPrefixedSlots(slots, prefix, retainFullName, exclude, keepEmptySuffix)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| slots | object | yes | The slots object |
| prefix | string | yes | The prefix to filter slot names by. |
| retainFullName | boolean | no | If true, the full slot name is returned without slicing the prefix. |
| exclude | string[] | yes | List of slot names or suffixes to exclude. |
| keepEmptySuffix | boolean | no | If 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