Sakura.AspNetCore.Extensions/Sakura.AspNetCore.Mvc.PagedList/Internal/BootstrapPagerHtmlGenerator.cs
/// <summary>
///     Append additional HTML attributes according to the setting.
/// </summary>
/// <param name="tag">The tag to appending attributes.</param>
/// <param name="settingDictionary">The dictionary which store all the settings.</param>
/// <param name="attributePrefix">
///     The perfix for attributes used to search valid attributes in
///     <paramref name="settingDictionary" />.
/// </param>
Append additional HTML attributes according to the setting.
Append additional HTML attributes according to the setting .
private static void AppendAdditionalAttributes(TagBuilder tag, IDictionary<string, string> settingDictionary,
			string attributePrefix)
		{
			foreach (var i in settingDictionary)
				if (i.Key.StartsWith(attributePrefix))
					tag.Attributes[i.Key.Substring(attributePrefix.Length)] = i.Value;
		}
private static void AppendAdditionalAttributes ( TagBuilder tag , IDictionary < string , string > settingDictionary , string attributePrefix ) { foreach ( var i in settingDictionary ) if ( i . Key . StartsWith ( attributePrefix ) ) tag . Attributes [ i . Key . Substring ( attributePrefix . Length ) ] = i . Value ; }
Append additional HTML attributes according to the setting.
Append additional HTML attributes according to the setting .
tag
TagBuilder
The tag to appending attributes.
The tag to appending attributes .
settingDictionary
IDictionary<string, string>
The dictionary which store all the settings.
The dictionary which store all the settings .
attributePrefix
string
The perfix for attributes used to search valid attributes in
.
The perfix for attributes used to search valid attributes in .