FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



Sep 7, 2018, 3:33 PM
13 Posts

Xpages - dojo time picker

  • Category: Dojo and Client Side JavaScript
  • Platform: All
  • Release: All
  • Role:
  • Tags:
  • Replies: 0

Hi All,

 

I am using dojo time picker in my xpages. It is working fine. But I want to show the time intervals as auto dropdown when cursor is on the field without clicking the time picker icon. How to achieve this.

 

<xp:inputText id="startTime"
                                styleClass="input-group form-control"
                                value="#{sessionScope.starttime}"
                                style="background-color:#FAFAD2" loaded="true">
                                <xp:this.converter>
                                    <xp:convertDateTime type="time"
                                        timeStyle="short">
                                    </xp:convertDateTime>
                                </xp:this.converter>

                                <xp:this.attrs>
                                    <xp:attr name="data-dojo-props"
                                        value="constraints: {min:'T01:00:00',  max:'T23:00:00', timePattern: 'hh:mm a', clickableIncrement: 'T01:00:00',visibleIncrement: 'T01:00:00' }">
                                    </xp:attr>
                                    <xp:attr name="value"
                                        value="T07:00:00">
                                    </xp:attr>

 

                                    
                                    
                                </xp:this.attrs>

 

 


                                
                                <xp:dateTimeHelper></xp:dateTimeHelper>

 

 


                            </xp:inputText>


FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.