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

Commit 2079799

Browse files
authored
Merge pull request #4 from gosteev/patch-2
Adjusting indentations
2 parents ca6a6cd + 4b3bf4f commit 2079799

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

guides/v2.2/ui_comp_guide/concepts/ui_comp_uiclass_concept.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,41 +21,41 @@ The uiClass class introduces the architecture of UI components through the follo
2121

2222
As an example:
2323
```js
24-
defaults: {
25-
myFirstProperty: 0,
26-
mySecondProperty: 1
27-
}
28-
29-
//Before executing initConfig method:
30-
console.log(this.myFirstProperty) // Undefined
31-
console.log(this.mySecondProperty) // Undefined
32-
33-
//After executing initConfig method:
34-
console.log(this.myFirstProperty) // 0
35-
console.log(this.mySecondProperty) // 1
24+
defaults: {
25+
myFirstProperty: 0,
26+
mySecondProperty: 1
27+
}
28+
29+
//Before executing initConfig method:
30+
console.log(this.myFirstProperty) // Undefined
31+
console.log(this.mySecondProperty) // Undefined
32+
33+
//After executing initConfig method:
34+
console.log(this.myFirstProperty) // 0
35+
console.log(this.mySecondProperty) // 1
3636
```
3737

3838
* The `initialize()` method is called during instantiation. It can be used to add custom functionality executed only once, during component instance creation.
3939

4040
As an example:
4141

4242
```js
43-
initialize: function () {
44-
%yourMethodName%();
43+
initialize: function () {
44+
%yourMethodName%();
4545

46-
return this;
47-
}
46+
return this;
47+
}
4848
```
4949

5050
* The `_super()` method calls the parent UI component method with the same name as the `_super()` method's caller; if that method does not exists in the parent UI component, then the method tries to find it higher in the inheritance chain.
5151
As an example:
5252

5353
```js
54-
initialize: function () {
55-
this._super(); //_super will call parent's `initialize` method here
54+
initialize: function () {
55+
this._super(); //_super will call parent's `initialize` method here
5656

57-
return this;
58-
}
57+
return this;
58+
}
5959
```
6060

6161
### Commonly used uiClass properties {#uiclass_properties}
@@ -64,11 +64,11 @@ The `defaults` property declares the list of properties of a UI component's inst
6464

6565
As an example:
6666
```js
67-
defaults: {
68-
%yourCustomProperty%: '',
69-
imports: {
70-
%yourCustomProperty%: '%anotherComponentLink%',
71-
disabled: 'checked'
72-
},
73-
}
67+
defaults: {
68+
%yourCustomProperty%: '',
69+
imports: {
70+
%yourCustomProperty%: '%anotherComponentLink%',
71+
disabled: 'checked'
72+
}
73+
}
7474
```

0 commit comments

Comments
 (0)