Reformatted
This commit is contained in:
@@ -6,6 +6,10 @@ import java.util.Objects;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Event passed from host into Lua.
|
* Event passed from host into Lua.
|
||||||
|
*
|
||||||
|
* @param targetId The ID
|
||||||
|
* @param type ID
|
||||||
|
* @param data The data's
|
||||||
*/
|
*/
|
||||||
public record UiEvent(String targetId, String type, Map<String, Object> data) {
|
public record UiEvent(String targetId, String type, Map<String, Object> data) {
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public interface DomHost {
|
|||||||
String getTagName(String elementId);
|
String getTagName(String elementId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the text content of an element (used for inline <script>...).
|
* Returns the text content of an element
|
||||||
*
|
*
|
||||||
* @param elementId element id
|
* @param elementId element id
|
||||||
* @return text content (never null)
|
* @return text content (never null)
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ import java.util.Objects;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Bootstrap that:
|
* Bootstrap that:
|
||||||
* 1) Executes all Lua scripts found in DOM (<script type="lua"> and <script type="lua" src="...">)
|
* 1) Executes all Lua scripts found in DOM
|
||||||
* 2) Scans DOM for on:* handlers and binds them automatically.
|
* * 2) Scans DOM for on:* handlers and binds them automatically.
|
||||||
*/
|
*/
|
||||||
public final class LuaScriptBootstrap {
|
public final class LuaScriptBootstrap {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user