Skip to content

Commit

Permalink
Renamed 'DisableChangeTooltip' to 'DisableToggleTooltip'
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Cerqueira committed Sep 15, 2023
1 parent fc38afe commit 3acefc5
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
## What's new in V4.0.5

- Added new global propety 'ExtraExceptionInfo' to write extra console exception info
- Added new global propety 'DisableChangeTooltip' to disable change initial ShowTooltip
- Added new global propety 'DisableToggleTooltip' to disable toggle Tooltip
- Added new global propety 'ShowOnlyExistingPagination' to disable Page information when pagination not exists
- Added new Method DisableChangeTooltip(bool value) to overwrite default DisableChangeTooltip in control
- Added new Method DisableToggleTooltip(bool value) to overwrite default DisableToggleTooltip in control
- Added new Method ShowOnlyExistingPagination(bool value) to overwrite default Overwrite default Show pagination only if exists in control
- Added new item to Enum FilterMode : 'Disabled'. This item disable filter feature in coletions
- Improved to not show text prompt when text value is null or empty
Expand Down
4 changes: 2 additions & 2 deletions Src/Controls/BaseOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal BaseOptions(StyleSchema styleSchema, ConfigControls config, IConsoleCon
OptHideAfterFinish = config.HideAfterFinish;
OptHideOnAbort = config.HideOnAbort;
OptEnabledAbortKey = config.EnabledAbortKey;
OptDisableChangeTooltip = config.DisableChangeTooltip;
OptDisableChangeTooltip = config.DisableToggleTooltip;
OptShowOnlyExistingPagination = config.ShowOnlyExistingPagination;
}

Expand Down Expand Up @@ -77,7 +77,7 @@ public IPromptConfig ShowOnlyExistingPagination(bool value)
}

