/// <summary> /// Creates an Edit Frame using the Default Buttons list /// </summary> /// <param name="dataSource"></param> /// <returns></returns> public GlassEditFrame BeginEditFrame(string dataSource) { return(GlassHtml.EditFrame(string.Empty, GlassEditFrame.DefaultEditButtons, dataSource, this.Output)); }
/// <summary> /// Returns an Sitecore Edit Frame /// </summary> /// <param name="model">The model of the item to use.</param> /// <param name="title">The title to display with the editframe</param> /// <param name="fields">The fields to add to the edit frame</param> /// <returns> /// GlassEditFrame. /// </returns> public GlassEditFrame BeginEditFrame <T>(T model, string title = null, params Expression <Func <T, object> >[] fields) where T : class { return(GlassHtml.EditFrame(model, title, Output, fields)); }
/// <summary> /// Begins the edit frame. /// </summary> /// <param name="buttons">The buttons.</param> /// <param name="dataSource">The data source.</param> /// <returns></returns> public GlassEditFrame BeginEditFrame(string buttons, string dataSource, string title) { return(GlassHtml.EditFrame(title, buttons, dataSource, this.Output)); }