C# 클래스 Skybrud.Umbraco.GridData.GridDataModel

Class representing the value/model saved by an Umbraco Grid property.
상속: Skybrud.Umbraco.GridData.Json.GridJsonObject
파일 보기 프로젝트 열기: skybrud/Skybrud.Umbraco.GridData 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GridDataModel System
Parse GridDataModel

공개 메소드들

메소드 설명
Deserialize ( string json ) : GridDataModel

Deserializes the specified JSON string into an instance of GridDataModel.

Deserialize ( string json, string propertyTypeAlias ) : GridDataModel

Deserializes the specified JSON string into an instance of GridDataModel.

GetAllControls ( ) : GridControl[]

Gets an array of all nested controls.

GetAllControls ( bool>.Func predicate ) : GridControl[]

Gets an array of all nested controls matching the specified predicate.

GetAllControls ( string alias ) : GridControl[]

Gets an array of all nested controls with the specified editor alias.

GetEmptyModel ( ) : GridDataModel

Gets an empty (and invalid) model. This method can be used to get a fallback value for when an actual Grid model isn't available.

GetEmptyModel ( string propertyTypeAlias ) : GridDataModel

Gets an empty (and invalid) model. This method can be used to get a fallback value for when an actual Grid model isn't available.

GetHtml ( HtmlHelper helper ) : System.Web.HtmlString

Generates the HTML for the Grid model.

GetHtml ( HtmlHelper helper, string framework ) : System.Web.HtmlString

Generates the HTML for the Grid model.

비공개 메소드들

메소드 설명
GridDataModel ( Newtonsoft.Json.Linq.JObject obj ) : System
Parse ( Newtonsoft.Json.Linq.JObject obj ) : GridDataModel

메소드 상세

Deserialize() 공개 정적인 메소드

Deserializes the specified JSON string into an instance of GridDataModel.
public static Deserialize ( string json ) : GridDataModel
json string The JSON string to be deserialized.
리턴 GridDataModel

Deserialize() 공개 정적인 메소드

Deserializes the specified JSON string into an instance of GridDataModel.
public static Deserialize ( string json, string propertyTypeAlias ) : GridDataModel
json string The JSON string to be deserialized.
propertyTypeAlias string The alias of the property the Grid model is representing.
리턴 GridDataModel

GetAllControls() 공개 메소드

Gets an array of all nested controls.
public GetAllControls ( ) : GridControl[]
리턴 GridControl[]

GetAllControls() 공개 메소드

Gets an array of all nested controls matching the specified predicate.
public GetAllControls ( bool>.Func predicate ) : GridControl[]
predicate bool>.Func The predicate (callback function) used for comparison.
리턴 GridControl[]

GetAllControls() 공개 메소드

Gets an array of all nested controls with the specified editor alias.
public GetAllControls ( string alias ) : GridControl[]
alias string The editor alias of controls to be returned.
리턴 GridControl[]

GetEmptyModel() 공개 정적인 메소드

Gets an empty (and invalid) model. This method can be used to get a fallback value for when an actual Grid model isn't available.
public static GetEmptyModel ( ) : GridDataModel
리턴 GridDataModel

GetEmptyModel() 공개 정적인 메소드

Gets an empty (and invalid) model. This method can be used to get a fallback value for when an actual Grid model isn't available.
public static GetEmptyModel ( string propertyTypeAlias ) : GridDataModel
propertyTypeAlias string The alias of the property the Grid model is representing.
리턴 GridDataModel

GetHtml() 공개 메소드

Generates the HTML for the Grid model.
public GetHtml ( HtmlHelper helper ) : System.Web.HtmlString
helper HtmlHelper The HTML helper used for rendering the Grid.
리턴 System.Web.HtmlString

GetHtml() 공개 메소드

Generates the HTML for the Grid model.
public GetHtml ( HtmlHelper helper, string framework ) : System.Web.HtmlString
helper HtmlHelper The HTML helper used for rendering the Grid.
framework string The framework used to render the Grid.
리턴 System.Web.HtmlString