Extensions.Li Method

<< >>

Navigation:  CodeStencil > Custom Library > Class Library > Expansion Namespace > Extensions Class > Extensions Methods >

Extensions.Li Method

Create a list item(<li>) belonging to an unordered(<ul> or ordered list (<ol>)

Namespace: ZeraSystems.CodeNanite.Expansion

Assembly:  ZeraSystems.CodeNanite.Expansion (in ZeraSystems.CodeNanite.Expansion.dll)

Syntax


C#

public static string Li(
 string str,
 string attribute,
 string value,
 int indent
)

Parameters

str

Type: String

The string to apply this tag to

attribute

Type: String

The attribute of the list item. e.g. attribute can be "class"

value

Type: String

The value assigned to the attribute. e.g. value can be "dropdown dropdown-cols-2 nav-item"

indent

Type: Int32

The indentation. Default is 0

Return Value

System.String.

See Also


Extensions Class

ZeraSystems.CodeNanite.Expansion Namespace