Skip to content

Added textbox for input but unable set focus #17

@HemTech

Description

@HemTech

I have clone this repository and added input control but not able to set the focus:
I have added textbox to elementFactories using .set('textbox', blessed.textbox) and created a component to get user input

import { Component } from '@angular/core';
@component({
selector: 'pl-box-example',
template: <box #test top="center" left="center" height="10" width="21" [keyable]="'true'"> </box> <textbox left="center" [style]="style" top="5" keyable="true" value="first" height="2" width="10"></textbox>,
})
export class TextBoxComponent {
style = {
underline: true,
fg: 'white',
bg: 'yellow',
border: {
fg: 'red',
},
};
}
can you please help me to set focus to an input component?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions