# 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 {#com.jsmacrosce.jsmacros.client.access.IRecipeBookWidget_jsmacros_getRecipeBook-}

```js
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 {#com.jsmacrosce.jsmacros.client.access.IRecipeBookWidget_jsmacros_getResults-}

```js
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 {#com.jsmacrosce.jsmacros.client.access.IRecipeBookWidget_jsmacros_isSearching-}

```js
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
