worktile / worktile/slate-angular
Demo with Angular FormGroup
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 188
- Forks
- 30
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 4
Description
We like to use Slate-Angular in the context of angulars FormGroup. For example to validate a required input field. Something like:
<mat-form-field>
<slate-editable
formControlName="requiredInput"
required
[editor]="editor"
[keydown]="keydown()"
[renderElement]="renderElement()"
[renderText]="renderText()"
>
<mat-error ngIf="myForm.controls.requiredInput.errors['required']">
This input is required.
</mat-error>
</mat-form-field>
Could you add a demo on how to achieve this? Or point me in the right direction and I will provide a PR with a demo.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the repository's existing demos and the Angular FormGroup integration described in the issue. Add a demo showing a required Slate editor field within a form and displaying its validation error; done means the example visibly reports the required-input error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100