Datalist

Hello.
Is it possible to make a Datalist in Daz Studio? Like HTML's https://www.w3schools.com/tags/tag_datalist.asp
Thanks.
You currently have no notifications.
Hello.
Is it possible to make a Datalist in Daz Studio? Like HTML's https://www.w3schools.com/tags/tag_datalist.asp
Thanks.
Licensing Agreement | Terms of Service | Privacy Policy | EULA
© 2025 Daz Productions Inc. All Rights Reserved.
Comments
I'd say almost certainly, but how easy may depend on what of and what for.
There is no Datalist in Qt, right? I need to write such functionality manually, right?
Bad news.
Daz Script has a lot of DOM objects, but not a Datalist as far as I can tell. What I would do is build an array with an array - [ sId, [ sValue1, sValue2 , svalue3 , ...] ] in whatever was supposed to be preparing this, then send that array to a function which built up a formatted string with the values inserted - e.g.
var sMyDatalist = "<input list=%1 >\n\n<datalist id=%1>"arg( aMyData[ 0 ] );
then iterate over the aray of entries
sMyDatalist = sMyDatalist + "/n<option value=%1>".arg( aMyData[ 1 ][ n ] );
and finish up with
sMyDatalist = sMyDatalist + "/n</datalist>";
or soemthing like that (haven't tested this)
I know this. I wrote Datalist functionality in Javascript several years ago (before HTTM5).
"Daz Script has a lot of DOM objects", but has no documentation. I know this too.
Thanks for answer anyway.
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/start
Look under D for the various DOM objects - it's opaque to me as I don't know the subject, but it looks as if it provides the basic definitions.