-
Notifications
You must be signed in to change notification settings - Fork 724
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
[RFR] Add the ability to set field template with label #772
Conversation
[RFR] Add the ability to set field template with label
When I try the example above, I get an infinite loop. Any idea what's causing this? I'm seeing the same behavior for all fields I try this on.
Error:
|
@jamespsterling did you resolve this infinite loop? I am observing the same behavior. |
@psorowka the digest loop is triggered when this is used with |
@ajarbol thanks for your comment! However, I just realized that my problems seem to result in the fact, that this feature hasn't actually been released to npm yet :) In the current release (0.9.1), the second parameter on @fzaninotto this feature is already described in the docs but not yet available in the release. Do you plan to include it in an upcoming release? |
Yes it will be in the next release, with no release date yet. |
thanks. so at least this is now documented allowing others to avoid this struggle :) |
Is this still unreleased? Adding true as the 2nd argument to template method does nothing. |
You need to use version 1.0.0-alpha4 (which is not labeled stable) to test it. |
@fzaninotto great, I'll give it a shot! Any idea when 1.0.0 will be released? |
In
showView
,editionView
, andcreationView
, the template zone covers only the field itself - not the label. To force the template to replace the entire line (including the label), passtrue
as second argument to thetemplate()
call. This can be very useful to conditionally hide a field according to a property of the entry:Closes #755, #764