Class ItemFieldViewModel
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
ItemFieldViewModel represents the rendering context used when an item field is rendered.
- Inheritance
-
Item
Field View Model
- Inherited Members
Constructors
ItemFieldViewModel(Func<object?>)
Initializes a new instance of the Item
Parameters
Properties
Name
Gets or sets the name.
Property Value
- string
The name.
SystemName
Gets or sets the system name.
Property Value
- string
The system name.
Value
Property Value
Methods
GetBoolean()
Gets the boolean.
Returns
- bool
true
orfalse
, which reflects the value stored in the field.
GetButton()
Gets the button.
Returns
GetColor()
Gets the color.
Returns
- Color
View Model ColorViewModel
GetDateTime()
Gets the date time.
Returns
- Date
Time System.DateTime.
GetDecimal()
Gets the decimal.
Returns
- decimal
System.Decimal.
GetDouble()
Gets the double.
Returns
- double
System.Double.
GetFile()
Gets the file.
Returns
- File
View Model FileViewModel.
GetFiles()
Gets the files.
Returns
- IList<File
View >Model IList(Of FileViewModel).
GetGeolocation()
Gets the geolocation.
Returns
- Geolocation
View Model GeolocationViewModel.
GetGoogleFont()
Gets the Google font.
Returns
- Google
Font View Model GoogleFontViewModel
GetInt32()
Gets the int32.
Returns
- int
System.Int32.
GetInt64()
Gets the int64.
Returns
- long
System.Int64.
GetItem()
Gets the item.
Returns
- Item
View Model ItemViewModel.
GetItems()
Gets the items.
Returns
- IList<Item
View >Model IList(Of ItemViewModel).
GetLink()
Gets the link.
Returns
GetList()
Gets the listViewModel.
Returns
- List
View Model ListViewModel
GetRawValue()
Gets the raw unmodified value from the database without any parsing
Returns
- object
An object of the values underlying database type. Int, String, Boolean etc. Never another viewmodel or object
GetRawValueString()
Gets the raw unmodified value from the database without any parsing but converted to string
Returns
- string
A string of the underlying raw value.
GetString()
Gets the string.
Returns
- string
System.String.
GetUser()
Gets the user
Returns
GetUserGroup()
Gets the user group.
Returns
GetUserGroups()
Gets the user groups.
Returns
- IList<User
Group >View Model A collection of User
Group .View Model
GetUsers()
Gets the users.
Returns
- IList<User
View >Model A collection of User
View .Model
GetValue()
Gets the value.
Returns
- object
System.Object.
GetValue<T>()
Gets the value.
Returns
- T
T.
Type Parameters
T
GetVideo()
Gets the video.