/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-basic-components-richtext.md | 3 富文本组件,解析并显示HTML格式文本。 7 …RichText组件适用于加载与显示一段HTML字符串,且不需要对显示效果进行较多自定义的应用场景。RichText组件仅支持有限的通用属性和事件。具体见[属性](#属性)与[事件](#事件)小节。 9 RichText组件底层复用了Web组件来提供基础能力,包括但不限于HTML页面的解析、渲染等。因此使用RichText组件需要遵循Web约束条件。常见典型约束如下: 11 …移动设备的视口默认值大小为980px,默认值可以确保大部分网页在移动设备下可以正常浏览。如果RichText组件宽度低于这个值,content内部的HTML则可能会产生一个可以滑动的页面被Rich… 19 …RichText组件不适用于对HTML字符串的显示效果进行较多自定义的应用场景。例如RichText组件不支持通过设置属性与事件,来修改背景颜色、字体颜色、字体大小、动态改变内容等。在这种情况下,… 43 | content | string | 是 | 表示HTML格式的字符串。 | 72 | \<h1>--\<h6> | 被用来定义HTML,\<h1>定义重要等级最高的标题,\<h6>定义重要等级最低的标题。 | \<h1>这是一个标题\</h1>\<h2>这是h2标题\</h2> | 75 | \<font/> | 规定文本的字体、字体尺寸、字体颜色。在<font/>标签中font size能够设置的值只有1到7的数字,默认值是3,由于<font/>标签在HTML 4.01中不建议使用… 76 | \<hr/> | 定义HTML页面中的主题变化(比如话题的转移),并显示为一条水平线。 | \<p>这个一个段落\</p>\<hr/>\<p>这是一个段落\</p> | 81 | \<style>\</style> | 定义HTML文档的样式信息。 | \<style>h1{color:red;}p{color:blue;}\</style> |
|
/ohos5.0/docs/zh-cn/application-dev/web/ |
H A D | web-app-page-data-channel.md | 22 @State sendFromEts: string = 'Send this message from ets to HTML'; 23 @State receivedFromHtml: string = 'Display received message send from HTML'; 27 // 展示接收到的来自HTML的内容 29 // 输入框的内容发送到HTML 30 TextInput({ placeholder: 'Send this message from ets to HTML' }) 43 let msg = 'Got msg from HTML:'; 59 // 3、将另一个消息端口(如端口0)发送到HTML侧,由HTML侧保存并使用。 99 <input id="msgFromJS" type="text" value="send this message from HTML to ets"/><br/>
|
H A D | web-router-flash-optimization.md | 14 3. 网页继续根据新的尺寸加载并显示,首先呈现的是HTML网页的背景色,此处假设为白色。 16 4. 最后,网页内容完全加载,展现出完整的HTML网页内容。
|
H A D | web-event-sequence.md | 23 …onOverrideUrlLoading接口行为不一致,触发时机也不同,所以在应用场景上存在一定区别。主要是在LoadUrl和iframe(HTML标签,表示HTML内联框架元素,用于将另一个页面… 27 …md#onpagebegin)事件:网页开始加载时触发该回调,且只在主frame(表示一个HTML元素,用于展示HTML页面的HTML元素)触发。如果是iframe或者frameset(用于包含f…
|
H A D | web-page-loading-with-web-components.md | 4 页面加载是Web组件的基本功能。根据页面加载数据来源可以分为三种常用场景,包括加载网络页面、加载本地页面、加载HTML格式的富文本数据。 212 ## 加载HTML格式的文本数据 214 Web组件可以通过[loadData()](../reference/apis-arkweb/js-apis-webview.md#loaddata)接口实现加载HTML格式的文本数据。当开发者不需… 231 // 点击按钮时,通过loadData,加载HTML格式的文本数据 248 Web组件可以通过data url方式直接加载HTML字符串。
|
/ohos5.0/docs/en/application-dev/web/ |
H A D | web-app-page-data-channel.md | 22 @State sendFromEts: string = 'Send this message from ets to HTML'; 23 @State receivedFromHtml: string = 'Display received message send from HTML'; 27 // Display the content received from the HTML side. 29 // Send the content in the text box to the HTML side. 30 TextInput({ placeholder: 'Send this message from ets to HTML' }) 43 let msg = 'Got msg from HTML:'; 59 …// 3. Send the other message port (for example, port 0) to the HTML side, which then saves the mes… 66 …e port on the application to send messages to the message port that has been sent to the HTML side. 99 <input id="msgFromJS" type="text" value="send this message from HTML to ets"/><br/>
|
H A D | web-page-loading-with-web-components.md | 4 … three types: loading of network pages, loading of local pages, and loading of HTML rich text data. 61 To reference a local CSS file when loading a local HTML file, perform the following steps: 199 HTML file to be loaded: 212 ## Loading HTML Rich Text Data 214 … HTML rich text data. If you need to display only some page fragments, you can use this feature to… 231 // Upon button clicking, call loadData to load HTML rich text data. 248 The **Web** component can load HTML strings using data urls.
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkweb/ |
H A D | _ark_web___web_message_port_a_p_i.md | 21 …r \*webTag, const [ArkWeb_WebMessagePtr](_web.md#arkweb_webmessageptr) webMessage) | 发送消息到HTML。 | 23 …r](_web.md#arkweb_onmessageeventhandler) messageEventHandler, void \*userData) | 设置接收HTML消息的回调。 | 53 发送消息到HTML。 75 设置接收HTML消息的回调。
|
H A D | _ark_web___controller_a_p_i.md | 28 …_webmessageportptr) \*webMessagePorts, size_t [size](#size), const char \*url) | 将端口发送到HTML主页面. | 106 将端口发送到HTML主页面. 113 | name | 发送给HTML的消息名称。 |
|
/ohos5.0/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/test/unittest/ |
H A D | html_test.cpp | 66 EXPECT_NE(html.dataType_, HTML); 83 EXPECT_NE(html.dataType_, HTML); 100 EXPECT_NE(html.dataType_, HTML); 117 EXPECT_EQ(html.dataType_, HTML);
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-basic-components-richtext.md | 3 The **RichText** component parses and displays HTML text. 7 …The **RichText** component is suitable for loading and displaying segments of HTML strings in scen… 9 …b** component to provide basic capabilities, including but not limited to HTML page parsing and re… 11 … If the width of the **RichText** component is lower than this value, the HTML inside the content … 19 … there is a need for extensive customization of the display effect of the HTML string. For example… 43 | content | string | Yes | String in HTML format.| 72 | \<h1>--\<h6> | Defines six levels of headings in the HTML document. \<h1> defines the most import… 75 …rom 1 to 7, with the default value being **3**. This tag is deprecated in HTML 4.01 and not suppor… 76 | \<hr/> | Defines a thematic break (such as a shift of topic) on an HTML page and creates a horizo… 81 | \<style>\</style> | Used to embed CSS within an HTML document.| \<style>h1{color:red;}p{color:blu…
|
/ohos5.0/docs/en/application-dev/reference/apis-arkweb/ |
H A D | _ark_web___web_message_port_a_p_i.md | 21 …b_webmessageptr) webMessage) | Pointer to the function used to send the message to the HTML page. | 23 …eEventHandler, void \*userData) | Pointer to the callback used to set the HTML messages received. | 53 Pointer to the function used to send the message to the HTML page. 75 Pointer to the callback used to set the HTML messages received.
|
/ohos5.0/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/data/ |
H A D | html.cpp | 22 SetType(HTML); in Html() 30 SetType(HTML); in Html() 37 SetType(HTML); in Html()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkdata/ |
H A D | js-apis-data-uniformDataStruct.md | 79 ## HTML section 81 Represents data of the HTML type. 88 | htmlContent | string | No | No | Content in HTML format. | 89 | plainContent | string | No | Yes | Plaintext without HTML tags. This parameter is optional. By … 90 …perties of the HTML content. Both the key and value of the object are of the string type. <br/>Exa… 99 let htmlObj : uniformDataStruct.HTML = {
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/test/src/ |
H A D | paste_data_record_test.cpp | 96 auto utdId = UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::HTML); in AddHtmlUdsEntry() 140 if (entry->GetUtdId() == UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::HTML)) { in CheckEntries() 185 ASSERT_EQ(*typeValue, UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::HTML)); in CheckHtmlUds() 240 inputTypes.emplace_back(UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::HTML)); 244 ASSERT_EQ(validTypes[0], UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::HTML)); 272 inputTypes.emplace_back(UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::HTML)); 284 … auto it = std::find(types.begin(), types.end(), UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDMF::HTML));
|
/ohos5.0/docs/zh-cn/application-dev/faqs/ |
H A D | faqs-arkui-web.md | 127 ## onInterceptRequest拦截URL并自定义HTML文件,页面加载失败(API 9) 131 onInterceptRequest拦截页面Web的src的链接后返回自定义HTML,但是自定义HTML文件里面的script标签里的内容没有加载。 135 设置拦截器时,如果只设置setResponseData,内核将无法识别到这是个HTML文件,需要同时设置setResponseEncoding、setResponseMimeType、setResp… 164 ## 如何在ArkTS代码中执行HTML内的JS函数(API 9) 264 ## 如何解决Web组件加载的HTML页面内检测网络状态失败(API 9) 268 在HTML页面内通过window.navigator.onLine获取网络状态,联网和断网情况下均为false。
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkdata/ |
H A D | js-apis-data-uniformDataStruct.md | 79 ## HTML section 81 HTML类型数据,用于描述超文本标记语言数据。 90 | details | Record<string, string> | 否 | 是 | 是一个字典类型对象,key和value都是string类型,用于描述HTML的详细属性内容。例如,可… 99 let htmlObj : uniformDataStruct.HTML = {
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.10.3/ |
H A D | changelogs-distributeddatamgr.md | 21 | HTML | 'Text.HTML' | 富文本类型。 | 43 | HTML | 'general.html' | 富文本类型。 |
|
/ohos5.0/build/lite/ndk/doc/config/ |
H A D | Doxyfile_C | 1012 # Configuration options related to the HTML output 1029 # generated HTML page (for example: .htm, .php, .asp). 1207 # The HTML Help Workshop contains a compiler that can convert all HTML output 1208 # generated by doxygen into a single compiled HTML file (.chm). Compiled HTML 1213 # compressed HTML files. 1264 # (.qch) of the generated HTML documentation. 1272 # the HTML output folder. 1410 # the HTML output directory before the changes have effect. 1432 # The default value is: HTML-CSS. 1435 MATHJAX_FORMAT = HTML-CSS [all …]
|
H A D | Doxyfile_CPP | 1012 # Configuration options related to the HTML output 1029 # generated HTML page (for example: .htm, .php, .asp). 1207 # The HTML Help Workshop contains a compiler that can convert all HTML output 1208 # generated by doxygen into a single compiled HTML file (.chm). Compiled HTML 1213 # compressed HTML files. 1264 # (.qch) of the generated HTML documentation. 1272 # the HTML output folder. 1410 # the HTML output directory before the changes have effect. 1432 # The default value is: HTML-CSS. 1435 MATHJAX_FORMAT = HTML-CSS [all …]
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/innerkits/src/ |
H A D | paste_data_entry.cpp | 216 if (GetUtdId() != UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDType::HTML)) { in ConvertToHtml() 361 case UDType::HTML: in Convert() 385 if (utdId == UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDType::HTML)) { in Convert2MimeType() 413 return UDMF::UtdUtils::GetUtdIdFromUtdEnum(UDType::HTML); in Convert2UtdId() 436 return UDMF::HTML; in Convert()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-basic-services-kit/ |
H A D | js-apis-pasteboard.md | 3 本模块主要提供管理系统剪贴板的能力,为系统复制、粘贴功能提供支持。系统剪贴板支持对文本、HTML、URI、Want、PixelMap等内容的操作。 223 构建一个HTML剪贴板内容对象。 234 | htmlText | string | 是 | HTML内容。 | 345 创建一条HTML内容的条目。 356 | htmlText | string | 是 | HTML内容。 | 362 | [PasteDataRecord](#pastedatarecord7) | 一条新建的HTML内容条目。 | 485 对于剪贴板中内容记录的抽象定义,称之为条目。剪贴板内容部分由一个或者多个条目构成,例如一条文本内容、一份HTML、一个URI或者一个Want。 495 | htmlText<sup>7+</sup> | string | 是 | 否 | HTML内容。 | 759 获取首个条目的HTML内容。 769 | string | HTML内容。 | [all …]
|
/ohos5.0/docs/en/application-dev/faqs/ |
H A D | faqs-arkui-web.md | 131 …specified by **src** and returns the custom HTML file. However, the content in the **script** tag … 135 …HTML file. You must also set parameters such as **setResponseEncoding**, **setResponseMimeType**, … 164 ## How do I execute JS functions in HTML in ArkTS code? (API version 9) 182 1. Prepare an HTML file. Below is the sample code: 264 ## What should I do if the network status fails to be detected on the loaded HTML page? (API versio… 268 When **window.navigator.onLine** is used on the HTML page to obtain the network status, the value i…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v4.0-beta2/ |
H A D | js-apidiff-distributed-data.md | 27 |删除|类名:UnifiedDataType;<br>方法or属性:HTML = 'Text.HTML'|NA|@ohos.data.UDMF.d.ts| 50 |删除|类名:HTML;<br>方法or属性:htmlContent: string;|NA|@ohos.data.UDMF.d.ts| 51 |删除|类名:HTML;<br>方法or属性:plainContent?: string;|NA|@ohos.data.UDMF.d.ts| 108 |新增|NA|类名:HTML;<br>方法or属性:htmlContent: string;|@ohos.data.unifiedDataChannel.d.ts| 109 |新增|NA|类名:HTML;<br>方法or属性:plainContent?: string;|@ohos.data.unifiedDataChannel.d.ts| 134 |新增|NA|类名:UniformDataType;<br>方法or属性:HTML = 'general.html'|@ohos.data.uniformTypeDescriptor.d.ts|
|
/ohos5.0/docs/zh-cn/application-dev/basic-services/pasteboard/ |
H A D | use_pasteboard_to_copy_and_paste.md | 16 剪贴板支持使用基础数据类型进行复制粘贴,当前支持的基础数据类型有文本、HTML、URI、Want、PixelMap。JS接口与NDK接口支持数据类型不完全一致,使用时须匹配接口支持类型。 81 剪贴板支持使用基础数据类型进行复制粘贴,当前支持的基础数据类型有文本、HTML。JS接口与NDK接口支持数据类型不完全一致,使用时须匹配接口支持类型。
|