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