Gets or sets a list of custom style attributes to be applied to the control's DOM element.
Namespace: MindFusion.Diagramming.Blazor
Assembly: MindFusion.Diagramming.Blazor
SyntaxC#
Copy Code
|
|---|
public Dictionary<string, string> StyleAttributes { get; set; } |
Visual Basic
Copy Code
|
|---|
Public Property StyleAttributes As Dictionary(Of String, String) |
A Dictionary of CSS style attributes to add to palette's DOM element.
ExampleThe default size of the control is set to 100% width and height, depending on parent element for sizing. To override this, or to set any other style attributes for palette's main DOM element, add them to the dictionary:
C#
Copy Code
|
|---|
| <Palette @ref="palette" StyleAttributes="styles"/> ... protected override void OnInitialized() { base.OnInitialized(); styles.Add("width", "400px"); } |
See Also