Underline and element in dropdown list AppGini 22.13

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
Moh Youba
Veteran Member
Posts: 228
Joined: 2017-03-12 09:31

Underline and element in dropdown list AppGini 22.13

Post by Moh Youba » 2022-05-07 19:47

Hello guys

is it possible to underlinge an element in a dropdown list
for example, I have a dropdown list with DAYS;;monday;;tuesday, I want to underline DAYS

thank you

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: Underline and element in dropdown list AppGini 22.13

Post by pbottcher » 2022-05-08 15:38

Hi,

that should be possible. You may try to add this to the DV-> footer code.

Code: Select all

$j('#FIELDNAME').on('select2-open',  function () {
        $j('.select2-result-label:contains("DAYS")').html($j('.select2-result-label:contains("DAYS")').html().replace("DAYS","<u>DAYS</u>"));
    });
REPLACE FIELDNAME with your fieldname. I assumed DAYS is what you want to underline, otherwise replace that as well.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

Moh Youba
Veteran Member
Posts: 228
Joined: 2017-03-12 09:31

Re: Underline and element in dropdown list AppGini 22.13

Post by Moh Youba » 2022-05-08 19:38

Hello sir
sorry, do mean I create footer-extras-dv.js file and put inside?

thank you

Post Reply