Datalist

Hello.

Is it possible to make a Datalist in Daz Studio? Like HTML's https://www.w3schools.com/tags/tag_datalist.asp

Thanks.

Comments

  • SimonJMSimonJM Posts: 5,997

    I'd say almost certainly, but how easy may depend on what of and what for.

  • Victor_BVictor_B Posts: 391

    There is no Datalist in Qt, right? I need to write such functionality manually, right?

    Bad news.

  • Richard HaseltineRichard Haseltine Posts: 102,729

    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)

  • Victor_BVictor_B Posts: 391

    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.

  • Richard HaseltineRichard Haseltine Posts: 102,729

    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.

Sign In or Register to comment.