File tree Expand file tree Collapse file tree 4 files changed +42
-8
lines changed
src/BootstrapBlazor.Server/Components/Samples Expand file tree Collapse file tree 4 files changed +42
-8
lines changed Original file line number Diff line number Diff line change 1616 Name =" Normal" >
1717 <section ignore >
1818 <div class =" row g-3" >
19+ <div class =" col-12 col-sm-6" >
20+ <BootstrapInputGroup >
21+ <BootstrapInputGroupLabel DisplayText =" IsDisabled" ></BootstrapInputGroupLabel >
22+ <Switch @bind-Value =" @_isDisabled" ></Switch >
23+ </BootstrapInputGroup >
24+ </div >
1925 <div class =" col-12 col-sm-6" >
2026 <BootstrapInputGroup >
2127 <BootstrapInputGroupLabel DisplayText =" IsMultiple" ></BootstrapInputGroupLabel >
4046 <Slider @bind-Value =" @_radius" Min =" 0" Max =" 49" UseInputEvent =" true" ></Slider >
4147 </BootstrapInputGroup >
4248 </div >
43- <div class =" col-12 col-sm-6" >
44- <BootstrapInputGroup >
45- <BootstrapInputGroupLabel DisplayText =" IsDisabled" ></BootstrapInputGroupLabel >
46- <Switch @bind-Value =" @_isDisabled" ></Switch >
47- </BootstrapInputGroup >
48- </div >
4949 </div >
5050 </section >
5151 <AvatarUpload TValue =" string" IsMultiple =" @_isMultiple" IsCircle =" @_isCircle" BorderRadius =" @RadiusString"
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ public partial class UploadAvatars : IDisposable
1616 private CancellationTokenSource ? _token ;
1717 private readonly List < UploadFile > _previewFileList = [ ] ;
1818 private readonly Person _foo = new ( ) ;
19- private bool _isMultiple = true ;
2019 private bool _isUploadButtonAtFirst ;
2120 private bool _isCircle ;
2221 private int _radius = 49 ;
22+ private bool _isMultiple = true ;
2323 private bool _isDisabled = false ;
2424
2525 private string ? RadiusString => $ "{ _radius } px";
Original file line number Diff line number Diff line change 1212<Pre class =" no-highlight" >builder.Services.Configure< ; HubOptions> ; (option => option.MaximumReceiveMessageSize = null);</Pre >
1313
1414<DemoBlock Title =" @Localizer[" DropUploadTitle " ]" Introduction =" @Localizer[" DropUploadIntro " ]" Name =" Normal" >
15+ <section ignore >
16+ <div class =" row g-3" >
17+ <div class =" col-12 col-sm-6" >
18+ <BootstrapInputGroup >
19+ <BootstrapInputGroupLabel DisplayText =" IsDisabled" ></BootstrapInputGroupLabel >
20+ <Switch @bind-Value =" @_isDisabled" ></Switch >
21+ </BootstrapInputGroup >
22+ </div >
23+ <div class =" col-12 col-sm-6" >
24+ <BootstrapInputGroup >
25+ <BootstrapInputGroupLabel DisplayText =" IsMultiple" ></BootstrapInputGroupLabel >
26+ <Switch @bind-Value =" @_isMultiple" ></Switch >
27+ </BootstrapInputGroup >
28+ </div >
29+ <div class =" col-12 col-sm-6" >
30+ <BootstrapInputGroup >
31+ <BootstrapInputGroupLabel DisplayText =" ShowProgress" ></BootstrapInputGroupLabel >
32+ <Switch @bind-Value =" @_showProgress" ></Switch >
33+ </BootstrapInputGroup >
34+ </div >
35+ <div class =" col-12 col-sm-6" >
36+ <BootstrapInputGroup >
37+ <BootstrapInputGroupLabel DisplayText =" ShowFooter" ></BootstrapInputGroupLabel >
38+ <Switch @bind-Value =" @_showFooter" ></Switch >
39+ </BootstrapInputGroup >
40+ </div >
41+ </div >
42+ </section >
1543 <DropUpload OnChange =" @OnDropUpload" FooterText =" @Localizer[" DropUploadFooterText " ]"
16- ShowProgress =" true" ShowFooter =" true" IsMultiple =" false" ></DropUpload >
44+ IsDisabled =" @_isDisabled" IsMultiple =" @_isMultiple"
45+ ShowProgress =" @_showProgress" ShowFooter =" @_showFooter" ></DropUpload >
1746 <div class =" mt-3" >
1847 @foreach ( var file in _dropFiles )
1948 {
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ namespace BootstrapBlazor.Server.Components.Samples;
1010/// </summary>
1111public partial class UploadDrops
1212{
13+ private bool _isMultiple = true ;
14+ private bool _isDisabled = false ;
15+ private bool _showProgress = true ;
16+ private bool _showFooter = true ;
17+
1318 private readonly List < UploadFile > _dropFiles = [ ] ;
1419
1520 private async Task OnDropUpload ( UploadFile file )
You can’t perform that action at this time.
0 commit comments