cancel
Showing results for 
Search instead for 
Did you mean: 

how placeHolder attribute work with InlineEditProperty

janaka1984
Star Contributor
Star Contributor

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 ACCEPTED ANSWER

afaust
Legendary Innovator
Legendary Innovator

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.

View answer in original post

2 REPLIES 2

mrks_js1
Star Contributor
Star Contributor

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

afaust
Legendary Innovator
Legendary Innovator

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.