Skip to content

Commit

Permalink
increased version number to a new minor release
Browse files Browse the repository at this point in the history
  • Loading branch information
Elius94 committed Nov 23, 2022
1 parent 04e49e9 commit 87f25e6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ The button is a control widget that basically do the previous example for you in
<li>&quot;relese&quot; when the user cancel</li>
</ul>

**Example**
```js
new Button("btnRun", "Run me!", 10, 3, 21, 18,
{
Expand All @@ -369,6 +368,32 @@ new Button("btnRun", "Run me!", 10, 3, 21, 18,
})
```

### Progress (since 1.3.0) [New!](docs/ProgressBar.md)
This is a control widget that is used to draw a customizable progress bar.
It can also be used as interactive control (slider) by setting the `interactive` option to `true`.

```js
const p2Style = {
background: "bgBlack",
borderColor: "yellow",
color: "magenta",
boxed: true,
showTitle: true,
showValue: true,
showPercentage: true,
showMinMax: true,
}
const p2 = new Progress("prog3", 25, 2, 3, 31, p2Style, "precision", "horizontal", true)
p2.setText("Interactive")
p2.on("valueChanged", (value) => {
console.log(`Value changed: ${value}`)
})
```


**Example**
<p><img src="https://user-images.githubusercontent.com/14907987/203607512-6ce3656c-7ffb-4185-b36e-6c10619b2b6e.gif" alt="Progress_Interactive"></p>

In the next versions of the library, more control widgets will be added as Control extensions.

## Popup widgets
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "console-gui-tools",
"version": "1.2.1",
"version": "1.3.0",
"description": "A simple library to draw option menu, text popup or other widgets and layout on a Node.js console.",
"main": "dist/ConsoleGui.js",
"typings": "dist/ConsoleGui.d.ts",
Expand Down

0 comments on commit 87f25e6

Please sign in to comment.