コード例 #1
0
 /// <summary>
 /// Makes a field editable via the Page Editor. Use the Model property as the target item, e.g. model =&gt; model.Title where Title is field name.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="model">The model.</param>
 /// <param name="field">The field.</param>
 /// <param name="standardOutput">The standard output.</param>
 /// <param name="parameters">The parameters.</param>
 /// <returns>System.String.</returns>
 public string Editable <T>(T model, Expression <Func <T, object> > field, Expression <Func <T, string> > standardOutput, AbstractParameters parameters)
 {
     return(UiUtilities.Editable(GlassHtml, model, field, standardOutput, parameters));
 }
コード例 #2
0
 /// <summary>
 /// Makes a field editable via the Page Editor. Use the Model property as the target item, e.g. model =&gt; model.Title where Title is field name.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="model">The model.</param>
 /// <param name="field">The field.</param>
 /// <param name="parameters">The parameters.</param>
 /// <returns>System.String.</returns>
 public string Editable <T>(T model, Expression <Func <T, object> > field, string parameters)
 {
     return(UiUtilities.Editable(GlassHtml, model, field, parameters));
 }