Home
last modified time | relevance | path

Searched full:placeholder (Results 1 – 25 of 202) sorted by relevance

123456789

/docs/en/application-dev/reference/apis-arkgraphics2d/
D_o_h___drawing___placeholder_span.md6 The OH_Drawing_PlaceholderSpan struct describes the placeholder that acts as a span.
21 | double [width](#width) | Width of a placeholder.|
22 | double [height](#height) | Height of a placeholder.|
23 …h_drawing_placeholderverticalalignment) [alignment](#alignment) | Alignment mode of a placeholder.|
24 …tBaseline](_drawing.md#oh_drawing_textbaseline) [baseline](#baseline) | Baseline of a placeholder.|
25 | double [baselineOffset](#baselineoffset) | Baseline offset of a placeholder.|
39 Alignment mode of a placeholder.
50 Baseline of a placeholder.
61 Baseline offset of a placeholder.
72 Height of a placeholder.
[all …]
/docs/.gitcode/ISSUE_TEMPLATE/
D4_security-issue.yml14 placeholder: ""
21 placeholder: ""
28 placeholder: ""
35 placeholder: ""
42 placeholder: ""
49 placeholder: ""
56 placeholder: ""
63 placeholder: ""
70 placeholder: ""
D1_bug-report.yml14 placeholder: ""
21 placeholder: ""
/docs/en/application-dev/ui/
Darkts-common-components-text-input.md12 TextInput(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: TextInputController})
16 TextArea(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: TextAreaController})
72 - Set the placeholder text displayed when there is no input.
76 TextInput({ placeholder: 'I am placeholder text' })
85 TextInput({ placeholder: 'I am placeholder text', text: 'I am current text input' })
93 TextInput({ placeholder: 'I am placeholder text', text: 'I am current text input' })
126 TextInput({ placeholder: 'input your username' }).margin({ top: 20 })
130 TextInput({ placeholder: 'input your password' }).type(InputType.Password).margin({ top: 20 })
156 ForEach(this.placeHolderArr, (placeholder: string) => {
157 TextInput({ placeholder: 'TextInput ' + placeholder })
Dui-js-components-input.md54 <input type="date" class="flex" placeholder="Enter data"></input>
122 <input class="input" type="text" onsearch="search" placeholder="search"> </input>
123 <input class="input" type="text" ontranslate="translate" placeholder="translate"> </input>
140 placeholder-color: gray;
178 …<input id="input" class="input" type="text" maxlength="20" placeholder="Please input text" onchan…
196 placeholder-color: gray;
257 <input class="flex" id="input1" placeholder="Enter content" />
261 <input class="flex" id="input3" type="date" placeholder="Enter data" />
265 <input class="flex" id="input4" type="time" placeholder="Enter time" />
Dndk-styled-string.md77 ## Adding a Placeholder
78 A placeholder reserves a blank area of a specified size in the middle of text. No text is drawn in …
81 > The relative position of the placeholder and text is determined by the execution order of **OH_Ar…
84 OH_Drawing_PlaceholderSpan placeHolder{
88 OH_ArkUI_StyledString_AddPlaceholder(styledString, placeHolder);
165 // Insert a 100 x 100 placeholder between "Hello" and "World!"
166 OH_Drawing_PlaceholderSpan placeHolder{
170 OH_ArkUI_StyledString_AddPlaceholder(styledString, &placeHolder);
Dui-js-components-search.md65 Set **color**, **placeholder-color**, and **caret-color** to set the text color, hint text color, a…
88 placeholder-color: black;
191 …<textarea class="field" id="textarea1" extend="true" placeholder="textarea1" onchange="change" ></…
192 …<textarea class="field" id="textarea2" extend="true" placeholder="textarea2" onchange="change" sho…
195 <input type="text" class="field" id="input1" placeholder="input1" onchange="change" ></input>
196 …<input type="text" class="field" id="input2" placeholder="input2" onchange="change" show="{{showse…
208 placeholder-color: orangered;
Darkts-user-defined-place-holder.md1 # Custom Placeholder Nodes
3 ArkUI provides two types of custom placeholder nodes: the built-in component [NodeContainer](../../…
7 …-basic-components-nodecontainer.md), a built-in component serving as a placeholder, comes with uni…
31Placeholder node: special node used in a declarative node tree to reserve a spot for a custom node…
140 // First, remove the node from the original placeholder node.
141 // Then, add the node to the new placeholder node.
Darkts-user-defined-node.md3 …mponents. The attachment and display of custom nodes depend on [custom placeholder nodes](./arkts-…
15 ## Custom Placeholder Nodes
16 Custom placeholder nodes, acting as built-in components, provide anchor points for custom nodes in …
30 …Node facilitates the synchronous reuse of nodes, and by combining with placeholder nodes, it can l…
Djs-framework-multiple-languages.md107placeholder, for example, **{name}**. The actual content must be of the object type, for example, …
113 <!-- Display Hello world! without using a placeholder. -->
115 <!-- Replace named placeholder {name} with Hello world and display it. -->
117 <!-- Replace digit placeholder {0} with Hello world and display it. -->
121 …<!-- Obtain the resource content from the .js file, replace named placeholder {name} with Hello wo…
123 …<!-- Obtain the resource content from the .js file, replace digit placeholder {0} with Hello world…
Dndk-access-the-arkts-page.md4 ## Placeholder Components
6 …PIs, you need to create placeholder components in the ArkTS page for mounting components created b…
8 - The usage of placeholder components is the same as other built-in ArkTS components. For the sampl…
36 // Bind the NodeContent and ContentSlot placeholder component.
46 - The placeholder component can be transformed into a mounting object on the native side through re…
121 1. Declare a placeholder component for native page mounting on the ArkTS page, and notify the nativ…
149 // Bind the NodeContent and ContentSlot placeholder component.
/docs/en/application-dev/reference/apis-ime-kit/
Dcapi-inputmethod-text-config-capi-h.md42 …TextConfig *config, const char16_t *placeholder,size_t length)](#oh_textconfig_setplaceholder) | S…
51 …hod_TextConfig *config, char16_t *placeholder,size_t *length)](#oh_textconfig_getplaceholder) | Ob…
227 …extConfig_SetPlaceholder(InputMethod_TextConfig *config, const char16_t *placeholder,size_t length)
232 Sets the placeholder text.
242 | const char16_t *placeholder | Pointer to a UTF-16 encoded double-byte string. If a null pointer i…
243 …emory to which **placeholder** points, including the null character of the double-byte string.1. I…
464 … OH_TextConfig_GetPlaceholder(InputMethod_TextConfig *config, char16_t *placeholder,size_t *length)
469 Obtains the placeholder text.
479 | char16_t *placeholder | Pointer to the placeholder text. The memory of this pointer is maintained…
480placeholder text, in double bytes. The length includes the null character of the string.1. As an i…
/docs/en/application-dev/reference/apis-arkui/arkui-js-lite/
Djs-lite-framework-localization.md39placeholder, for example, {name}. The actual content must be of the object type, for example, **$t…
46 <!-- Display Hello world! without using a placeholder. -->
48 <!-- Replace named placeholder {name} with Hello world and display it. -->
50 <!-- Replace digit placeholder {0} with Hello world and display it. -->
54 …<!-- Obtain the resource content from the .js file, replace named placeholder {name} with Hello wo…
56 …<!-- Obtain the resource content from the .js file, replace digit placeholder {0} with Hello world…
/docs/zh-cn/application-dev/ui/
Dui-js-components-input.md59 <input type="date" class="flex" placeholder="Enter data"></input>
125 <input class="input" type="text" ontranslate="translate" placeholder="translate"> </input>
142 placeholder-color: gray;
175 …<input id="input" class="input" type="text" maxlength="20" placeholder="Please input text" onchan…
193 placeholder-color: gray;
254 <input class="flex" id="input1" placeholder="Enter content" />
258 <input class="flex" id="input3" type="date" placeholder="Enter data" />
262 <input class="flex" id="input4" type="time" placeholder="Enter time" />
Dui-js-components-search.md71 通过color、placeholder-color和caret-color样式来设置搜索框的文本颜色、提示文本颜色和光标颜色。
94 placeholder-color: black;
197 …<textarea class="field" id="textarea1" extend="true" placeholder="textarea1" onchange="change" ></…
198 …<textarea class="field" id="textarea2" extend="true" placeholder="textarea2" onchange="change" sho…
201 <input type="text" class="field" id="input1" placeholder="input1" onchange="change" ></input>
202 …<input type="text" class="field" id="input2" placeholder="input2" onchange="change" show="{{showse…
214 placeholder-color: orangered;
Darkts-common-components-text-input.md22 TextInput(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: TextInputController})
26 TextArea(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: TextAreaController})
30 Search(options?:{placeholder?: ResourceStr, value?: ResourceStr, controller?: SearchController, ico…
144 TextInput({ placeholder: '我是提示文本' })
153 TextInput({ placeholder: '我是提示文本', text: '我是当前文本内容' })
161 TextInput({ placeholder: '我是提示文本', text: '我是当前文本内容' })
207 … TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller })
383 TextInput({ placeholder: '输入你的邮箱...' })
451 ForEach(this.placeHolderArr, (placeholder: string) => {
452 TextInput({ placeholder: 'TextInput ' + placeholder })
Dndk-styled-string.md101 OH_Drawing_PlaceholderSpan placeHolder{
105 OH_ArkUI_StyledString_AddPlaceholder(styledString, placeHolder);
201 OH_Drawing_PlaceholderSpan placeHolder{
205 OH_ArkUI_StyledString_AddPlaceholder(styledString, &placeHolder);
/docs/zh-cn/third-party-cases/
Dcustomize-the-input-box.md42 Text(this.placeholder)
83 InputFloatHint({placeholder: '请输入用户名'})
85 InputFloatHint({placeholder: '请输入密码'})
120 placeholder: string
142 Text(this.placeholder)
181 InputFloatHint({placeholder: '账号'})
183 InputFloatHint({placeholder: '密码'})
/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/
Djs-components-basic-textarea.md31 | placeholder | string | - | 否 | 多行文本框的提示文本内容。 …
60 | placeholder-color | &lt;color&gt; | \#99000000 | 否 | 多行文本框的提示文本颜色,type为tex…
90 headericon="/common/navigation_menu1_icon.svg" placeholder="Please input text"
98 placeholder-color: gray;
/docs/en/application-dev/reference/apis-universal-keystore-kit/
Dcapi-hukstypeapi-oh-huks-pubkeyinfo.md30 | uint32_t placeHolder | Placeholder size.|
/docs/zh-cn/application-dev/web/
Dweb-set-dark-mode.md49 <input name="input1" type="text" placeholder="please enter text">
51 …<input name="input2" type="text" placeholder="please enter text" style="background-color: Lightgra…
167 <input name="input1" placeholder="please enter text" style="color-scheme: light dark;">
169 <input name="input2" placeholder="please enter text">
Dweb-dialog.md78 <input type="text" id="alert-message" placeholder="message for alert"><br/>
162 <input type="text" id="alert-message" placeholder="message for alert"><br/>
250 <input type="text" id="confirm-message" placeholder="message for confirm"><br/>
352 <input type="text" id="confirm-message" placeholder="message for confirm"><br/>
475 <input type="text" id="prompt-message" placeholder="message for prompt"><br/>
476 <input type="text" id="prompt-value" placeholder="default value for prompt"><br/>
/docs/en/application-dev/reference/apis-arkui/arkui-js/
Djs-components-basic-textarea.md26 | placeholder | string | - | No | Content of the hint t…
55 | placeholder-color | &lt;color&gt; | \#99000000 | No | Color of the hint tex…
85 headericon="/common/navigation_menu1_icon.svg" placeholder="Please input text"
93 placeholder-color: gray;
/docs/zh-cn/application-dev/graphics/
Dcomplex-text-c.md587 // 创建一个 placeholder,并且初始化其成员变量
588 OH_Drawing_PlaceholderSpan placeholder;
589 placeholder.width = 200.0;
590 placeholder.height = 200.0;
591 placeholder.alignment = ALIGNMENT_ABOVE_BASELINE; // 基线对齐策略
592 placeholder.baseline = TEXT_BASELINE_ALPHABETIC; // 使用的文本基线类型
593 placeholder.baselineOffset = 0.0; // 相比基线的偏移量。只有对齐策略是 OFFSET_AT_BASELINE 时生效
595 // 将 placeholder 放在开头
596 OH_Drawing_TypographyHandlerAddPlaceholder(handlerWithPlaceholder, &placeholder);
/docs/en/application-dev/reference/apis-ability-kit/
Djs-apis-inner-application-pageNodeInfo-sys.md22 | placeholder | string | No | Yes | Placeholder of the page node. …

123456789