Jump to content

Recommended Posts

Hi there,

I would appreciate if someone could help me modifying styles of a dropdown on inline insert functionality of Tabular Report Datapage.

I have a Cascading dropdown "EMAIL" where I would like to assign a special font and add a bottom border for each option.

The challenge I am facing is that I have other dropdowns on this Datapage and I would like them to preserve default styling.

24b0d56a8dda.png

Thanks,

vitalikssssss  

Link to post
Share on other sites

You should Add Event Listener on that particular Input and apply style to all child Nodes

<script type="text/javascript">
    document.addEventListener('DataPageReady', function(event) {
        document.querySelectorAll("[name~='InlineAddemail']")[0].addEventListener('click', function(){
            if(document.querySelectorAll('.Ctnr')[0]){
                document.getElementsByClassName('DropBox')[0].style.setProperty('width', '350px');
                document.querySelectorAll('.Option').forEach(function(elem){
                elem.style.setProperty('border-bottom', '1px solid black');
                elem.style.fontFamily = 'Lucida Console';
                });
            }
        });
    });
</script>

InlineAddemail is your Input name attribute. You can find it via chrome developer console.

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...