You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/view.md
+64Lines changed: 64 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,6 +168,70 @@ override redraw() {
168
168
}
169
169
```
170
170
171
+
## subView()
172
+
173
+
```
174
+
protected subView<T extends ViewConstructor>(
175
+
SubView: T,
176
+
selector?: string
177
+
): InstanceType<T> | null;
178
+
```
179
+
180
+
Returns the first subView created within the `template()` method that matches the constructor passed as an argument. The optional second argument, selector,
181
+
182
+
allows for further querying conditions using a CSS Selector.
Copy file name to clipboardExpand all lines: docs/ko/api/view.md
+62Lines changed: 62 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,6 +172,68 @@ override redraw() {
172
172
}
173
173
```
174
174
175
+
## subView()
176
+
177
+
```
178
+
protected subView<T extends ViewConstructor>(
179
+
SubView: T,
180
+
selector?: string
181
+
): InstanceType<T> | null;
182
+
```
183
+
184
+
View의 `template()` 메서드 안에서 생성된 subView들, 즉 첫 번째 뎁스의 subView들 중에 컨스트럭터가 인자로 전달한 컨스트럭터와 동일한 첫 번째 subView를 리턴합니다. 두 번째 인자인 selector? 는 CSS Selector로, SubView를 조회하는 조건을 추가할 수 있습니다.
0 commit comments