Hi
I want to hide an icon based in dropbox API, that returns a field named ‘.tag’
This is my code but i don’t know how i get field starts with point
dmx-hide= ".tag == ‘file’ "
If you want to hide an element with a class name of tag
, then you can do this using CSS. As an example:
.tag {
visibility: none;
}
That is not a correct expression. Not sure if you perhaps mean api.tag == 'file'
or api['.tag'] == 'file'
, where api is the object that contains the tag field.
Thanks Patrick, Ben for your anwer, but my dropbox api json returns a first key named literally '.tag', and i will show an icon image filtered by condition if its 'file' or 'folder', but first point in key don't works in expression picker, and i don't know how write manual expression. This is a sample json code.
"data": {
"entries": [
{
".tag": "file",
"name": "image.jpg",
"path_lower": "/folder/projects/test",
"path_display": "/Folder/projects/test",
"parent_shared_folder_id": "4576586970",
"id": "id:qeftPpYUGsAABBBAABI6lA",
"sharing_info": {
"read_only": false,
"parent_shared_folder_id": "152387654951",
"traverse_only": false,
"no_access": false
}
},