abp icon indicating copy to clipboard operation
abp copied to clipboard

Adding public Visible parameter to the blazor EntityAction component

Open ilkayilknur opened this issue 5 years ago • 6 comments

It would be useful to add a public Visible property to control the visibility of the EntityAction. We also need to decide how this works with RequiredPolicy. In some scenarios, developers may need to show a disabled action instead of making it completely invisible. We also need to think about that and decide on it.

Suggestion: https://github.com/abpframework/abp/issues/6461

ilkayilknur avatar Dec 03 '20 11:12 ilkayilknur

If IsVisible scope comes back to public, maybe @hikalkan would want to not interfere with RequiredPolicy introduced here. This would probably not a basic {get; set;} anymore.

For Disabled, no problem. But note that I don't know how to name it : Disabled with is @stsrki Blazorise naming convention, or IsVisible which is yours. Maybe time to merge naming conventions among ABP Blazor properties (another issue)?

Stirda avatar Dec 03 '20 11:12 Stirda

@Stirda I removed Is prefixes from all my component parameters over a year ago. They were necessary long ago when Blazor didn't have good IntelliSense support. I have no plans to return prefixes at this stage.

stsrki avatar Dec 03 '20 11:12 stsrki

Anyone else would like to see of a IsDisabled-IsVisible duo for EntityAction? This issue sleeps in the backlog since half a year.

Stirda avatar May 03 '21 07:05 Stirda

@Stirda Why adding Disabled on EntityAction is a problem? Am I missing something here?

stsrki avatar May 03 '21 07:05 stsrki

No problem here. I would just be pleased to see it coming, maybe as the community :-)

Stirda avatar May 03 '21 07:05 Stirda

We added the Visible property in the 4.3 version. We don't have any plans for adding the Disable property right now. We can accept contributions for this.

ilkayilknur avatar May 03 '21 08:05 ilkayilknur