/docs/ |
H A D | CODEOWNERS | 879 zh-cn/application-dev/reference/apis-backgroundtasks-kit/js-apis-resourceschedule-deviceStandby-sys.md @foolish-older-man @ningningW @yuanzhizhong
|
/docs/en/application-dev/arkts-utils/ |
H A D | source-obfuscation.md | 183 * File or folder names in non-ECMAScript module reference mode. An ECMAScript module example is **import {foo} from './filename'**. 350 If an API (for example, **foo** in the example) of the .so library needs to be used in the ArkTS/TS/JS file, manually keep the API name. 354 testNapi.foo() // foo should be kept. Example: -keep-property-name foo 393 function foo(){} 394 globalThis.foo(); // foo should be kept.
|
H A D | arkts-sendable.md | 32 function foo(a: A) {} 33 let task: taskpool.Task = new taskpool.Task(foo, a) 411 foo() { 443 foo() {
|
/docs/en/application-dev/faqs/ |
H A D | faqs-arkts-utils.md | 622 import(module).then(m=>{m.foo();}).catch(e=>{console.log(e)})
|
H A D | faqs-window-manager.md | 184 const TAG = 'foo'
|
/docs/en/application-dev/napi/ |
H A D | jsvm-guidelines.md | 309 status = OH_JSVM_SetNamedProperty(env, object, "foo", string);
|
H A D | napi-guidelines.md | 102 status = napi_set_named_property(env2, object, "foo", string); 130 // 3. Set the result of step 2 to the value of the object property foo. 131 status = napi_set_named_property(env, object, "foo", string);
|
/docs/en/application-dev/performance/ |
H A D | waterflow_optimization.md | 51 To implement infinite scrolling with the capabilities provided by the **\<WaterFlow>** component, you can new data to the **LazyForEach** data source during **onReachEnd**, and set the footer to the loading-new-data style (by using the [\<LoadingProgress>](../reference/apis-arkui/arkui-ts/ts-basic-components-loadingprogress.md) component). 56 WaterFlow({ footer: this.itemFoot.bind(this) }) {
|
/docs/en/application-dev/quick-start/ |
H A D | arkts-high-performance-programming.md | 91 function foo(): number { 95 foo(); 102 function foo(array: number[]): number { 106 foo(arr);
|
H A D | arkts-more-cases.md | 70 foo(str: string) { 87 foo(str: string) { 128 function foo(fn: I) { 132 foo((value: string) => { 143 function foo(fn: I) { 147 foo((value: string) => { 220 function foo(data: { [key: string]: string }) { 230 function foo(data: Record<string, string>) { 578 function foo(obj: { [key: string]: string}): string { 589 function foo(ob [all...] |
H A D | typescript-to-arkts-migration-guide.md | 350 #foo: number = 42 358 private foo: number = 42 931 function foo(x: X) { 936 foo(new X()) 937 foo(new Y()) 996 function foo(c: Z): void { 1001 foo(new X()) 1002 foo(new Y()) 1068 let o1 = {n: 42, s: 'foo'} 1069 let o2: Object = {n: 42, s: 'foo'} [all...] |
H A D | arkts-bytecode-fundamentals.md | 49 function foo(): number { 55 .function any .foo(any a0, any a1, any a2) { 75 function foo(): void { 82 .function any .foo(any a0, any a1, any a2) { 161 function foo(): void { 170 .function any .foo(any a0, any a1, any a2) { 198 function foo(): void { 204 .function any foo(...) { 228 function foo(a: number, b: number): void {} 232 .function any .foo(an [all...] |
H A D | arkts-bytecode-function-name.md | 54 function foo() { } // The function name of foo is "#&A^1*#foo", where "^1" indicates the duplicate sequence number. 61 function foo() {} // The original function name is "foo".
|
H A D | introduction-to-arkts.md | 220 function foo(animal: Animal) { 644 function foo(): string { return 'foo'; } 741 function foo(x: number): void; /* 1st signature */ 742 function foo(x: string): void; /* 2nd signature */ 743 function foo(x: number | string): void { /* Implementation signature */ 746 foo(123); // ok, 1st signature is used 747 foo('aa'); // ok, 2nd signature is used 1110 foo(x: number): void; /* 1st signature */ 1111 foo( [all...] |
/docs/en/application-dev/reference/apis-arkts/ |
H A D | js-apis-buffer.md | 520 let result1 = buffer.isBuffer(buffer.from('foo')); // true
|
H A D | js-apis-arkts-collections.md | 1512 [0, "foo"], 1517 // Expected output: [0, "foo"] 1568 [0, "foo"], 1606 [0, "foo"], 1611 // Expected output: "foo" 1639 [0, "foo"], 1730 ['foo', 0], 1742 ['foo', 0], 1858 myMap.set("foo", "bar") 1867 myMap.set("foo", ob [all...] |
H A D | js-apis-arkts-utils.md | 86 async function foo(a: A) {
|
H A D | js-apis-util.md | 597 foo(arg: string): string { 598 console.info('foo arg is ' + arg); 610 let result = asp.foo('123'); 611 // Output: foo arg is 123 617 util.Aspect.addBefore(MyClass, 'foo', false, (instance: MyClass, arg: string) => { 623 result = asp.foo('123'); 626 // Output: foo arg is 123 689 foo(arg: string): string { 690 console.info('foo arg is ' + arg); 696 let result = asp.foo('12 [all...] |
H A D | js-apis-url.md | 509 let that = url.URL.parseURL('http://username:password@host:8080/directory/file?foo=1&bar=2#fragment'); 513 console.log("href " + that.href) // href http://username:password@host:8080/directory/file?foo=1&bar=2#fragment 519 console.log("search " + that.search) // search ?foo=1&bar=2 522 console.log("params: foo " + that.params.get("foo")) // params: foo 1
|
H A D | js-apis-uri.md | 98 const result4 = new uri.URI("https://username:password@host:8080/directory/file?foo=1&bar=2#fragment"); 105 console.info(result4.query) // foo=1&bar=2 116 const result6 = new uri.URI("https://username:my+name@host:8080/directory/my+file?foo=1&bar=2#fragment"); 119 console.info(result6.encodedQuery) // foo=1&bar=2 122 console.info(result6.encodedSSP) // //username:my+name@host:8080/directory/my+file?foo=1&bar=2 164 let mm = 'https://username:password@host:8080/directory/file?foo=1&bar=2#fragment';
|
/docs/en/application-dev/reference/apis-arkui/ |
H A D | _ark_u_i___native_module.md | 174 | [ArkUI_StickyStyle](#arkui_stickystyle) { ARKUI_STICKY_STYLE_NONE = 0, ARKUI_STICKY_STYLE_HEADER = 1, ARKUI_STICKY_STYLE_FOOTER = 2, ARKUI_STICKY_STYLE_BOTH = 3 } | Enumerates the modes for pinning the header to the top or the footer to the bottom. | 2971 | NODE_LIST_STICKY | Defines whether to pin the header to the top or the footer to the bottom in the **ListItemGroup** component. This attribute can be set, reset, and obtained as required through APIs.<br>Format of the [ArkUI_AttributeItem](_ark_u_i___attribute_item.md) parameter for setting the attribute:<br>.value[0].i32: whether to pin the header to the top or the footer to the bottom in the **ListItemGroup** component. It is used together with the **ListItemGroup** component. Data type [ArkUI_StickyStyle](#arkui_stickystyle). The default value is **ARKUI_STICKY_STYLE_NONE**.<br>Format of the return value [ArkUI_AttributeItem](_ark_u_i___attribute_item.md):<br>.value[0].i32: whether to pin the header to the top or the footer to the bottom in the **ListItemGroup** component. It is used together with the **ListItemGroup** component. The parameter type is [ArkUI_StickyStyle](#arkui_stickystyle). | 3003 | NODE_LIST_ITEM_GROUP_SET_FOOTER | Defines the footer of the list item group. This attribute can be set, reset, and obtained as required through APIs.<br>Format of the [ArkUI_AttributeItem](_ark_u_i___attribute_item.md) parameter for setting the attribute:<br>.object: [ArkUI_NodeHandle](#arkui_nodehandle) object to be used as the footer of the list item group.<br>Format of the return value [ArkUI_AttributeItem](_ark_u_i___attribute_item.md):<br>.object: [ArkUI_NodeHandle](#arkui_nodehandle) object to be used as the footer of the list item group. | 3024 | NODE_WATER_FLOW_FOOTER | Sets the custom footer for the water flow container.<br>Parameter format of the attribute setting method [ArkUI_AttributeItem](_ark_u_i___attribute_item.md):<br>.object: custom footer. The parameter type is [ArkUI_NodeHandle](#arkui_nodehandle). | 3733 Enumerates the modes for pinning the header to the top or the footer t [all...] |
/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-basic-components-menuitemgroup.md | 21 | value | [MenuItemGroupOptions](ts-basic-components-menuitemgroup.md#menuitemgroupoptions) | No | Header and footer of the menu item group.| 28 | footer | [ResourceStr](ts-types.md#resourcestr) \| [CustomBuilder](ts-types.md#custombuilder8) | No | Footer of the menu item group.|
|
H A D | ts-container-list.md | 289 Sets whether to pin the header to the top or the footer to the bottom in the [list item group](ts-container-listitemgroup.md), if set. To support both the pin-to-top and pin-to-bottom features, set **sticky** to **StickyStyle.Header \| StickyStyle.Footer**. 301 | value | [StickyStyle](#stickystyle9) | Yes | Whether to pin the header to the top or the footer to the bottom in the list item group.<br>Default value: **StickyStyle.None**| 417 | value | [ChildrenMainSize](ts-container-scrollable-common.md#childrenmainsize12) | Yes | 1. Purpose:<br>By providing a **ChildrenMainSize** object to the **List** component, it accurately conveys the size information of all child components along the main axis. This enables the **List** component to maintain an accurate scroll position even when child components have varying sizes on the main axis, when child components are added or removed, or when [scrollToIndex](ts-container-scroll.md#scrolltoindex) is used. This ensures that [scrollTo](ts-container-scroll.md#scrollto) can jump to an exact specified location, [currentOffset](ts-container-scroll.md#currentoffset) can obtain the current exact scroll position, and the built-in scrollbar can move smoothly without any discontinuities.<br>2. Constraints:<br>(1) The provided size along the main axis must be consistent with the actual size of the child components on the main axis. Any changes in size or additions/removals of child components must be communicated to the **List** component through the **ChildrenMainSize** object method.<br>(2) When the child component is a list item group, the overall size of the list item group along the main axis must be accurately calculated based on the number of columns in the list item group, the spacing between list items along the main axis, and the size of the header, footer, and list items within the list item group. The calculated size must then be provided to the **List** component.<br>(3) If child components include list item groups, the **childrenMainSize** attribute must be set for each individual list item group. Each list item group, as well as the **List** component itself, must be bound one-to-one with a **ChildrenMainSize** object through the **childrenMainSize** attribute.<br>(4) For a multi-column list where child components are generated using **LazyForEach**, ensure that **LazyForEach** generates either all **ListItemGroup** components or all** ListItem** components. | 443 | None | 0 | In the **ListItemGroup** component, the header is not pinned to the top, and the footer is not pinned to the bottom.| 444 | Header | 1 | In the **ListItemGroup** component, the header is pinned to the top, and the footer is not pinned to the bottom. | 445 | Footer | 2 | In the **ListItemGroup** component, the footer is pinned to the bottom, and the header is not pinned to the top. | 783 Triggered when a child component enters or leaves the list display area. During index calculation, list item, header of the list item group, and footer of the list item group each are counted as a child component. 966 | NONE | 0 | The edge of the viewport is in the position of **none**. Applicable when the list item group does not contain any header, footer, o [all...] |
H A D | ts-container-refresh.md | 316 footer() { 342 this.footer();
|
H A D | ts-container-listitemgroup.md | 10 > - If the parent**List** component of **ListItemGroup** has its **listDirection** attribute set to **Axis.Vertical**, the [universal attribute height](ts-universal-attributes-size.md) is not effective. is fixed at the sum of the component's header height, footer height, and total height of the list items. 11 > - If the parent**List** component of **ListItemGroup** has its **listDirection** attribute set to **Axis.Horizontal**, the [universal attribute width](ts-universal-attributes-size.md) is not effective. is fixed at the sum of the component's header width, footer width, and total width of the list items. 43 | footer | [CustomBuilder](ts-types.md#custombuilder8) | No | Footer of the list item group.<br>**NOTE**<br>One child component, or no child component at all, can be placed inside. | 44 | space | number \| string | No | Spacing between list items. This parameter is valid only between list items, but not between the header and list item or between the footer and list item.<br>Default value: **0**<br>Unit: vp | 148 ListItemGroup({ header: this.itemHead(item.title), footer: this.itemFoot(item.projects.length) }) { 164 .sticky(StickyStyle.Header | StickyStyle.Footer)
|