private void Tabs() { _contentDefinitionManager.CreateBasicWidget("Tabs"); _contentDefinitionManager.AlterTypeDefinition("Tabs", t => t .WithTitlePart("0") .WithFlow("1", new string[] { "Tab" }) ); _contentDefinitionManager.CreateBasicWidget("Tab"); _contentDefinitionManager.AlterTypeDefinition("Tab", t => t .WithTitlePart("0", TitlePartOptions.EditableRequired) .WithFlow("2") ); }
private void Tabs() { _contentDefinitionManager.CreateBasicWidget("Tabs"); _contentDefinitionManager.AlterTypeDefinition("Tabs", t => t .WithPart(nameof(TitlePart), p => p .WithPosition("0") ) .WithFlow("1", new string[] { "Tab" }) ); _contentDefinitionManager.CreateBasicWidget("Tab"); _contentDefinitionManager.AlterTypeDefinition("Tab", t => t .WithPart(nameof(TitlePart), p => p .WithPosition("0") .WithSettings(new TitlePartSettings() { Options = TitlePartOptions.EditableRequired }) ) .WithFlow("2") ); }
private void CreateWidgets() { _contentDefinitionManager.CreateBasicWidget("TeamDashboardWidget"); _contentDefinitionManager.AlterPartDefinition("TeamDashboardWidget", t => t .WithHtmlField("SoloMessage", "Solo message", "The html displayed when the participant is not part of a team", "0") .WithHtmlField("TeamMessage", "Team message", "The html displayed when the participant is part of a team", "1") ); _contentDefinitionManager.CreateBasicWidget("TeamJoinListWidget"); _contentDefinitionManager.CreateBasicWidget("TeamFlowDashboardWidget"); _contentDefinitionManager.AlterTypeDefinition("TeamFlowDashboardWidget", t => t .WithPart(nameof(TitlePart), p => p .WithPosition("1") ) .WithFlow("2") ); _contentDefinitionManager.AlterPartDefinition("TeamFlowDashboardWidget", t => t .WithHtmlField("NoTeamHtml", "Solo message", "The html displayed when the participant is not part of a team", "0") ); }
public int Create() { _contentDefinitionManager.CreateBasicWidget("ScheduleList"); _contentDefinitionManager.AlterTypeDefinition("ScheduleList", t => t .WithTitlePart("0") .WithFlow("1", new string[] { "ScheduleEvent" }) ); _contentDefinitionManager.AlterPartDefinition("ScheduleEvent", p => p .WithTextField("Time", "0") .WithTextField("Location", "1") ); _contentDefinitionManager.AlterTypeDefinition("ScheduleEvent", t => t .Stereotype("Widget") .WithTitlePart("0", TitlePartOptions.EditableRequired) .WithPart("ScheduleEvent", p => p.WithPosition("1")) .WithMarkdownBody("2") ); return(1); }
private void CreateWidgets() { _contentDefinitionManager.CreateBasicWidget("HackathonCalendar"); _contentDefinitionManager.CreateBasicWidget("ChallengeListWidget"); }