-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
New Component: Inplace #970
Comments
Is it possible to close (deactivate) p-inplace using code only and avoiding the close button?
What could I actually call in onSelect for p-inplace to actually deactivate? |
@bakasmarius, Hello did you manage to do that? thank you |
Hi @MohammedFCIS, no - I ended up not using this component at all. |
We'll add collapsed property so you can bind to it also add a public method. |
Just realized we have a property already named active; <p-inplace closable="closable" [style]="{'min-height':'30px'}" [active]="active">
<span pInplaceDisplay>
Click to Edit
</span>
<span pInplaceContent>
<input type="text" value="PrimeNG" pInputText>
</span>
</p-inplace>
<button (click)="active=!active">Toggle</button> |
Thank you @bakasmarius for reply, hoping the best for you |
My understanding is a control that switches from label to text should return back to label onblur vs. staying open and requiring the user to select an 'x' ? |
I have to click the toggle button twice in the example above for it to work for me |
@sgentile |
Inspired by PrimeFaces inplace;
http://www.primefaces.org/showcase/ui/input/inplace.xhtml
The text was updated successfully, but these errors were encountered: