@jdpo2008/ngx-ds 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/fesm2022/jdpo2008-ngx-ds.mjs +1079 -112
- package/fesm2022/jdpo2008-ngx-ds.mjs.map +1 -1
- package/package.json +1 -1
- package/types/jdpo2008-ngx-ds.d.ts +361 -12
package/README.md
CHANGED
|
@@ -83,11 +83,11 @@ import { FormField, form, required } from '@angular/forms/signals';
|
|
|
83
83
|
})
|
|
84
84
|
export class Profile {
|
|
85
85
|
model = signal({ name: '' });
|
|
86
|
-
f = form(this.model, (p) => required(p.name));
|
|
86
|
+
f = form(this.model, (p) => required(p.name, { message: 'Name is required' }));
|
|
87
87
|
}
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
The field's value, touched and disabled state stay in sync. The field's `min` and `max` validators also set the limits of NumberInput and RangeSlider, and `max` sets the star count of Rating.
|
|
90
|
+
The field's value, touched and disabled state stay in sync. The field's `min` and `max` validators also set the limits of NumberInput and RangeSlider, and `max` sets the star count of Rating. Once the field is touched, its errors show automatically: Input, Textarea, NumberInput, Select, Dropdown, Autocomplete, MultiSelect, Datepicker and DateRangePicker show the first error's `message` and switch to the error style. An error without a `message` only switches the style. An explicit `[errorMessage]` takes priority.
|
|
91
91
|
|
|
92
92
|
### Toasts and confirmations
|
|
93
93
|
|