how placeHolder attribute work with InlineEditProperty

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
janaka1984
Established Member II

how placeHolder attribute work with InlineEditProperty

Jump to solution

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

1 Solution

Accepted Solutions
afaust
Master

Re: how placeHolder attribute work with InlineEditProperty

Jump to solution

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.

2 Replies
mrks_js1
Established Member II

Re: how placeHolder attribute work with InlineEditProperty

Jump to solution

could you elaborate a bit on what you are trying to achieve?

afaust
Master

Re: how placeHolder attribute work with InlineEditProperty

Jump to solution

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.