timestamp.comp

The Timestamp widget is combination of date and time widgets. It is used when it is required both date and time. The date and time must be specified in DD/MM/YYYY HH:MM format.

Input Parameters:

Parameters

Parameter Name Description Default Value
id Select ID. Undefined.
description Tooltip. Empty string.
value change read/write Empty string.
readonly can't change state if in readonly mode Undefined.

Examples

Demo

Timestamp_example.png

The demonstration of the demo is available here.

ReadOnly

You must set readonly to 1.

<h2>Readonly example</h2>
<& /input/timestamp.comp, 
        id => 'test_timestamp',
        value => '1/04/2016 16:00',
        readonly => 1,
        onchange => 'alert("New timestamp Data:"+this.get_value());',
        description => 'Test ReadOnly Descrizione timestamp',
&>
<br>

Write

default readonly is 0 so you can remove parameter or you can set to 0 or undef.

<h2>Write example</h2>
<& /input/timestamp.comp, 
        id => 'test_timestamp1',
        value => '1/04/2016 10:10',
        readonly => 0,
        onchange => 'alert("New timestamp Data:"+this.get_value());',
        description => 'Test Write Descrizione timestamp',
&>
I Attachment Action Size Date Who Comment
Timestamp_example.pngpng Timestamp_example.png manage 12 K 03 Apr 2016 - 16:47 DipenPatel timestamp example
timestamp_example.pngpng timestamp_example.png manage 12 K 01 Apr 2016 - 18:24 DipenPatel timestamp example
Topic revision: r6 - 21 Sep 2016, JanezStangelj
This site is powered by FoswikiCopyright (©) Leader.IT - Italy P.I. IT01434390223 Privacy policy & use of cookies