-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This Will Make Package Better #1356
Comments
Do you mean the
I don't quite understand. Maybe you can do it yourself with a secondary encapsulation. public class TextField: MTextFIeld {
protected override void OnParametersSet() {
Label = ...
}
} |
Tab Item |
@wisamidris7 MTabsItems is already lazy to load and does not load all the DOM at once |
I Want Some thing Like Make It Scrollable I Tried To Make It But I Did't Get Result |
I Mean You Can Also Provide Me A CSS Code |
There are some problems with Autocomplete in Dialog... Thanks for your feedback. If you just want the content scrollable: @inject MasaBlazor MasaBlazor
<MAutocomplete MenuProps="MenuProps">
</Autocomplete>
@code {
private void MenuProps(BMenuProps props) {
if (MasaBlazor.Breakpoint.SmAndDown) {
props.MaxHeight = 150;
}
}
} |
MTextField Is Call ValueChanged For Every Character I Wrote And When I Make It On OnParameterSet It's Render In Just 4 Chars Somtimes 27 to 47 Cause For Every Char I Wrote The Parameter Change Cause And What I Think Of That I Might Make It On OnInit... And I Maked Name Prop You Should See What Makes Webassembly Laggged Cause |
@wisamidris7 ExpansionPanelContent will support for lazy loading in |
Sorry, I only understand a little bit. Is MTextField Slow? Maybe provide the TEST code? If you want to know how to automatically generate Label, you refer to the following code: public class TextField : MTextField<string>
{
protected override void OnParametersSet()
{
base.OnParametersSet();
if (Label is null && ValueExpression is not null)
{
var accessorBody = ValueExpression.Body;
if (accessorBody is UnaryExpression unaryExpression
&& unaryExpression.NodeType == ExpressionType.Convert
&& unaryExpression.Type == typeof(object))
{
accessorBody = unaryExpression.Operand;
}
var fieldName = (accessorBody as MemberExpression)!.Member.Name;
Label = fieldName;
}
}
} |
About TextField I Mean That It Slow When I Make This Your MTextFIeld Is Good |
@wisamidris7 I seem to have reproduced the problem, I will investigate this tomorrow. Thanks! |
ok thanks |
@wisamidris7 Twice for every word you type? I guess there are two TextFields on your page. There seems to be no way to improve the performance of private string? _i18nLabel;
private string? _prevLabel;
protected override void OnParametersSet()
{
base.OnParametersSet();
if (_prevLabel != Label)
{
_prevLabel = Label;
_i18nLabel = I18n.T(Label);
}
Label = _i18nLabel;
} |
<TextField @bind-Value="value1" />
<TextField @bind-Value="value2" />
<TextField Value="value3" /> when input the first TextField, a |
Thanks 👍 In Any Date 1.0.0-rc4 Will Reaslse |
@wisamidris7 next week |
Can You Make Helper Or Vaildation Text Doesn't Take Space In Form You Can Make IsPopup For Popup For Vaildation Text To Be position: absoulte Or You Can Show Helper Text Or Vaildation Text If There Text And Now What I Maked HideDetails For Message But And This Is My Suggestion Cause I Want Users Know What Problem |
Do you mean that drawers close automatically when the browser widths narrow? I tried the demo of the document and it didn't work. But I found another bug: When on the mobile side, the width of the Drawer is too long, exceeding the width of the screen.
It's a breaking change of 1.0.0-rc.4.
It's been 256 ms: MASA.Blazor/src/Masa.Blazor/Popup/Components/PopupComponentBase.cs Lines 33 to 40 in 514ca10
Use DefaultsProvider or use global CSS |
// Here You Have To Make This
if (PopupItem != null)
{
Visible = false;
await Task.Delay(256);
PopupItem.Discard(returnVal);
} Or // Here You Have To Make This
if (PopupItem != null)
{
Visible = false;
InvokeAsync(StateHasChanged);
await Task.Delay(256);
PopupItem.Discard(returnVal);
} |
Visible = false; It's Change |
Also Check RTL Issue There I Maked Somthings |
Also Can You Make Virtuize For DataTable |
MASA.Blazor/src/Masa.Blazor/Popup/Components/Prompt/Prompt.razor.cs Lines 75 to 79 in 514ca10
I see, you want the method ClosePopupAsync to set |
We received the same request #1075. |
@wisamidris7 You can use |
In The White Row There No Expand Button Cause There No Children For Him |
@wisamidris7 https://docs.masastack.com/blazor/components/data-tables#expandablerow Check out this demo. The point is that there is a predefined col ( |
can you make me branch name it packagebetterissue and make me as countribter for just branch 'packagebetterissue' this will save lot of time for me cause somethings or some features i want to add it but i can't |
Sorry, I don't have permission to do it. You have to fork and PR. |
can your masa library contain menustrip as the winform and make it fixed as appbar do or you can make it part of the appbar cause i needed in this week it's very important for me <MMenuStrip>
<MMenuStripItem Herf="/home">
Home
</MMeuStripItem>
<MMenuStripItem Parent=true>
<ChildContent>
Hello World
</ChildContent>
<Children>
<MMenuStripItem Herf="/somthing">
Something
</MMeuStripItem>
<MMenuStripItem Parent=true>
<ChildContent>
Hello World
</ChildContent>
<Children>
<MMenuStripItem Herf="/somthingother">
SomethingOther
</MMeuStripItem>
</Children>
</MMeuStripItem>
</Children>
</MMeuStripItem>
</MMenuStrip> |
in blazor masa.blazor library |
also don't forgot Required Field For Vaildation Cause I Want Field To Be Required When COnditional Be <MCheckBox @bind-Value="Model.AutoCreate" Label.../>
<MTextField @bind-Value="Model.Somthing" Disabled="Model.AutoCreate" Required="@(!Model.AutoCreate)".../> There's No |
@wisamidris7 I think you can do the same thing with MMenu and MList. |
Make In Docs Or Anything Cause I'm Not In To Deep In Masa Can You Make Example |
also in ar-EG or arabic language why not say 'save' - 'انفذ' why say for 'save' - 'حفظ' |
@wisamidris7 I got it |
@wisamidris7 @typeparam TItem
@typeparam TValue
<MMenu @bind-Value="@_menuValue"
CloseOnContentClick="false"
OffsetY
ActivatorContent="@ActivatorContent">
<ChildContent>
<div class="m-cascader__columns">
<MCascaderColumn Dense
Items="@Items"
ItemValue="@ItemValue"
ItemText="@ItemText"
ItemChildren="@ItemChildren"
TItem="TItem"
TValue="TValue"
OnSelect="(u) => HandleOnSelect(u.item)">
</MCascaderColumn>
</div>
</ChildContent>
</MMenu>
@code {
[Parameter]
public RenderFragment<ActivatorProps>? ActivatorContent { get; set; }
[Parameter]
[EditorRequired]
public IList<TItem> Items { get; set; } = null!;
[Parameter]
[EditorRequired]
public Func<TItem, string> ItemText { get; set; } = null!;
[Parameter]
public Func<TItem, TValue>? ItemValue { get; set; }
[Parameter]
[EditorRequired]
public Func<TItem, List<TItem>?> ItemChildren { get; set; } = null!;
[Parameter]
public EventCallback<TItem> OnSelect { get; set; }
private bool _menuValue;
private async Task HandleOnSelect(TItem item)
{
if (ItemChildren?.Invoke(item)?.Any() is true)
{
return;
}
if (OnSelect.HasDelegate)
{
await OnSelect.InvokeAsync(item);
}
_menuValue = false;
}
} Use: <MenuStrip Items="_items"
ItemText="u => u.Name"
ItemValue="u => u.Code"
ItemChildren="u => u.Children"
TItem="Item"
TValue="string"
OnSelect="HandleOnSelect">
<ActivatorContent>
<span @attributes="@context.Attrs">File</span>
</ActivatorContent>
</MenuStrip>
@code {
record Item(string Name, string Code, List<Item>? Children = null);
private List<Item> _items = new()
{
new("Item 1", "1"),
new("Item 2", "2"),
new("Item 3", "3"),
new("Item 4", "4", new List<Item>()
{
new Item("Sub item 1", "s-1"),
new Item("Sub item 2", "s-2"),
new Item("Sub item 3", "s-3"),
}),
new("Item 5", "5"),
};
private void HandleOnSelect(Item item)
{
Console.WriteLine($"Selected item: {item.Name} ({item.Code})");
}
} |
ar-EG Is RTL Why you don't Make If ar-EG Is Currunt Make It RTL Also I Want To Make ar-EG default rather than english so provide me code // somthing like this
config.DefaultLanguage = "ar-EG"; and make if drawer is app make it in right auto |
@using BlazorComponent
services.AddMasaBlazor(options => {
// new Locale(current, fallback);
options.Locale = new Locale("ar-EG", "en-US");
options.RTL = true;
}) |
I Mean My App Is Mulilanguage But Arabic Is Default Cause Who Will Use Is Arab Also When RTL Is Supported This Mean To Make Drawer Right |
@wisamidris7 Do you mean changing RTL automatically when the language changes to Arabic? This is a good idea, but not a high priority. You can inject MasaBlazor and set MasaBlazor.RTL = true/false when you update language. MASA.Blazor/docs/Masa.Docs.Shared/Shared/Settings.razor Lines 98 to 108 in e1dc00a
|
end story |
Your Tabs And Expansion Is To Slow Cause There Animations And It Load All Once I Want Like Viruiztion When Dom Does Not Take Big Big Objects Cause I Have 8 Tabs In My App And I Wait For Page 10 seconds For It To Load Cause Each Tab Has Big Content I Think You Have To Make Somthing Like {LoadAllTab = false or DontLoadAllTab} For Package And
Auto MCol To Make MInput Takes Cols ,Sm and Md And Make It As Class In Object And Make AutoTranslate For Label And This Will Make 1.0.0 rc-4 Better Version And It Will Save 2 Lines For Every TextField And Thanks
The text was updated successfully, but these errors were encountered: