Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

38 linhas
812 B

  1. using Microsoft.AspNetCore.Components;
  2. namespace BootStrapComponents
  3. {
  4. public class BaseBootStrapComponent: ComponentBase
  5. {
  6. [Parameter]
  7. public TextAlignment TextAlignment { get; set; } = TextAlignment.None;
  8. [Parameter]
  9. public RenderFragment ChildContent { set; get; }
  10. public IEnumerable<string> AutoClass()
  11. {
  12. if (TextAlignment != TextAlignment.None) yield return "text-" + TextAlignment.ToString();
  13. yield return "";
  14. }
  15. [Parameter]
  16. public string AdditionalClass { set; get; }
  17. }
  18. public enum TextAlignment
  19. {
  20. None,
  21. left,
  22. center,
  23. right,
  24. justify
  25. }
  26. public enum BackColor
  27. {
  28. primary,
  29. info,
  30. danger,
  31. white,
  32. }
  33. }