protected SectionContentViewData ComplexBtn(object model, bool isTask = false, bool isImage = false) { var centrPath = Reports.ReportCenterTaskTmpl; if (isTask) { centrPath = TabTaskOut.TaskCenterPartialPath; } var views = new SectionContentViewData { Left = new SectionItem { Data = LeftImage }, Centr = new SectionItem { Data = model, Path = centrPath }, Right = new SectionItem { Data = RightImage } }; return(views); }
protected void SetComplexButtonView(SectionContentViewData data) { var cb = new ComplexButtonView(); cb.Full(data); ComplexButtonView = cb; }
protected void _setComplexButtonView() { ComplexButtonView = new ComplexButtonView(); var complexButtonSettings = new SectionContentViewData { Left = new SectionItem { ItemId = "avatar", IsComplexPart = false, Data = ImageView.Img(ChannelIcon, CreatorName, true, CreatorName) }, Centr = new SectionItem { ItemId = "messages", IsComplexPart = true, Data = new { Head = ChannelName } }, Right = new SectionItem { ItemId = "delete", IsComplexPart = false } }; ComplexButtonView.Full(complexButtonSettings); }