-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement IsDisabled parameter for RadioGroupOption
- Loading branch information
1 parent
5d025ad
commit 3faad53
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ public class ComponentEvent : IComponentEvent, IDisposable | |
{ | ||
private readonly CancellationTokenSource _cancellationTokenSource = new(); | ||
|
||
//TODO rename to IsDefaultPrevented | ||
Check warning on line 7 in packages/Ignis.Components/ComponentEvent.cs GitHub Actions / Test
Check warning on line 7 in packages/Ignis.Components/ComponentEvent.cs GitHub Actions / Test
Check warning on line 7 in packages/Ignis.Components/ComponentEvent.cs GitHub Actions / Test
|
||
public bool DefaultPrevented => this._cancellationTokenSource.IsCancellationRequested; | ||
|
||
public void PreventDefault() | ||
|
5 changes: 4 additions & 1 deletion
5
packages/Tailwind/Ignis.Components.HeadlessUI/Aria/IAriaDisabled.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
namespace Ignis.Components.HeadlessUI.Aria; | ||
|
||
/// <summary> | ||
/// A component part which can be disabled. | ||
/// A component which can be disabled. | ||
/// </summary> | ||
public interface IAriaDisabled | ||
{ | ||
/// <summary> | ||
/// Whether the component is disabled. | ||
/// </summary> | ||
bool IsDisabled { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters