Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Support.HtmlBuilder.Attributes Method

Returns a string of formatted attributes given a dictionary of attributes.

Class: YetaWF.Core.Support.HtmlBuilder
Namespace: YetaWF.Core.Support
Assembly: YetaWF.Core

Syntax

public static string Attributes( IDictionary<string,object?>? attributes );

Parameters

attributes

The dictionary of HTML attributes to format.

Return Value

Returns all formatted attributes (with leading space). If no attributes are defined, an empty string is returned. Attributes with name "id" or "class" are never generated.

Remarks

Adds a leading space to the resulting string if attributes are available.

See Also YetaWF.Core.Support.HtmlBuilder ClassYetaWF.Core Overview