private void AddSpeech(DemoMenuItem item) { item.Items = new List <DemoMenuItem> { new() { IsNew = true, Text = Localizer["SpeechIntro"], Url = "speechs" }, new() { Text = Localizer["Recognizer"], Url = "recognizers" }, new() { Text = Localizer["Synthesizer"], Url = "synthesizers" }, new() { Text = Localizer["SpeechWave"], Url = "speechwaves" } }; AddBadge(item); }
private void AddLayout(DemoMenuItem item) { item.AddItem(new DemoMenuItem() { Text = "分隔线 Divider", Url = "dividers" }); item.AddItem(new DemoMenuItem() { Text = "布局组件 Layout", Url = "layouts" }); item.AddItem(new DemoMenuItem() { Text = "页脚组件 Footer", Url = "footers" }); item.AddItem(new DemoMenuItem() { Text = "滚动条 Scroll", Url = "scrolls" }); item.AddItem(new DemoMenuItem() { Text = "骨架屏 Skeleton", Url = "skeletons" }); item.AddItem(new DemoMenuItem() { Text = "分割面板 Split", Url = "splits" }); AddBadge(item); }
private void AddBadge(DemoMenuItem item, bool append = true, int?count = null) { item.Component = CreateBadge(count ?? item.Items.Count(), item.IsNew, item.IsUpdate); if (append) { Menus.Add(item); } }
private void AddSummary(DemoMenuItem item) { // 计算组件总数 var count = 0; count = Menus.Aggregate(count, (c, item) => { c += item.Items.Count(); return c; }, c => c - Menus[0].Items.Count()); AddBadge(item, false, count); Menus.Insert(1, item); }
private void AddQuickStar(DemoMenuItem item) { item.Items = new List <DemoMenuItem> { new() { Text = Localizer["Introduction"], Url = "introduction" }, new() { Text = Localizer["Install"], Url = "install", Match = NavLinkMatch.All }, new() { Text = Localizer["ProjectTemplate"], Url = "template" }, new() { Text = Localizer["Globalization"], Url = "globalization" }, new() { Text = Localizer["Localization"], Url = "localization" }, new() { IsNew = true, Text = Localizer["Labels"], Url = "labels" }, new() { Text = Localizer["ServerBlazor"], Url = "install-server", Match = NavLinkMatch.All }, new() { Text = Localizer["ClientBlazor"], Url = "install-wasm", Match = NavLinkMatch.All }, new() { Text = Localizer["LayoutPage"], Url = "layout-page" } }; item.IsCollapsed = false; AddBadge(item); }
private void InitMenus() { // 快速入门 var item = new DemoMenuItem() { Text = "快速上手", Icon = "fa fa-fw fa-fa" }; AddQuickStar(item); item = new DemoMenuItem() { Text = "布局组件", Icon = "fa fa-fw fa-desktop" }; AddLayout(item); item = new DemoMenuItem() { Text = "导航组件", Icon = "fa fa-fw fa-bars" }; AddNavigation(item); item = new DemoMenuItem() { Text = "表单组件", Icon = "fa fa-fw fa-cubes" }; AddForm(item); item = new DemoMenuItem() { Text = "数据组件", Icon = "fa fa-fw fa-database" }; AddData(item); item = new DemoMenuItem() { Text = "消息组件", Icon = "fa fa-fw fa-comments" }; AddNotice(item); item = new DemoMenuItem() { Text = "组件总览", Icon = "fa fa-fw fa-fa", Url = "components" }; AddSummary(item); }
private void InitMenus() { // 快速入门 var item = new DemoMenuItem() { Text = Localizer["GetStarted"], Icon = "fa fa-fw fa-fa" }; AddQuickStar(item); item = new DemoMenuItem() { Text = Localizer["LayoutComponents"], Icon = "fa fa-fw fa-desktop" }; AddLayout(item); item = new DemoMenuItem() { Text = Localizer["NavigationComponents"], Icon = "fa fa-fw fa-bars" }; AddNavigation(item); item = new DemoMenuItem() { Text = Localizer["FormsComponents"], Icon = "fa fa-fw fa-cubes" }; AddForm(item); item = new DemoMenuItem() { Text = Localizer["DataComponents"], Icon = "fa fa-fw fa-database" }; AddData(item); item = new DemoMenuItem() { Text = Localizer["NotificationComponents"], Icon = "fa fa-fw fa-comments" }; AddNotice(item); item = new DemoMenuItem() { Text = Localizer["Components"], Icon = "fa fa-fw fa-fa", Url = "components" }; AddSummary(item); }
private void AddNavigation(DemoMenuItem item) { item.Items = new List <DemoMenuItem> { new() { Text = Localizer["Anchor"], Url = "anchors" }, new() { Text = Localizer["Breadcrumb"], Url = "breadcrumbs" }, new() { Text = Localizer["Dropdown"], Url = "dropdowns" }, new() { Text = Localizer["GoTop"], Url = "gotops" }, new() { Text = Localizer["Menu"], Url = "menus" }, new() { Text = Localizer["Nav"], Url = "navs" }, new() { Text = Localizer["Pagination"], Url = "paginations" }, new() { Text = Localizer["Steps"], Url = "stepss" }, new() { Text = Localizer["Tab"], Url = "tabs" } }; AddBadge(item); }
private void AddQuickStar(DemoMenuItem item) { item.AddItem(new DemoMenuItem() { Text = "简介", Url = "introduction" }); item.AddItem(new DemoMenuItem() { Text = "类库安装", Url = "install" }); item.AddItem(new DemoMenuItem() { Text = "项目模板", Url = "template" }); item.AddItem(new DemoMenuItem() { Text = "全球化", Url = "globalization" }); item.AddItem(new DemoMenuItem() { Text = "本地化", Url = "localization" }); item.AddItem(new DemoMenuItem() { IsNew = true, Text = "表单标签", Url = "labels" }); item.AddItem(new DemoMenuItem() { Text = "服务器端模式 Server", Url = "install-server" }); item.AddItem(new DemoMenuItem() { Text = "客户端模式 wasm", Url = "install-wasm" }); item.AddItem(new DemoMenuItem() { Text = "后台模板模拟器", Url = "layout-page" }); item.IsCollapsed = false; Menus.Add(item); }
private void AddNavigation(DemoMenuItem item) { item.AddItem(new DemoMenuItem() { Text = "锚点 Anchor", Url = "anchors", IsNew = true }); item.AddItem(new DemoMenuItem() { Text = "面包屑 Breadcrumb", Url = "breadcrumbs" }); item.AddItem(new DemoMenuItem() { Text = "菜单 Menu", Url = "menus" }); item.AddItem(new DemoMenuItem() { Text = "导航栏 Nav", Url = "navs" }); item.AddItem(new DemoMenuItem() { Text = "下拉菜单 Dropdown", Url = "dropdowns" }); item.AddItem(new DemoMenuItem() { Text = "跳转组件 GoTop", Url = "gotops" }); item.AddItem(new DemoMenuItem() { Text = "分页 Pagination", Url = "paginations" }); item.AddItem(new DemoMenuItem() { Text = "步骤条 Steps", Url = "stepss" }); item.AddItem(new DemoMenuItem() { Text = "标签页 Tab", Url = "tabs", IsUpdate = true }); AddBadge(item); }
private void AddBadge(DemoMenuItem item, bool append = true, int?count = null) { item.Template = CreateBadge(count ?? item.Items.Count(), isNew: item.Items.OfType <DemoMenuItem>().Any(i => i.IsNew), isUpdate: item.Items.OfType <DemoMenuItem>().Any(i => i.IsUpdate)).Render(); foreach (var menu in item.GetAllSubItems().OfType <DemoMenuItem>().Where(i => ShouldBadge(i))) { menu.Template = CreateBadge(0, menu.IsNew, menu.IsUpdate).Render(); } if (append) { Menus.Add(item); }
public override void Focus() { owner.Show(); owner.Enable(); if( selected == null || !selected.Control.IsEnabled ) { selected = items.FirstOrDefault( i => i.Control.IsEnabled ); } if( selected != null ) { selected.Focus(); } }
private void AddLayout(DemoMenuItem item) { item.Items = new List <DemoMenuItem> { new() { Text = Localizer["Divider"], Url = "dividers" }, new() { IsNew = true, Text = Localizer["Dragdrop"], Url = "dragdrops" }, new() { Text = Localizer["Layout"], Url = "layouts" }, new() { Text = Localizer["Footer"], Url = "footers" }, new() { Text = Localizer["Row"], Url = "rows" }, new() { Text = Localizer["Scroll"], Url = "scrolls" }, new() { Text = Localizer["Skeleton"], Url = "skeletons" }, new() { Text = Localizer["Split"], Url = "splits" } }; AddBadge(item); }
private void AddChart(DemoMenuItem item) { item.Items = new List <DemoMenuItem> { new() { Text = Localizer["ChartSummary"], Url = "charts/index" }, new() { Text = Localizer["ChartLine"], Url = "charts/line" }, new() { Text = Localizer["ChartBar"], Url = "charts/bar" }, new() { Text = Localizer["ChartPie"], Url = "charts/pie" }, new() { Text = Localizer["ChartDoughnut"], Url = "charts/doughnut" }, new() { Text = Localizer["ChartBubble"], Url = "charts/bubble" } }; AddBadge(item, count: 5); }
protected override void initialize() { base.initialize(); if( Tooltip == null ) { Tooltip = findControl( "Tooltip" ) as dfLabel; } if( Tooltip != null ) { Tooltip.Text = ""; } #region Initialize menu items items = GetComponentsInChildren<DemoMenuItem>().ToList(); items.Sort(); var length = items.Count; for( int i = 0; i < length; i++ ) { var item = items[ i ]; var itemIndex = i; // Perform item-specific initialization item.Initialize(); // Attach keyboard navigation events item.Control.KeyDown += ( dfControl sender, dfKeyEventArgs args ) => { if( args.Used ) return; if( args.KeyCode == KeyCode.DownArrow ) { selectNext( itemIndex ); args.Use(); } else if( args.KeyCode == KeyCode.UpArrow ) { selectPrevious( itemIndex ); args.Use(); } else if( args.KeyCode == KeyCode.Space || args.KeyCode == KeyCode.Return ) { var target = item.Submenu; if( target != null ) { showSubmenu( target ); } args.Use(); } }; // Display the item's tooltip on focus item.Control.EnterFocus += ( dfControl sender, dfFocusEventArgs args ) => { selected = item; if( Tooltip != null ) { Tooltip.Text = item.Tooltip; } }; // Display the item's submenu on click item.Control.Click += ( dfControl sender, dfMouseEventArgs args ) => { if( args.Used ) return; var target = item.Submenu; if( target != null ) { showSubmenu( target ); } args.Use(); }; } #endregion if( AutoShow ) { this.Show(); } }
private void AddNotice(DemoMenuItem item) { item.Items = new List <DemoMenuItem> { new() { Text = Localizer["Alert"], Url = "alerts" }, new() { Text = Localizer["Console"], Url = "consoles" }, new() { Text = Localizer["Dialog"], Url = "dialogs" }, new() { Text = Localizer["Drawer"], Url = "drawers" }, new() { Text = Localizer["EditDialog"], Url = "editdialogs" }, new() { Text = Localizer["Light"], Url = "lights" }, new() { Text = Localizer["Message"], Url = "messages" }, new() { Text = Localizer["Modal"], Url = "modals" }, new() { Text = Localizer["Popconfirm"], Url = "popconfirms" }, new() { Text = Localizer["Progress"], Url = "progresss" }, new() { Text = Localizer["SearchDialog"], Url = "searchdialogs" }, new() { Text = Localizer["Spinner"], Url = "spinners" }, new() { Text = Localizer["SweetAlert"], Url = "swals" }, new() { Text = Localizer["Timer"], Url = "timers" }, new() { Text = Localizer["Toast"], Url = "toasts" } }; AddBadge(item); }
private void AddData(DemoMenuItem item) { var tableItem = new DemoMenuItem() { Text = Localizer["Table"], Items = TableItems() }; AddBadge(tableItem, false); item.Items = new List <DemoMenuItem> { new() { Text = Localizer["Avatar"], Url = "avatars" }, new() { Text = Localizer["Badge"], Url = "badges" }, new() { Text = Localizer["BarcodeReader"], Url = "barcodereaders" }, new() { Text = Localizer["Card"], Url = "cards" }, new() { Text = Localizer["Calendar"], Url = "calendars" }, new() { Text = Localizer["Camera"], Url = "Cameras" }, new() { Text = Localizer["Captcha"], Url = "captchas" }, new() { Text = Localizer["Carousel"], Url = "carousels" }, new() { Text = Localizer["Chart"], Url = "charts" }, new() { Text = Localizer["Circle"], Url = "circles" }, new() { Text = Localizer["Collapse"], Url = "collapses" }, new() { IsNew = true, Text = Localizer["Display"], Url = "displays" }, new() { Text = Localizer["DropdownWidget"], Url = "dropdownwidgets" }, new() { Text = Localizer["GroupBox"], Url = "groupboxs" }, new() { Text = Localizer["HandwrittenPage"], Url = "handwrittenPage" }, new() { Text = Localizer["ListView"], Url = "listviews" }, new() { Text = Localizer["Popover"], Url = "popovers" }, new() { Text = Localizer["QRCode"], Url = "qrcodes" }, new() { Text = Localizer["Search"], Url = "searchs" }, tableItem, new() { Text = Localizer["Tag"], Url = "tags" }, new() { Text = Localizer["Timeline"], Url = "timelines" }, new() { IsNew = true, Text = Localizer["Title"], Url = "titles" }, new() { IsNew = true, Text = Localizer["Download"], Url = "downloads" }, new() { Text = Localizer["Tooltip"], Url = "tooltips" }, new() { Text = Localizer["Tree"], Url = "trees" }, }; AddBadge(item); }
private void AddForm(DemoMenuItem item) { item.Items = new List <DemoMenuItem> { new() { Text = Localizer["AutoComplete"], Url = "autocompletes" }, new() { Text = Localizer["AutoFill"], Url = "autofills" }, new() { Text = Localizer["Button"], Url = "buttons" }, new() { Text = Localizer["Cascader"], Url = "cascaders" }, new() { Text = Localizer["Checkbox"], Url = "checkboxs" }, new() { Text = Localizer["CheckboxList"], Url = "checkboxlists" }, new() { Text = Localizer["ColorPicker"], Url = "colorpickers" }, new() { Text = Localizer["DateTimePicker"], Url = "datetimepickers" }, new() { Text = Localizer["DateTimeRange"], Url = "datetimeranges" }, new() { Text = Localizer["Editor"], Url = "editors" }, new() { Text = Localizer["EditorForm"], Url = "editorforms" }, new() { Text = Localizer["FloatingLabel"], Url = "floatinglabels" }, new() { Text = Localizer["Input"], Url = "inputs" }, new() { Text = Localizer["InputNumber"], Url = "inputnumbers" }, new() { Text = Localizer["InputGroup"], Url = "inputgroups" }, new() { Text = Localizer["Ip"], Url = "ips" }, new() { Text = Localizer["Markdown"], Url = "markdowns" }, new() { IsNew = true, Text = Localizer["CherryMarkdown"], Url = "cherry-markdowns" }, new() { Text = Localizer["MultiSelect"], Url = "multiselects" }, new() { Text = Localizer["OnScreenKeyboard"], Url = "onscreenkeyboards" }, new() { IsUpdate = true, Text = Localizer["Radio"], Url = "radios" }, new() { Text = Localizer["Rate"], Url = "rates" }, new() { Text = Localizer["Select"], Url = "selects" }, new() { Text = Localizer["Slider"], Url = "sliders" }, new() { Text = Localizer["Switch"], Url = "switchs" }, new() { Text = Localizer["Textarea"], Url = "textareas" }, new() { Text = Localizer["Toggle"], Url = "toggles" }, new() { Text = Localizer["Transfer"], Url = "transfers" }, new() { Text = Localizer["Upload"], Url = "uploads" }, new() { Text = Localizer["ValidateForm"], Url = "validateforms" } }; AddBadge(item); }
private void AddQuickStar(DemoMenuItem item) { item.Items = new List <DemoMenuItem> { new() { Text = Localizer["Introduction"], Url = "introduction" }, new() { Text = Localizer["Install"], Url = "install", Match = NavLinkMatch.All }, new() { Text = Localizer["ProjectTemplate"], Url = "template" }, new() { Text = Localizer["Globalization"], Url = "globalization" }, new() { Text = Localizer["Localization"], Url = "localization" }, new() { Text = Localizer["Labels"], Url = "labels" }, new() { Text = Localizer["GlobalException"], Url = "globalexception" }, new() { Text = Localizer["ServerBlazor"], Url = "install-server", Match = NavLinkMatch.All }, new() { Text = Localizer["ClientBlazor"], Url = "install-wasm", Match = NavLinkMatch.All }, new() { IsNew = true, Text = Localizer["Breakpoints"], Url = "breakpoints" }, new() { Text = Localizer["ZIndex"], Url = "layout" }, new() { Text = Localizer["Theme"], Url = "themes" }, new() { Text = Localizer["FAIcon"], Url = "fa-icons" }, new() { Text = Localizer["LayoutPage"], Url = "layout-page" } }; AddBadge(item, count: 0); }
private void AddTableItem(DemoMenuItem item) { var it = new DemoMenuItem() { Text = "表格 Table" }; it.AddItem(new DemoMenuItem() { Text = "基本功能", Url = "tables" }); it.AddItem(new DemoMenuItem() { Text = "列设置", Url = "tables/column" }); it.AddItem(new DemoMenuItem() { Text = "行设置", Url = "tables/row" }); it.AddItem(new DemoMenuItem() { Text = "明细行", Url = "tables/detail" }); it.AddItem(new DemoMenuItem() { Text = "搜索功能", Url = "tables/search" }); it.AddItem(new DemoMenuItem() { Text = "筛选和排序", Url = "tables/filter" }); it.AddItem(new DemoMenuItem() { Text = "固定表头", Url = "tables/header" }); it.AddItem(new DemoMenuItem() { Text = "表头分组", Url = "tables/multi-header" }); it.AddItem(new DemoMenuItem() { Text = "固定列", Url = "tables/fix-column" }); it.AddItem(new DemoMenuItem() { Text = "分页功能", Url = "tables/pages" }); it.AddItem(new DemoMenuItem() { Text = "工具栏", Url = "tables/toolbar" }); it.AddItem(new DemoMenuItem() { Text = "表单维护", Url = "tables/edit" }); it.AddItem(new DemoMenuItem() { Text = "导出功能", Url = "tables/export" }); it.AddItem(new DemoMenuItem() { Text = "行选中", Url = "tables/selection" }); it.AddItem(new DemoMenuItem() { Text = "自动刷新", Url = "tables/autorefresh" }); it.AddItem(new DemoMenuItem() { Text = "统计合并", Url = "tables/footer" }); it.AddItem(new DemoMenuItem() { Text = "弹窗联动", Url = "tables/dialog" }); it.AddItem(new DemoMenuItem() { Text = "折行演示", Url = "tables/wrap" }); item.AddItem(it); AddBadge(it, false); }
private void AddNotice(DemoMenuItem item) { item.AddItem(new DemoMenuItem() { Text = "警告框 Alert", Url = "alerts" }); item.AddItem(new DemoMenuItem() { Text = "控制台 Console", Url = "consoles" }); item.AddItem(new DemoMenuItem() { Text = "对话框 Dialog", Url = "dialogs" }); item.AddItem(new DemoMenuItem() { Text = "抽屉 Drawer", Url = "drawers" }); item.AddItem(new DemoMenuItem() { Text = "编辑弹窗 EditDialog", Url = "editdialogs" }); item.AddItem(new DemoMenuItem() { Text = "消息框 Message", Url = "messages" }); item.AddItem(new DemoMenuItem() { Text = "模态框 Modal", Url = "modals" }); item.AddItem(new DemoMenuItem() { Text = "指示灯 Light", Url = "lights" }); item.AddItem(new DemoMenuItem() { Text = "确认框 Popconfirm", Url = "popconfirms" }); item.AddItem(new DemoMenuItem() { Text = "进度条 Progress", Url = "progresss" }); item.AddItem(new DemoMenuItem() { Text = "旋转图标 Spinner", Url = "spinners" }); item.AddItem(new DemoMenuItem() { Text = "模态弹窗 SweetAlert", Url = "swals" }); item.AddItem(new DemoMenuItem() { Text = "搜索弹窗 SearchDialog", Url = "searchdialogs" }); item.AddItem(new DemoMenuItem() { Text = "轻量弹窗 Toast", Url = "toasts" }); item.AddItem(new DemoMenuItem() { Text = "计时器 Timer", Url = "timers" }); AddBadge(item); }
private void AddData(DemoMenuItem item) { item.AddItem(new DemoMenuItem() { Text = "头像框 Avatar", Url = "avatars" }); item.AddItem(new DemoMenuItem() { Text = "徽章 Badge", Url = "badges" }); item.AddItem(new DemoMenuItem() { Text = "卡片 Card", Url = "cards" }); item.AddItem(new DemoMenuItem() { Text = "日历框 Calendar", Url = "calendars" }); item.AddItem(new DemoMenuItem() { Text = "验证码 Captcha", Url = "captchas" }); item.AddItem(new DemoMenuItem() { Text = "走马灯 Carousel", Url = "carousels" }); item.AddItem(new DemoMenuItem() { Text = "图表 Chart", Url = "charts" }); item.AddItem(new DemoMenuItem() { Text = "进度环 Circle", Url = "circles" }); item.AddItem(new DemoMenuItem() { Text = "折叠 Collapse", Url = "collapses" }); item.AddItem(new DemoMenuItem() { Text = "挂件 DropdownWidget", Url = "dropdownwidgets" }); item.AddItem(new DemoMenuItem() { Text = "集合 GroupBox", Url = "groupboxs" }); item.AddItem(new DemoMenuItem() { Text = "列表组件 ListView", Url = "listviews" }); item.AddItem(new DemoMenuItem() { Text = "弹出框 Popover", Url = "popovers" }); item.AddItem(new DemoMenuItem() { Text = "二维码 QRCode", Url = "qrcodes" }); item.AddItem(new DemoMenuItem() { Text = "搜索框 Search", Url = "searchs" }); AddTableItem(item); item.AddItem(new DemoMenuItem() { Text = "标签 Tag", Url = "tags" }); item.AddItem(new DemoMenuItem() { Text = "时间线 Timeline", Url = "timelines" }); item.AddItem(new DemoMenuItem() { Text = "工具条 Tooltip", Url = "tooltips" }); item.AddItem(new DemoMenuItem() { Text = "树形控件 Tree", Url = "trees" }); item.AddItem(new DemoMenuItem() { Text = "条码扫描 BarcodeReader", Url = "barcodereaders" }); item.AddItem(new DemoMenuItem() { Text = "摄像头组件 Camera", Url = "Cameras" }); item.AddItem(new DemoMenuItem() { Text = "手写签名 HandwrittenPage", Url = "handwrittenPage" }); AddBadge(item); }
private void AddForm(DemoMenuItem item) { item.AddItem(new DemoMenuItem() { Text = "表单组件 EditorForm", Url = "editorforms" }); item.AddItem(new DemoMenuItem() { Text = "表单组件 ValidateForm", Url = "forms" }); item.AddItem(new DemoMenuItem() { Text = "自动完成 AutoComplete", Url = "autocompletes" }); item.AddItem(new DemoMenuItem() { Text = "按钮 Button", Url = "buttons" }); item.AddItem(new DemoMenuItem() { Text = "多选框 Checkbox", Url = "checkboxs" }); item.AddItem(new DemoMenuItem() { Text = "多选框组 CheckboxList", Url = "checkboxlists" }); item.AddItem(new DemoMenuItem() { Text = "时间框 DateTimePicker", Url = "datetimepickers" }); item.AddItem(new DemoMenuItem() { Text = "时间范围框 DateTimeRange", Url = "datetimeranges" }); item.AddItem(new DemoMenuItem() { Text = "下拉框 DropdownList", Url = "dropdownlists" }); item.AddItem(new DemoMenuItem() { Text = "富文本框 Editor", Url = "editors" }); item.AddItem(new DemoMenuItem() { Text = "输入框 Input", Url = "inputs" }); item.AddItem(new DemoMenuItem() { Text = "数值框 InputNumber", Url = "inputnumbers" }); item.AddItem(new DemoMenuItem() { Text = "富文本框 Markdown", Url = "markdowns" }); item.AddItem(new DemoMenuItem() { Text = "单选框 Radio", Url = "radios" }); item.AddItem(new DemoMenuItem() { Text = "评分 Rate", Url = "rates" }); item.AddItem(new DemoMenuItem() { Text = "选择器 Select", Url = "selects" }); item.AddItem(new DemoMenuItem() { IsUpdate = true, Text = "多项选择器 MultiSelect", Url = "multiselects" }); item.AddItem(new DemoMenuItem() { Text = "滑块 Slider", Url = "sliders" }); item.AddItem(new DemoMenuItem() { Text = "开关 Switch", Url = "switchs" }); item.AddItem(new DemoMenuItem() { Text = "多行文本框 Textarea", Url = "textareas" }); item.AddItem(new DemoMenuItem() { Text = "开关 Toggle", Url = "toggles" }); item.AddItem(new DemoMenuItem() { Text = "穿梭框 Transfer", Url = "transfers" }); item.AddItem(new DemoMenuItem() { Text = "上传组件 Upload", Url = "uploads" }); AddBadge(item); }
private void AddData(DemoMenuItem item) { var tableItem = new DemoMenuItem() { Text = Localizer["Table"], Items = TableItems() }; AddBadge(tableItem, false); item.Items = new List <DemoMenuItem> { new() { Text = Localizer["Ajax"], Url = "ajaxs" }, new() { Text = Localizer["Avatar"], Url = "avatars" }, new() { Text = Localizer["Badge"], Url = "badges" }, new() { Text = Localizer["BarcodeReader"], Url = "barcodereaders" }, new() { Text = Localizer["Block"], Url = "blocks" }, new() { Text = Localizer["Card"], Url = "cards" }, new() { Text = Localizer["Calendar"], Url = "calendars" }, new() { Text = Localizer["Camera"], Url = "Cameras" }, new() { Text = Localizer["Captcha"], Url = "captchas" }, new() { Text = Localizer["Carousel"], Url = "carousels" }, new() { Text = Localizer["Client"], Url = "client" }, new() { Text = Localizer["Circle"], Url = "circles" }, new() { Text = Localizer["Collapse"], Url = "collapses" }, new() { Text = Localizer["Display"], Url = "displays" }, new() { Text = Localizer["Download"], Url = "downloads" }, new() { Text = Localizer["DropdownWidget"], Url = "dropdownwidgets" }, new () { Text = Localizer["Empty"], Url = "empties" }, new() { Text = Localizer["Geolocation"], Url = "geolocations" }, new() { Text = Localizer["GroupBox"], Url = "groupboxs" }, new() { Text = Localizer["HandwrittenPage"], Url = "handwrittenpage" }, new() { Text = Localizer["LinkButton"], Url = "linkbuttons" }, new() { Text = Localizer["ListView"], Url = "listviews" }, new() { Text = Localizer["Locator"], Url = "locators" }, new() { Text = Localizer["ImageViewer"], Url = "imageviewers" }, new() { Text = Localizer["Print"], Url = "prints" }, new() { Text = Localizer["QRCode"], Url = "qrcodes" }, new() { Text = Localizer["Recognizer"], Url = "recognizers" }, new() { Text = Localizer["Search"], Url = "searchs" }, new() { Text = Localizer["SignaturePad"], Url = "signaturepads", }, new() { Text = Localizer["SpeechWave"], Url = "speechwaves" }, tableItem, new() { Text = Localizer["Tag"], Url = "tags" }, new() { Text = Localizer["Timeline"], Url = "timelines" }, new() { Text = Localizer["Title"], Url = "titles" }, new() { IsNew = true, Text = Localizer["Topology"], Url = "Topologies" }, new() { Text = Localizer["Tree"], Url = "trees" }, new() { Text = Localizer["Transition"], Url = "transitions" } }; AddBadge(item); }
private void AddNavigation(DemoMenuItem item) { item.Items = new List <DemoMenuItem> { new() { Text = Localizer["Anchor"], Url = "anchors" }, new() { Text = Localizer["AnchorLink"], Url = "anchorlinks" }, new() { Text = Localizer["Breadcrumb"], Url = "breadcrumbs" }, new() { Text = Localizer["Dropdown"], Url = "dropdowns" }, new() { Text = Localizer["FullScreen"], Url = "fullscreens" }, new() { Text = Localizer["GoTop"], Url = "gotops" }, new() { Text = Localizer["Logout"], Url = "logouts" }, new() { Text = Localizer["Menu"], Url = "menus" }, new() { Text = Localizer["Nav"], Url = "navs" }, new() { Text = Localizer["Pagination"], Url = "paginations" }, new() { IsNew = true, Text = Localizer["RibbonTab"], Url = "ribbontabs" }, new() { Text = Localizer["Steps"], Url = "stepss" }, new() { Text = Localizer["Tab"], Url = "tabs" } }; AddBadge(item); }
private void AddNotice(DemoMenuItem item) { item.Items = new List <DemoMenuItem> { new() { Text = Localizer["Alert"], Url = "alerts" }, new() { Text = Localizer["Console"], Url = "consoles" }, new() { Text = Localizer["Dialog"], Url = "dialogs" }, new() { Text = Localizer["Dispatch"], Url = "dispatches" }, new() { Text = Localizer["Drawer"], Url = "drawers" }, new() { Text = Localizer["EditDialog"], Url = "editdialogs" }, new() { Text = Localizer["Light"], Url = "lights" }, new() { Text = Localizer["Message"], Url = "messages" }, new() { Text = Localizer["Modal"], Url = "modals" }, new() { Text = Localizer["Notification"], Url = "notifications" }, new() { Text = Localizer["Popconfirm"], Url = "popconfirms" }, new() { Text = Localizer["Popover"], Url = "popovers" }, new() { Text = Localizer["Progress"], Url = "progresss" }, new() { IsNew = true, Text = Localizer["Reconnector"], Url = "reconnectors" }, new() { IsNew = true, Text = Localizer["Responsive"], Url = "responsives" }, new() { Text = Localizer["SearchDialog"], Url = "searchdialogs" }, new() { Text = Localizer["Spinner"], Url = "spinners" }, new() { Text = Localizer["SweetAlert"], Url = "swals" }, new() { Text = Localizer["Timer"], Url = "timers" }, new() { Text = Localizer["Toast"], Url = "toasts" }, new() { Text = Localizer["Tooltip"], Url = "tooltips" } }; AddBadge(item); }