mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-20 02:32:50 +08:00
fixed panel/table copypasta
This commit is contained in:
parent
55c3f3b7a8
commit
a9b97fa4dc
@ -12,7 +12,7 @@ The `Panel` widget can be used to organize text into a rendered box.
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
To render a table, create a `Table` instance, passing a string to its constructor to assign the contents.
|
To render a panel, create a `Panel` instance, passing a string to its constructor to assign the contents.
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
var panel = new Panel("Hello World");
|
var panel = new Panel("Hello World");
|
||||||
@ -58,4 +58,4 @@ is long in length may get truncated with certain content.
|
|||||||
```csharp
|
```csharp
|
||||||
// Sets the expand property
|
// Sets the expand property
|
||||||
panel.Expand = true;
|
panel.Expand = true;
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user