Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit c309a8e

Browse files
author
CJ
committed
Added the asynchronous way of retrieving ui components from the registry
1 parent 77628e3 commit c309a8e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/guides/v2.3/ui_comp_guide/concepts/ui_comp_uiregistry.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ If you know a unique property value of a component that you need to find, you ca
3131
var component = registry.get('property = propertyValue');
3232
```
3333

34+
### Asynchronous way of retrieving UI components from the registry
35+
36+
{:.bs-callout-info}
37+
This way is **Recommended** for the good performance.
38+
39+
```js
40+
module('trigger', true);
41+
var component = () => registry.get('componentName', function (component) {
42+
component.trigger(true);
43+
});
44+
```
45+
3446
**Examples:**
3547

3648
The following code shows how to get a component by a full component name:

0 commit comments

Comments
 (0)