HTML Article
Check out the standard help for an overview of the html article.
API Examples
// Internally the component is known as "html_article"
var html_articleComponent1 = findComponent("My Page", "html_article", "MyHtmlArticle"); // To retrieve a html_article component called "MyHtmlArticle" on a page called "My Page"
var html_articleComponent2 = findComponentInForeground("My Foreground", "html_article", "MyHtmlArticle"); // To retrieve a html_article component in the foreground.
var html_articleComponent3 = createComponent(parentComponent, "html_article", 0, 0, 100, 100); // to create a html_article component inside a custom component.
// Retrieving a property
var textOnHtmlArticle = getProperty(html_articleComponent1, "text");
console.log(textOnHtmlArticle);
// Setting a property
var htmlValue = 'hello world
‘ setProperty(html_articleComponent1, “text”, htmlValue);
Properties
See the shared property list for all properties available for this component.
| Property | Type | Description |
|---|---|---|
| text | string | The text of the component |
| filename | string | |
| html | ||
| text_height | Read Only. | |
| native_height | Read Only. |
Events
See the shared event list for all events available for this component.
| Event | Params | Description |
|---|---|---|
| on_html_url_clicked | URL: string | |
| on_complete | Called when component load completed |