Skip to content

Commit

Permalink
chore(demo): added example of textarea expandable usage (#8484)
Browse files Browse the repository at this point in the history
Co-authored-by: Денис Буланов <BulanovDO@mosreg.ru>
  • Loading branch information
denzo1993 and Денис Буланов authored Aug 13, 2024
1 parent b48fe58 commit 2111e2d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,12 @@
>
Type a text
</tui-textarea>
<tui-textarea
#textarea
formControlName="testValue3"
class="tui-space_top-4"
[expandable]="textarea.focused"
>
Type a text (expandable on focus)
</tui-textarea>
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ export default class Example {
protected testForm = new FormGroup({
testValue1: new FormControl('A field', Validators.required),
testValue2: new FormControl('This one can be expanded', Validators.required),
testValue3: new FormControl(
'This one can be expanded (expandable on focus)',
Validators.required,
),
});
}

0 comments on commit 2111e2d

Please sign in to comment.