https://github.com/brianlparker/oraktech.inputs
https://github.com/brianlparker/oraktech.inputs
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/brianlparker/oraktech.inputs
- Owner: BrianLParker
- Created: 2020-11-28T12:19:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-09T02:18:56.000Z (over 5 years ago)
- Last Synced: 2026-02-22T09:53:36.154Z (4 months ago)
- Language: C#
- Size: 243 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OrakTech.Inputs
[](https://www.nuget.org/packages/OrakTech.Inputs/)
## Focusable Inputs
Adds FocusAsync Support `EditForm` inputs.
### Inputs Supported
- FInputText
- FInputTextArea
- FInputNumber
- FInputDate
- FInputSelect
- FInputEnum
`_Imports.razor`
```
@using OrakTech.Inputs.Components
```
### Usage
```
fInputText.FocusAsync())">Focus
```
### Set focus on component render.
```
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
await fInputText.FocusAsync();
}
}
```
`FInputEnum`
```
```
or
```
=== @day ===
```
Note: Context="day" prevents a conflict with the `EditForms` "Context" name. Alternately you could rename the `EditForms` context.
```