Skip to content

IRecipeBookWidget ​

com.jsmacrosce.jsmacros.client.access.IRecipeBookWidget

Accesses recipe-book state on a focused screen component.

js
const screen = Hud.getOpenScreen();  
if (screen) {
 if (typeof screen.getFocused === "function") {
   const widget = screen.getFocused();  
   if (widget) {
     if (typeof widget.jsmacros_isSearching === "function") {
       Chat.log(widget.jsmacros_isSearching());  
     }
   }
 }
}

Methods ​

jsmacros_getRecipeBook ​

jsmacros_getRecipeBook(): ClientRecipeBook#
Returns the client recipe book stored by the component.
Returns: the same raw client recipe book, or null before component initialization

jsmacros_getResults ​

jsmacros_getResults(): RecipeBookPage#
Returns the component's stored results page, not a list of recipes.
Returns: the same raw recipe-book page held by the component

jsmacros_isSearching ​

jsmacros_isSearching(): boolean#
Reports the component's transient text-input suppression state, not search focus or query contents.
Returns: true while the component's text-input suppression flag is set; false otherwise