https://github.com/andres10121997/webextension
https://github.com/andres10121997/webextension
csharp visual-studio
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andres10121997/webextension
- Owner: Andres10121997
- License: apache-2.0
- Created: 2025-07-03T01:31:43.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-03T13:10:10.000Z (12 months ago)
- Last Synced: 2025-07-03T13:36:24.947Z (12 months ago)
- Topics: csharp, visual-studio
- Language: C#
- Homepage:
- Size: 275 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Web Extension
## Instrucciones
Agregar en el proyecto web el siguiente código:
```csharp
services.AddControllersWithViews()
.AddRazorRuntimeCompilation()
.AddApplicationPart(typeof(InputModelAttribute).Assembly); // para cargar vistas embebidas
```
## ¿Cómo se usa?
A continuación se muestra un ejemplo de implementación:
### Modelo
```csharp
public class PersonModel
{
[
InputMode(
InputMode: InputModeAttribute.InputModeEnum.text
)
]
public string Name { get; set; }
[
InputMode(
InputMode: InputModeAttribute.InputModeEnum.text
)
]
public string LastName { get; set; }
[
InputMode(
InputMode: InputModeAttribute.InputModeEnum.numeric
)
]
public byte Age { get; set; }
}
```
### cshtml
```cshtml
@model PersonModel
```
### html
¿Cómo debiese quedar el ``html``?
```html
```