mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
docs: document eachChild callback function (#6253)
This commit is contained in:
committed by
GitHub
parent
2d14c56014
commit
1db1e81174
@@ -253,7 +253,15 @@ export abstract class ViewBase extends Observable {
|
||||
public bind(options: BindingOptions, source?: Object): void;
|
||||
public unbind(property: string): void;
|
||||
|
||||
/**
|
||||
* Invalidates the layout of the view and triggers a new layout pass.
|
||||
*/
|
||||
public requestLayout(): void;
|
||||
|
||||
/**
|
||||
* Iterates over children of type ViewBase.
|
||||
* @param callback Called for each child of type ViewBase. Iteration stops if this method returns falsy value.
|
||||
*/
|
||||
public eachChild(callback: (child: ViewBase) => boolean): void;
|
||||
|
||||
public _addView(view: ViewBase, atIndex?: number): void;
|
||||
|
||||
6
tns-core-modules/ui/core/view/view.d.ts
vendored
6
tns-core-modules/ui/core/view/view.d.ts
vendored
@@ -576,7 +576,11 @@ export abstract class View extends ViewBase {
|
||||
_getNativeViewsCount(): number;
|
||||
|
||||
_eachLayoutView(callback: (View) => void): void;
|
||||
|
||||
|
||||
/**
|
||||
* Iterates over children of type View.
|
||||
* @param callback Called for each child of type View. Iteration stops if this method returns falsy value.
|
||||
*/
|
||||
public eachChildView(callback: (view: View) => boolean): void;
|
||||
|
||||
//@private
|
||||
|
||||
Reference in New Issue
Block a user