# Style

The style property defines the style with which the widget or the cells of a widget are displayed.

#### Syntax

To retrieve the style of another widget, the standard widget reference syntax is used within the Style formula:

<mark style="color:blue;">#widgetName</mark>

or (if the widget is on another page):

<mark style="color:blue;">#pageName.widgetName</mark>

#### Remarks

* For table and chart widgets, the style is not applied to the widget, but to its cells or chart elements.
* The following formats are supported by the style property:
  * Background color
  * Border color, size and position
  * Font color, size, type and style
  * Vertical and horizontal alignment

#### Examples

**Example 1**

The left button "My Button" retrieves its style from the right button "buttonStyle". If the style of the right button changes, the style of the left button is changed as well.

<div align="left"><figure><img src="/files/NIiBXKUXJ6N2BpTdOj16" alt=""><figcaption></figcaption></figure></div>

**Example 2**

If the content of the left cell is "available", it uses the style of the widget with name "availableStyle". If not, the style of the reservedStyle widget is used.

<div align="left"><figure><img src="/files/qYC9OYJKINh7Hz7q01jg" alt=""><figcaption></figcaption></figure></div>

**Example 3**

In this table widget, the cells with negative numbers are displayed with the style of the "negative" cell widget, and the cells with positive numbers are displayed in the style of the "positive" cell widget.

<div align="left"><figure><img src="/files/GHKdbaZhCdiwM2IxpgaU" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nedyx.com/nedyx/clearlines-functions/general-aspects/calculated-widget-properties/style.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
