Re: DateInput5 in Seaside widget preinitialized value view
Esteban Maringolo <[email protected]> Mon, 6 Sep 2021 15:17:34 -0300
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <CAJMgPC+q8qNamEmdVgu1U66A+TwXsc4DBFG7P5nYuS_M0SqqKg@mail.gmail.com> |
--===============7088727601622388824== Content-Type: multipart/alternative; boundary="000000000000f1c9a705cb57abd1" --000000000000f1c9a705cb57abd1 Content-Type: text/plain; charset="UTF-8" Hi, The native date input (input type="date"), will take a string value as input if formatted as yyyy-mm-dd (e.g. '2021-09-06'). html dateInput5 on: #startDate of: self contract; id: 'startDate'; step: 1; title: 'Start Date'; value: self contrato startDate yyyymmdd; required. Best regards, Esteban A. Maringolo On Mon, Sep 6, 2021 at 2:22 PM Oswall Verny Arguedas C. <[email protected]> wrote: > Regarding dateInput5 in Seaside. > How a previously initialized date can be displayed in the form's > dateInput5 widget. > I use a pre-initialized date type value that is a property of the object > to render on the form. > > html label > for: 'startDate'; > with: 'Start Date: '. > html dateInput5 > on: #startDate of: self contract; > id: 'startDate'; > step: 1; > title: 'Start Date'; > value: self contrato startDate; > required. > > Widget don't render date initialized. > I can't get it to show up. > > Thanks, > Oswall > > _______________________________________________ > seaside mailing list > [email protected] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > --000000000000f1c9a705cb57abd1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi,<div><br></div><div>The native date input (input type= =3D"date"), will take a string value as input if formatted as yyy= y-mm-dd (e.g. '2021-09-06').</div><div><br></div><div><span style= =3D"color:rgb(0,0,0);font-size:13.6364px">html dateInput5</span><br style= =3D"color:rgb(0,0,0);font-size:13.6364px"><span style=3D"color:rgb(0,0,0);f= ont-size:13.6364px">=C2=A0 on: #startDate=C2=A0of: self contract;</span><br= style=3D"color:rgb(0,0,0);font-size:13.6364px"><span style=3D"color:rgb(0,= 0,0);font-size:13.6364px">=C2=A0 id: 'startDate';</span><br style= =3D"color:rgb(0,0,0);font-size:13.6364px"><span style=3D"color:rgb(0,0,0);f= ont-size:13.6364px">=C2=A0 step: 1;</span><br style=3D"color:rgb(0,0,0);fon= t-size:13.6364px"><span style=3D"color:rgb(0,0,0);font-size:13.6364px">=C2= =A0 title: 'Start Date';</span><br style=3D"color:rgb(0,0,0);font-s= ize:13.6364px"><span style=3D"color:rgb(0,0,0);font-size:13.6364px">=C2=A0 = value: self contrato startDate yyyymmdd;</span><br style=3D"color:rgb(0,0,0= );font-size:13.6364px"><span style=3D"color:rgb(0,0,0);font-size:13.6364px"= >=C2=A0 required.</span><br style=3D"color:rgb(0,0,0);font-size:13.6364px">= </div><div><br></div><div>Best regards,</div><div><br></div><div><br clear= =3D"all"><div><div dir=3D"ltr" data-smartmail=3D"gmail_signature">Esteban A= . Maringolo</div></div><br></div></div><br><div class=3D"gmail_quote"><div = dir=3D"ltr" class=3D"gmail_attr">On Mon, Sep 6, 2021 at 2:22 PM Oswall Vern= y Arguedas C. <<a href=3D"mailto:[email protected]" target=3D"_blank">s= [email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_quote"= style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);p= adding-left:1ex"><div dir=3D"ltr"><div><div dir=3D"ltr"><div dir=3D"ltr"><d= iv><div dir=3D"ltr"><div><div dir=3D"ltr"><div dir=3D"ltr"><div style=3D"co= lor:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:13.6364px">= Regarding dateInput5 in Seaside.<br>How a previously initialized date can b= e displayed in the form's dateInput5 widget.<br>I use a pre-initialized= date type value that is a property of the object to render on the form.<br= ><br>html label<br>=C2=A0 for: 'startDate';<br>=C2=A0 with: 'St= art Date: =C2=A0'.<br> html dateInput5<br>=C2=A0 on: #startDate= =C2=A0of: self contract;<br>=C2=A0 id: 'startDate';<br>=C2=A0 step:= 1;<br>=C2=A0 title: 'Start Date';<br>=C2=A0 value: self contrato s= tartDate;<br>=C2=A0 required.<br><br>Widget don't render date=C2=A0init= ialized.<br>I can't get it to show up.</div><div style=3D"color:rgb(0,0= ,0);font-family:Arial,Helvetica,sans-serif;font-size:13.6364px"><br></div><= div style=3D"color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-s= ize:13.6364px">Thanks,</div><div style=3D"color:rgb(0,0,0);font-family:Aria= l,Helvetica,sans-serif;font-size:13.6364px">Oswall<br><table style=3D"font-= size:10pt;width:664.545px" cellspacing=3D"2" cellpadding=3D"2" border=3D"0"= ><tbody></tbody></table><br></div></div></div></div></div></div></div></div= ></div></div> _______________________________________________<br> seaside mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">sea= [email protected]</a><br> <a href=3D"http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seasi= de" rel=3D"noreferrer" target=3D"_blank">http://lists.squeakfoundation.org/= cgi-bin/mailman/listinfo/seaside</a><br> </blockquote></div> --000000000000f1c9a705cb57abd1-- --===============7088727601622388824== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18Kc2Vhc2lkZSBt YWlsaW5nIGxpc3QKc2Vhc2lkZUBsaXN0cy5zcXVlYWtmb3VuZGF0aW9uLm9yZwpodHRwOi8vbGlz dHMuc3F1ZWFrZm91bmRhdGlvbi5vcmcvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL3NlYXNpZGUK --===============7088727601622388824==--