Nucleus .Net Core CMS

HtmlHelpers.UserProfileSettingsControlHtmlHelper Class

Namespace: Nucleus.ViewFeatures.HtmlHelpers
Assembly: Nucleus.ViewFeatures.dll
Html helper for rendering user profile settings controls.
BuildControl<TModel> (IHtmlHelper<TModel, TModel> value, UserProfileValue list, List htmlAttributes)
Builds the control for the user profile value based on its data type and other properties.
Type Parameters
TModel
Parameters
Name Type
html Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel>
expression System.Linq.Expressions.Expression<TModel>
value String>>
list Nucleus.Abstractions.Models.UserProfileValue
htmlAttributes Nucleus.Abstractions.Models.List
GetIdExpression<TModel, TProperty> (Expression<TModel> expression)
Returns an expression that retrieves the Id of the UserProfileProperty.
Type Parameters
TModel
TProperty
Parameters
Name Type
expression System.Linq.Expressions.Expression<TModel>
GetValueExpression<TModel, TProperty> (Expression<TModel> expression)
Returns an expression that retrieves the Value of the UserProfileValue.
Type Parameters
TModel
TProperty
Parameters
Name Type
expression System.Linq.Expressions.Expression<TModel>
MergeAttributes (Object htmlAttributes, String parameters)
Merges the passed-in HTML attributes with the generated parameters for the user profile property control.
Parameters
Name Type
htmlAttributes Object
parameters System.Collections.Generic.Dictionary<System.String
Remarks
Passed-in htmlAttributes take precedence except for CLASS which is concatenated if present in both.
PrepareParameters (UserProfileProperty property)
Create attributes for input controls for user profile properties based on profile property settings.
Parameters
Name Type
property Nucleus.Abstractions.Models.UserProfileProperty
UserProfileSettingsControl<T0, T1> (IHtmlHelper<T0, T0, T1> list, List renderMode, RenderModes htmlAttributes)
Creates a user profile settings control for a given user profile value, with specified render mode and HTML attributes.
Parameters
Name Type
html Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<T0>
expression System.Linq.Expressions.Expression<T0>
list <T1>
renderMode Nucleus.Abstractions.Models.List
htmlAttributes Nucleus.ViewFeatures.TagHelpers.SettingsControlTagHelper.RenderModes