Comments (3)
Depends on what you want to do.
Currently many things are possible but not documented, but also some things are maybe missing.
In general by using the meta configuration property or by registering meta configuration.
Check out sample.
https://github.com/fgilde/MudBlazor.Extensions/blob/main/SampleApplication/Pages/ObjectEditConfigured.razor
Also in the sample here you find how to use the IObjectEditMetaConfiguration Interface
https://github.com/fgilde/MudBlazor.Extensions/tree/main/SampleApplication/ObjectEditMetaConfig
And if you want to have specific types always rendered on a separate way Independently of model or type where it is used. You can use RenderDataDefaults
Like here
The current snap documentation you will find here
https://github.com/fgilde/MudBlazor.Extensions/blob/main/MudBlazor.Extensions/Docs/ObjectEdit.md
from mudblazor.extensions.
The dialog edit list i want change default editor item es. password.
from mudblazor.extensions.
If you have for example a Model with FirstName, LastName and Password, you can configure meta for this model like this
public class UserModelMetaConfiguration: IObjectMetaConfiguration<UserModel>
{
public Task ConfigureAsync(ObjectEditMeta<UserModel> meta)
{
meta.Properties(m => m.FirstName, m => m.LastName)
.WrapInMudItem(mudItem => mudItem.xs = 6);
meta.Property(m => m.Password)
.RenderWith<MudTextField<string>, string>(field => field.Value, field =>
{
field.InputType = InputType.Password;
})
.WrapInMudItem(mudItem => mudItem.xs = 12);
return Task.CompletedTask;
}
}
I created a small example for you. Hope this helps
mudExConfigSample.zip
This for example then looks like this
from mudblazor.extensions.
Related Issues (20)
- Issue rendering the Dialog on .Net 8 - ServerRendered HOT 12
- [Bug]: MudTextField not clickable HOT 2
- [Bug]: dialog flashes in middle of screen and reappears with animation HOT 2
- [Bug]: ReflectionTypeLoadException with Mudblazor 6.17.0 HOT 3
- [Bug]: Unable to add spaces in filter bar of MudExSelect HOT 5
- [Bug]: Required and Required Error in MudExSelect
- Create MudExGrid as dockingcontrol like gridstack.js
- Create speechtotext button
- MudExDialog Position and Size properties HOT 2
- Having ScrollSpy would be nice HOT 2
- Dialog cancel event handler - cancable event HOT 1
- File Upload Issue in MudExObjectEditDialog HOT 1
- [Bug]: Unable to reproduce MudExFileDisplayZip example HOT 2
- [Bug]: ReflectionTypeLoadException with Mudblazor 7.0.0 HOT 2
- [Bug]: Value cannot be null. (Parameter 'jsRuntime') HOT 2
- [Bug]: Unable to load one or more of the requested types HOT 2
- [Bug]: MudExDialogService.ShowFileDisplayDialog error/unexpected behaviour on specific data types HOT 15
- [Bug]: Clicking backdrop when 'BackdropClick = false' still closes dialog HOT 3
- [Bug]: MudExDialogService does not implement new HOT 5
- Support for other browsers than Chrome (and without add-ins)? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mudblazor.extensions.