/// <inheritdoc/>
public IPromptConfig DisableChangeTooltip(bool value)
public IPromptConfig DisableToggleTooltip(bool value)
{
OptDisableChangeTooltip = value;
return this;
Expand Down
4 changes: 2 additions & 2 deletions Src/Controls/ConfigControls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ public int CompletionMaxCount
public bool ShowTooltip { get; set; } = true;

/// <summary>
/// Get/Set Disable show Tooltip for all controls at startup.
/// Get/Set Disable toggle Tooltip for all controls at startup.
/// <br>Default value : false</br>
/// </summary>
public bool DisableChangeTooltip { get; set; }
public bool DisableToggleTooltip { get; set; }


/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions Src/Controls/IPromptConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ public interface IPromptConfig
IPromptConfig ShowOnlyExistingPagination(bool value);

/// <summary>
/// Overwrite default DisableChangeTooltip of control
/// Overwrite default DisableToggleTooltip of control
/// </summary>
/// <param name="value">value</param>
/// <returns><see cref="IPromptConfig"/></returns>
IPromptConfig DisableChangeTooltip(bool value);
IPromptConfig DisableToggleTooltip(bool value);

/// <summary>
/// Overwrite default Clear render area of control after finished
Expand Down
4 changes: 2 additions & 2 deletions Src/NugetREADME.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ PromptPlus **Supports 4/8/24-bit colors** in the terminal with auto-detection of
## What's new in V4.0.5

- Added new global propety 'ExtraExceptionInfo' to write extra console exception info
- Added new global propety 'DisableChangeTooltip' to disable change initial ShowTooltip
- Added new global propety 'DisableToggleTooltip' to disable toggle Tooltip
- Added new global propety 'ShowOnlyExistingPagination' to disable Page information when pagination not exists
- Added new Method DisableChangeTooltip(bool value) to overwrite default DisableChangeTooltip in control
- Added new Method DisableToggleTooltip(bool value) to overwrite default DisableToggleTooltip in control
- Added new Method ShowOnlyExistingPagination(bool value) to overwrite default Overwrite default Show pagination only if exists in control
- Added new item to Enum FilterMode : 'Disabled'. This item disable filter feature in coletions
- Improved to not show text prompt when text value is null or empty
Expand Down
4 changes: 2 additions & 2 deletions Src/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ PromptPlus was developed in C# with target frameworks:
*** What's new in V4.0.5 ***
----------------------------
- Added new global propety 'ExtraExceptionInfo' to write extra console exception info
- Added new global propety 'DisableChangeTooltip' to disable change initial ShowTooltip
- Added new global propety 'DisableToggleTooltip' to disable toggle Tooltip
- Added new global propety 'ShowOnlyExistingPagination' to disable Page information when pagination not exists
- Added new Method DisableChangeTooltip(bool value) to overwrite default DisableChangeTooltip in control
- Added new Method DisableToggleTooltip(bool value) to overwrite default DisableToggleTooltip in control
- Added new Method ShowOnlyExistingPagination(bool value) to overwrite default Overwrite default Show pagination only if exists in control
- Added new item to Enum FilterMode : 'Disabled'. This item disable filter feature in coletions
- Improved to not show text prompt when text value is null or empty
Expand Down
2 changes: 1 addition & 1 deletion Template/PromptPlusTemplate/MainAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public async ValueTask<int> Run()
.Config(cfg =>
{
cfg.ShowOnlyExistingPagination(false)
.DisableChangeTooltip(false)
.DisableToggleTooltip(false)
.ShowTooltip(true);
})
.AddItem("Opc1")
Expand Down
4 changes: 2 additions & 2 deletions Template/PromptPlusTemplate/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ private static void InitConfigPromptPlus()
//Note: Hide tooltips at statup for all controls. Default value : true
PromptPlus.Config.ShowTooltip = false;

//Note: Disabled change ShowTooltip. Default value : false
PromptPlus.Config.DisableChangeTooltip = true;
//Note: DisableToggle Tooltip. Default value : false
PromptPlus.Config.DisableToggleTooltip = true;

//Note: Show pagination only if exists. Default value : false
PromptPlus.Config.ShowOnlyExistingPagination = true;
Expand Down
4 changes: 2 additions & 2 deletions docs/apis/pplus.controls.baseoptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ public IPromptConfig Description(string value)

[IPromptConfig](./pplus.controls.ipromptconfig.md)

### <a id="methods-disablechangetooltip"/>**DisableChangeTooltip(Boolean)**
### <a id="methods-disabletoggletooltip"/>**DisableToggleTooltip(Boolean)**

```csharp
public IPromptConfig DisableChangeTooltip(bool value)
public IPromptConfig DisableToggleTooltip(bool value)
```

#### Parameters
Expand Down
6 changes: 3 additions & 3 deletions docs/apis/pplus.controls.configcontrols.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ public CultureInfo DefaultCulture { get; set; }

[CultureInfo](https://docs.microsoft.com/en-us/dotnet/api/system.globalization.cultureinfo)<br>
### <a id="properties-disablechangetooltip"/>**DisableChangeTooltip**
### <a id="properties-disabletoggletooltip"/>**DisableToggleTooltip**

Get/Set Disable show Tooltip for all controls at startup.
Get/Set Disable toggle Tooltip for all controls at startup.
<br>Default value : false

```csharp
public bool DisableChangeTooltip { get; set; }
public bool DisableToggleTooltip { get; set; }
```

#### Property Value
Expand Down
6 changes: 3 additions & 3 deletions docs/apis/pplus.controls.ipromptconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ Value description with style

[IPromptConfig](./pplus.controls.ipromptconfig.md)

### <a id="methods-disablechangetooltip"/>**DisableChangeTooltip(Boolean)**
### <a id="methods-disabletoggletooltip"/>**DisableToggleTooltip(Boolean)**

Overwrite default DisableChangeTooltip of control
Overwrite default DisableToggleTooltip of control

```csharp
IPromptConfig DisableChangeTooltip(bool value)
IPromptConfig DisableToggleTooltip(bool value)
```

#### Parameters
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
## What's new in V4.0.5

- Added new global propety 'ExtraExceptionInfo' to write extra console exception info
- Added new global propety 'DisableChangeTooltip' to disable change initial ShowTooltip
- Added new global propety 'DisableToggleTooltip' to disable toggle Tooltip
- Added new global propety 'ShowOnlyExistingPagination' to disable Page information when pagination not exists
- Added new Method DisableChangeTooltip(bool value) to overwrite default DisableChangeTooltip in control
- Added new Method DisableToggleTooltip(bool value) to overwrite default DisableToggleTooltip in control
- Added new Method ShowOnlyExistingPagination(bool value) to overwrite default Overwrite default Show pagination only if exists in control
- Added new item to Enum FilterMode : 'Disabled'. This item disable filter feature in coletions
- Improved to not show text prompt when text value is null or empty
Expand Down

0 comments on commit 3acefc5

Please sign in to comment.