API Reference
Module: HTMLToRoblox.HtmlParser
Functions
HtmlParser.parseAttributes
(attrString: string): table
Converts an HTML attribute string into a table with key-value pairs.
HtmlParser.parse
(html: string): table
Converts an HTML string into a node tree, represented as a table.
Module: HTMLToRoblox.CssParserFunctionsCssParser.parse
(cssText: string): table
Converts a CSS string into a table mapping selectors to styles.
Module: HTMLToRoblox.GuiBuilderFunctionsGuiBuilder.reconstructHtml
(node: table): string
Converts a node tree back into HTML.
GuiBuilder.build
(parent: Instance, node: table, cssTables: table)
Creates Roblox GUI elements from a HTML/CSS parsed node tree.
GuiBuilder.buildChild
(parent: Instance, child: table|string, order: number, cssTables: table)
Builds a child GUI element from a node or string.
Sub-module: HTMLToRoblox.GuiBuilder.ComponentRegistryFunctionsComponentRegistry.parseColor
(colorString: string): Color3
Converts a CSS color string to a Color3 object.
ComponentRegistry.parseSize
(sizeString: string): number?
Converts a CSS size string to a number.
ComponentRegistry.create
(tag: string, props: table, baseCssStyles: table, hoverCssStyles: table, activeCssStyles: table): Instance?
Creates a Roblox GUI component from HTML tag and style.
Table:ComponentRegistry.registry
Associates HTML tag names with GUI creation details, styles, and transitions.
Sub-module: HTMLToRoblox.GuiBuilder.JSEngineFunctionsJSEngine.register
(id: string, gui: Instance)
Associates a GUI instance with an ID.
JSEngine.getGui
(id: string): Instance?
Retrieves a GUI instance via ID.
JSEngine.execute
(jsCode: string)
Runs JS-like code through the JSTranspiler.
JSEngine.evaluateExpression
(expr: string): any
Evaluates a JS-like string or number expression.
JSEngine.setInnerText
(id: string, content: string)
Updates text of a GUI element via ID.
JSEngine.setInnerHTML
(id: string, content: string)
Updates the inner content of a GUI element by ID.
JSEngine.setValue
(id: string, content: string)
Updates the value of a TextBox via ID.
JSEngine.navigateTo
(href: string)
Simulates a URL navigation (displays a warning).
JSEngine.historyBack
Simulates a browser's back action (removes GUI).
Sub-module: HTMLToRoblox.GuiBuilder.JSEngine.JSTranspilerFunctionsJSTranspiler.transpile
(js: string): string
Converts JS-like code to LuaU.
JSTranspiler.executeDirectly
(jsCode: string, JSEngine: table): any
Directly runs transpiled JS, affecting the JSEngine's state.
Last updated