Blazor.Components
1.0.0
Некоторые блазорные компоненты, над которыми я работаю:
См. Пример работы: https://blazorcomponents.z6.web.core.windows.net/
< Tree
Nodes =" Items "
SelectedNode =" SelectedItem "
ChildSelector =" item => item.Childs " >
< TitleTemplate > @context.Text </ TitleTemplate >
</ Tree >Клиентские зависимости
< link rel =" stylesheet " href =" _content/MW.Blazor.Tree/styles.css " />
< link rel =" stylesheet " href =" https://use.fontawesome.com/releases/v5.8.1/css/all.css " integrity =" sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf " crossorigin =" anonymous " > Пример кода
Пример кода (ленивая загрузка)
Живая демонстрация
Функции / задачи
Изменить журнал
MW.BlazorIList<TItem> ) -> selectedNode ( TItem ) < TagSelector
SelectableTags =" @Tags "
SelectedTags =" @Selected "
Filter =" @((item,term) => item.Contains(term)) " >
< TagTemplate > @context </ TagTemplate >
</ TagSelector >Клиентские зависимости
< link rel =" stylesheet " href =" _content/MW.Blazor.TagSelector/styles.css " />
< script src =" _content/MW.Blazor.TagSelector/interop.js " > </ script > Пример кода
Живая демонстрация
Функции / задачи
Изменить журнал
MW.Blazor < PagePanel PageIndex =" @CurrentPage " Style =" height:250px " >
< Page Widths =" 50%;100%;200% " >
< div class =" d-flex justify-content-center align-items-center h-100 text-white h4 " style =" background:#00ff90 " >
Page 1
</ div >
</ Page >
< Page Widths =" 50%;30%;20%;50% " >
< div class =" d-flex justify-content-center align-items-center h-100 text-white h4 " style =" background:#1596c7 " >
Page 2
</ div >
</ Page >
< Page Widths =" 70%;70%;20%;50% " >
< div class =" d-flex justify-content-center align-items-center h-100 text-white h4 " style =" background:#b823be " >
Page 3
</ div >
</ Page >
< Page Widths =" 60%;60%;60%;100% " >
< div class =" d-flex justify-content-center align-items-center h-100 text-white h4 " style =" background:#ff6a00 " >
Page 4
</ div >
</ Page >
</ PagePanel >
< button onclick =" @(() => CurrentPage--) " > < </ button >
@CurrentPage
< button onclick =" @(() => CurrentPage++) " > > </ button >
@functions { int CurrentPage { get; set; } }Клиентские зависимости
< link rel =" stylesheet " href =" _content/MW.Blazor.PagePanel/styles.css " /> Пример кода
Живая демонстрация
Функции / задачи
Изменить журнал
MW.Blazor