This library was generated with Angular CLI version 18.0.0.
update your package.json
npm install @joster-dev/chaos-control --save
import the module
+ import { FormControlModule } from '@joster-dev/form-control';
@NgModule({
imports: [
+ FormControlModule
],
})
to handle click events in an accessible manner
- style: outset border
-
isActive: boolean = false
- style: inset border
-
isDisabled: boolean = false
- style: solid border
- when disabled, button will not be tab indexable
isValid: boolean = true
type: 'button' | 'submit' = 'button'
borderRadiusLeft: boolean = true
borderRadiusRight: boolean = true
-
onBlur
emitsFocusEvent
-
onClick
emitsMouseEvent
to display information alongside controls
model: string
result will be string | null
- if line break or overflow
- height increases
- if cleared by the user or form
- height resets
result will be number | null
- if user enters
e
character- will not change
- if user enters
.
character- if
[step]
is>= 1
- will not change
- if
to ask the user to choose from a few items
result will be <item-key>[] | <item-key> | null
- where
<item-key>
is thekey
property of theitems
input
isMultiple: boolean = false
items: { key: boolean | number | string, value: string }[] = []
result will be string | null
-
string
result matches/^[0-9a-fA-F]{6}$/
result will be FileList | null
to ask the user to choose from many items
items: { key: boolean | number | string, value: string }[] = []