Replaced with timepicki's widget control

Answered
0
0

Hello.

wisej widget control with timepicki in javascript
When replacing with Replace the program code below
Please tell me how to do it.
————————————————
<input type = “text” name = “time” />
<script>
$ (“input”). timepicki ();
</ script>
————————————————
* Using timepicki as a sample in javascript
Attach.

Attachment
  • You must to post comments
Best Answer
0
0

Add the scripts etc to default.html

The add this to the TextBox in InitScript:

var field = this.getChildControl("textfield");
$(field.getContentElement().getDomElement()).timepicki();

Wisej uses a show dom system. It’s not like plain js that directly accesses the dom.

Also in the CssStyle of the TextBox put “overflow:visible” because the timepicki widget incorrectly uses the container to create the overlay widget which makes it fail as soon as the <input> is inside a div with overflow hidden. Additionally it also incorrectly uses the container to resize the popup. You will probably want to fix the timepicki javascript.

 

 

Attachment
  • You must to post comments
0
0

Luca (ITG)
Thank you

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.