« Ant blazor design » : différence entre les versions
De Banane Atomic
Aller à la navigationAller à la recherche
(Page créée avec « Category:Blazor = Addition to a project = <kode lang='bash'> dotnet add package AntDesign </kode> <filebox fn='Pages/_Host.cshtml'> <link href="_content/AntDesign/css… ») |
Aucun résumé des modifications |
||
(3 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
[[Category:Blazor]] | [[Category:Blazor]] | ||
= Addition to a project = | = Links = | ||
* [https://antblazor.com/en-US Ant Design Blazor] | |||
* [https://github.com/ant-design-blazor/ant-design-blazor Ant Design Blazor on GitHub] | |||
= Input text with clear icon = | |||
<kode lang='razor'> | |||
<Input @bind-Value="@MyProperty" | |||
Placeholder="My Placeholder" | |||
AllowClear="true" | |||
TValue="string"/> | |||
</kode> | |||
= [https://github.com/ant-design-blazor/ant-design-blazor#import-ant-design-blazor-into-an-existing-project Addition to a project] = | |||
<kode lang='bash'> | <kode lang='bash'> | ||
dotnet add package AntDesign | dotnet add package AntDesign | ||
Ligne 8 : | Ligne 20 : | ||
<link href="_content/AntDesign/css/ant-design-blazor.css" rel="stylesheet" /> | <link href="_content/AntDesign/css/ant-design-blazor.css" rel="stylesheet" /> | ||
<script src="_content/AntDesign/js/ant-design-blazor.js"></script> | <script src="_content/AntDesign/js/ant-design-blazor.js"></script> | ||
</filebox> | |||
<filebox fn='Startup.cs'> | |||
public void ConfigureServices(IServiceCollection services) | |||
{ | |||
services.AddAntDesign(); | |||
</filebox> | |||
<filebox fn='_Imports.razor'> | |||
@using AntDesign | |||
</filebox> | </filebox> |
Dernière version du 1 mars 2021 à 21:39
Links
Input text with clear icon
<Input @bind-Value="@MyProperty" Placeholder="My Placeholder" AllowClear="true" TValue="string"/> |
Addition to a project
dotnet add package AntDesign |
Pages/_Host.cshtml |
<link href="_content/AntDesign/css/ant-design-blazor.css" rel="stylesheet" /> <script src="_content/AntDesign/js/ant-design-blazor.js"></script> |
Startup.cs |
public void ConfigureServices(IServiceCollection services) { services.AddAntDesign(); |
_Imports.razor |
@using AntDesign |