Skip to content

nickyvadera/NV.UI.Bootstrap

Repository files navigation

NV.UI.Bootstrap

Initialise

  1. Add the package
dotnet add PROJECT package NV.UI.Bootstrap
  1. Add configuration settings appsettings.json
{
  "BootstrapSettings": {
    "ComponentStyles": {
    }
  },
}
  1. Add startup registration Startup.cs
public void ConfigureServices(IServiceCollection services)
{
  // Your configuration
  
  services.AddUIBootstrap(Configuration.GetSection(BootstrapSettingsOptions.BootstrapSettings));
}

Configure

You can change the default style of any component using the configuration in appsettings.json, for example appsettings.json

{
  "BootstrapSettings": {
    "ComponentStyles": {
      "Card": {
        "BorderWidth": "One",
        "BorderColour": "Light",
        "Shadow": "Small"
      },
      "Card-Header": {
        "BackgroundColour": "White"
      },
      "List-Group": {
        "Shadow": "Small"
      }
    }
  },
}

Use

For example:

<BootstrapSelect OnChangeCallback=HandleChange Value=@Value IsDirty=@IsDirty IsInvalid=@IsInvalid>
  <option></option>
  <option value=@value.Key>@value.Value</option>
</BootstrapSelect>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors