📱
HTML Widget
  • HTML Widget
  • Getting Started
    • Regular Use
    • Module Use
  • About
    • The Function
    • Types
  • Components
    • <widget>
    • <stack>
    • <spacer>
    • <img>
    • <text>
    • <date>
    • <style>
    • <!-- Comment -->
  • Add-ons
    • Add-ons
    • <symbol>
    • <hr>
    • <progress>
    • <blockquote>
  • Template
    • Templates
    • Mapping
    • Render
  • Examples
    • Hello, World!
    • Reddit Widget
  • Closing Remarks
    • Bug Fixes and Feedback
    • Support
Powered by GitBook
On this page
  1. About

The Function

How HTML Widget Works

PreviousModule UseNextTypes

Last updated 2 months ago

htmlWidget(input: String, debug: Boolean, addons: Object): Promise<ListWidget>

Provide the HTML string as the input parameter. The debug parameter is optional and when true logs the compiled code. The addon parameter is optional and allows for add-ons (see for more information). A promise is returned, meaning that you will need an await to access the returned widget.

let widget = await htmlWidget(`
<widget>
  <text>Hello, World!</text>
</widget>
`)
widget.presentSmall()
Add-ons