01-21-2014 11:46 AM
Hello,
Why is it not possible to customise "single doc suggestion" with a "selection formatter" and inline Javascript in nuxeo 58 ?
thank you
01-21-2014 02:23 PM
Hi!
The "selection formatter" and "inline javascript" are widget properties to customize the select2 suggestion box.
Since view mode is readonly, select2 is not used to render the widget and it falls back to the way it was rendered in 5.6.
A workaround would be to force the widget mode to edit mode:
but then you'd be able to change the selection despite you're in view mode (which is functionally weird). To achieve a functionally acceptable solution, you could use the readonly mode of select2
Unfortunately, it won't work because this select2 "readonly" property is not supposed to be set as a widget property and is only determined by the widget mode.
I created NXP-13611 improvement to achieve this.
01-21-2014 02:23 PM
Hi!
The "selection formatter" and "inline javascript" are widget properties to customize the select2 suggestion box.
Since view mode is readonly, select2 is not used to render the widget and it falls back to the way it was rendered in 5.6.
A workaround would be to force the widget mode to edit mode:
but then you'd be able to change the selection despite you're in view mode (which is functionally weird). To achieve a functionally acceptable solution, you could use the readonly mode of select2
Unfortunately, it won't work because this select2 "readonly" property is not supposed to be set as a widget property and is only determined by the widget mode.
I created NXP-13611 improvement to achieve this.
02-14-2014 08:48 AM
thank you !
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.