Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to toggle toolbar or update the component with modified options #22

Open
jadsolucions opened this issue May 16, 2019 · 3 comments
Open

Comments

@jadsolucions
Copy link

Hello There! I was trying the package and I wanted to show the toolbar only when the text-area has focus in it.

In angular 7, after changing the value of the options, the toolbar doesn't hide/show.

COMPONENT:
public mdeOptions = {
spellChecker: false,
status: false,
}
test() {
this.mdeOptions = {...this.mdeOptions, ...{toolbar: false}};
}

HTML:
<simplemde [(ngModel)]="pregunta.cabecera" (options)="mdeOptions">

@vixson
Copy link

vixson commented May 18, 2019

HTML:

<simplemde [(ngModel)]="pregunta.cabecera" (options)="mdeOptions">

Try HTML:

<simplemde [(ngModel)]="pregunta.cabecera" [options]="mdeOptions">

options attribute is an @input not @output.

@doxiaodong
Copy link
Owner

Not be supported yet. The options can't be changed ngAfterViewInit.

@vixson
Copy link

vixson commented May 27, 2019

Oh... I thought it could.
Well. You can please the support.

Not be supported yet. The options can't be changed ngAfterViewInit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants