An open API service indexing awesome lists of open source software.

https://github.com/andres10121997/webextension


https://github.com/andres10121997/webextension

csharp visual-studio

Last synced: 11 months ago
JSON representation

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

```