Skip to content

Commit

Permalink
Document the new predefined edition behavior in tables (#1133)
Browse files Browse the repository at this point in the history
* Add and update docs for table and selector
* Mention Polars support
* Added doc for style parameter of Page classes
* Added dynamic styling example
* Release Notes update
* Added note on Lambdas as property values
* Enumerated classes as candidates for *lov*
  • Loading branch information
FabienLelaquais authored Oct 3, 2024
1 parent ad47760 commit b780309
Show file tree
Hide file tree
Showing 83 changed files with 1,673 additions and 480 deletions.
7 changes: 7 additions & 0 deletions docs/refmans/gui/viselements/generic/chart.md_template
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ The supported types for the [*data*](#p-data) property are:
- A list of dictionaries<br/>
The *data* is converted to a list of Pandas DataFrames.

!!! note "Polars data types support"
Taipy Enterprise edition provides native support for the
[`polars.LazyFrame`](https://docs.pola.rs/api/python/stable/reference/lazyframe/index.html),
[`polars.DataFrame`](https://docs.pola.rs/api/python/stable/reference/dataframe/index.html)
or [`polars.Series`](https://docs.pola.rs/api/python/stable/reference/series/index.html)
data types in the [*data*](#p-data) property.

## Indexed properties

Chart controls can hold several traces that may display different data sets.<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Here is what the resulting plot looks like:
<figcaption>Unbalanced data sets</figcaption>
</figure>

## Adding annotations {data-source="gui:doc/examples/charts/advanced-annotations.py"}
## Adding annotations {data-source="gui:doc/examples/charts/advanced_annotations.py"}

You can add text annotations on top of a chart using the *annotations* property of
the dictionary set to the [*layout*](../chart.md#p-layout) property of the chart
Expand Down Expand Up @@ -316,7 +316,7 @@ And here is what the resulting page looks like:
<figcaption>Data points selection</figcaption>
</figure>

## Using the Ploty Python library {data-source="gui:doc/examples/charts/advanced-python-lib.py"}
## Using the Ploty Python library {data-source="gui:doc/examples/charts/advanced_python_lib.py"}

The chart control of Taipy GUI lets you create graphs that can be more or less complex using
the control's properties. There are situations, though, when it would be more straightforward to
Expand Down
4 changes: 1 addition & 3 deletions docs/refmans/gui/viselements/generic/date.md_template
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ A control that can display and specify a formatted date, with or without time.
# Details

The [*format*](#p-format) property lets you indicate how to display the date object set to the
[*date*](#p-date) property. Note that the format is used only when [*editable*](#p-editable) is set
to False (the date control is read-only).<br/>
[*date*](#p-date) property.<br/>
This property can be set to a format string that is consumed by the
[date-fns.format()](https://date-fns.org/docs/format) function. The documentation for this
function provides all the different format strings you might need.<br/>
Expand Down Expand Up @@ -77,7 +76,6 @@ Then the date selector shows like this:

## Formatting the date

To format the date on the page, you must set the [*editable*](#p-editable) property to False.<br/>
Here is a definition of a read-only date selector control using the same *date* variable definition
as above:

Expand Down
2 changes: 1 addition & 1 deletion docs/refmans/gui/viselements/generic/dialog.md_template
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ name to select the dialogs on your page and apply style.
The default property, [*open*](#p-open), indicates whether the dialog is visible or not:
!!! taipy-element
default={show_dialog}
on_action={lambda s: s.assign("show_dialog", False)}
on_action=lambda s: s.assign("show_dialog", False)

With another action that would have previously shown the dialog with:

Expand Down
6 changes: 3 additions & 3 deletions docs/refmans/gui/viselements/generic/progress.md_template
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,18 @@ This is how the control now looks:
<figcaption>Linear progress indicator</figcaption>
</figure>

## Adding a title {data-source="gui:doc/examples/controls/progress-title.py"}
## Adding a title {data-source="gui:doc/examples/controls/progress-texts.py"}

The control can show the percentage as a numerical value by setting the
[*show_value*](#p-show_value) property to True.</br>
You can add a title to the control with the [*title*](#p-title) property. You can also specify the
location of the title, relative to the whole control, with the [*title*](#p-title-anchor) property.
location of the title, relative to the whole control, with the [*title*](#p-title_anchor) property.

With the same variable as above, this is the control definition of a progress indicator showing a
title above the gauge:
!!! taipy-element
value={value}
title=Loading...
title=Processing...
title_anchor=top
show_value:b=True

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b780309

Please sign in to comment.