blazorbootstrap icon indicating copy to clipboard operation
blazorbootstrap copied to clipboard

Remove the internal modifier for BlazorBootstrapComponentBase to allow creating custom components using this wonderful core

Open yeifer-co opened this issue 2 months ago • 0 comments

Describe the bug I'm attempting to create my own components based on the core of the BlazorBootstrap library, but I don't have access to some properties of the BlazorBootstrapComponentBase class because they are marked as internal. I would like to use this core as I find it very well-made. I want to define my own components for scenarios not covered by the available components in the library. In case it's not possible to remove the internal modifier due to reasons beyond my understanding, please provide a method for creating new components based on this core.

To Reproduce

  1. Attempt to create a custom component extending BlazorBootstrapComponentBase.
  2. Notice the inability to access certain properties or methods due to their internal modifier.
  3. Encounter limitations in creating custom components based on the BlazorBootstrap library's core functionality.

Expected behavior I expect to be able to access all necessary properties and methods of the BlazorBootstrapComponentBase class to create custom components seamlessly.

Sample code Sample code to reproduce the issue.

@namespace BlazorBootstrap
@inherits BlazorBootstrapComponentBase

<MyCustomComponent implementation>
namespace BlazorBootstrap;

public partial class MyCustomComponent : BlazorBootstrapComponentBase
{
     protected override void BuildClasses() {
            // Cannot access to AddClass because it is internal
     }
}

yeifer-co avatar Apr 27 '24 20:04 yeifer-co