10-13-2016 01:51 PM
Hi,
i used following InlineEditProperty and added placeHolder. but it does not working? how to solve this issue?
{
name: "alfresco/renderers/InlineEditProperty",
config: {
placeHolder: "enter title here..",
propertyToRender: "title",
refreshCurrentItem: true,
editOnClickRenderedValue: false,
requirementConfig: {
initialValue: false
},
}
Regards
janaka
10-13-2016 07:31 PM
The reason this does not work is because this configuration property is simply not supported on an InlineEditProperty widget. It is supported on a TextBox widget though, which the InlintEditProperty uses internally. You could add support for the placeholder by extending from the InlineEditProperty and overriding the getPrimaryFormWidget function. Alternatively, I think Dave would be grateful if you enhanced the InlineEditProperty to allow configuration of the edit form widget (I could think of support for DateTextBox and other widget types) and create a pull request on the main project for such an enhancement.
10-13-2016 03:04 PM
could you elaborate a bit on what you are trying to achieve?
10-13-2016 07:31 PM
The reason this does not work is because this configuration property is simply not supported on an InlineEditProperty widget. It is supported on a TextBox widget though, which the InlintEditProperty uses internally. You could add support for the placeholder by extending from the InlineEditProperty and overriding the getPrimaryFormWidget function. Alternatively, I think Dave would be grateful if you enhanced the InlineEditProperty to allow configuration of the edit form widget (I could think of support for DateTextBox and other widget types) and create a pull request on the main project for such an enhancement.
Tags
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.