Home Forums Porto Admin Template disable

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10030458
    pellesoft
    Participant

    Hi, i hope that you had a nice summer!

    I am trying to disable the dropdown with the command enabled=”false” but the dropdown can still be edited. What am i doing wrong?

    Best regards
    Pelle

    <select class=”form-control” enabled=”false” multiple=”multiple” data-plugin-multiselect data-plugin-options='{ “maxHeight”: 200, “enableCaseInsensitiveFiltering”: true }’ id=”ms_example6″>
    <optgroup label=”Mathematics”>
    <option value=”analysis”>Analysis</option>
    <option value=”algebra”>Linear Algebra</option>
    <option value=”discrete”>Discrete Mathematics</option>
    <option value=”numerical”>Numerical Analysis</option>
    <option value=”probability”>Probability Theory</option>
    </optgroup>
    <optgroup label=”Computer Science”>
    <option value=”programming”>Introduction to Programming</option>
    <option value=”automata”>Automata Theory</option>
    <option value=”complexity”>Complexity Theory</option>
    <option value=”software”>Software Engineering</option>
    </optgroup>
    </select>


    #10030462
    Support2
    Keymaster

    Hello Pelle,

    Thanks! Hope you too!

    Try with the disabled Instead of enabled="false":

    <select class=”form-control” disabled multiple=”multiple” data-plugin-multiselect data-plugin-options='{ “maxHeight”: 200, “enableCaseInsensitiveFiltering”: true }’ id=”ms_example6″>

    Please, try that and let us know if you need further assistance.

    Kind Regards,

    Rodrigo.


    #10030515
    pellesoft
    Participant

    Thank you very much. It worked but there are some things that could be better. If you look at this, the dropbox is not grayed out, only disabled so that when pressed, no data will be showed – all other controls are greyed out. It would be nice to have all the controls to behave and look the same. If you need to dig in to this scenario, please contact me and i can show you the result that i got.


    #10030519
    Support2
    Keymaster

    Hello Pelle,

    In our tests here the select is grayed out when disabled (at really just apply a opacity) and turns the select unusable.
    This is the expected behavior for disabled inputs/selects.

    Regarding your result, sure if you can share with us would be great. We are open for new ideas.

    Thanks.

    Kind Regards,

    Rodrigo.


Viewing 4 posts - 1 through 4 (of 4 total)