Add Disabled property to ActionLink
This commit is contained in:
		| @ -4,7 +4,14 @@ | ||||
|  | ||||
| @if (authorized) | ||||
| { | ||||
|     <NavLink class="@classname" href="@url" style="@style">@text</NavLink> | ||||
|     if (Disabled) | ||||
|     { | ||||
|         <NavLink class="@classname" href="@url" style="@style" disabled>@text</NavLink> | ||||
|     } | ||||
|     else | ||||
|     { | ||||
|         <NavLink class="@classname" href="@url" style="@style">@text</NavLink> | ||||
|     } | ||||
| } | ||||
|  | ||||
| @code { | ||||
| @ -26,6 +33,9 @@ | ||||
|     [Parameter] | ||||
|     public string Style { get; set; } // optional | ||||
|  | ||||
| 	[Parameter] | ||||
| 	public bool Disabled { get; set; } // optional | ||||
| 	 | ||||
|     [Parameter] | ||||
|     public string EditMode { get; set; } // optional - specifies if a user must be in edit mode to see the action - default is true | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Hisham Bin Ateya
					Hisham Bin Ateya