- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2016 03:04 PM
could you elaborate a bit on what you are trying to achieve?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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.
