54
Views
11
Comments
Solved
Dropdown Icon left positon
Question
Application Type
Reactive
Service Studio Version
11.54.61 (Build 63317)
Platform Version
11.28.0 (Build 43201)

i have a drop down and i wanna make it wide but the problem is the icon of drop down is not on the left, yes its in the position of left but no on the side of left is there some trick to make it to the left? thanks!

2023-10-21 19-42-11
Tousif Khan
Champion
Solution

Hello

If you want to adjust the position of the dropdown arrow make the change to the right, left property of css on this class and add it to your theme or screen style sheet.

.dropdown-container:after {    
height: 8px;
left: auto;
right: 5px;
 top: 15px;
}

I hope this will help
Thanks
Tousif Khan

UserImage.jpg
budang haba

after 2 days, thanks it worked!

2024-05-18 23-16-58
Simone Lopes
Solution

you can add the input with a position relative, without move positions and the icon with position absolute, so the icon will respect the parent container. After that, you can add top and right position


For example: 


input {

   position: relative

}

icon {

      position: absolute; 

      top : 10px;

      right: 10px;

}

2021-11-12 04-59-31
Manikandan Sambasivam

To make the dropdown wider and ensure that the icon is properly aligned to the left in OutSystems, you can use custom CSS. Here are the steps you need to follow:

  1. Add a Custom Class to Your Dropdown:

    • First, add a custom class to your dropdown widget. You can do this in the Properties panel of the dropdown by setting the Style Classes property to something like wide-dropdown.
  2. Add Custom CSS to Your Module:

    • Go to the Interface tab and open the Theme used in your module.
    • Add the following custom CSS to make the dropdown wider and align the icon to the left:

/* Custom CSS for a wider dropdown */

.wide-dropdown select {

    width: 100%; /* Adjust width as needed */

}

/* Ensure the dropdown container is wide enough */

.wide-dropdown {

    width: 100%; /* Adjust width as needed */

}

/* Align the icon to the left */

.wide-dropdown::after {

    left: 10px; /* Adjust this value to position the icon as needed */

    right: auto;

}

  1. Adjust the Dropdown Width:

    • You can adjust the width property to make the dropdown as wide as you need.
  2. Adjust the Icon Position:

    • The left: 10px in the ::after pseudo-element can be adjusted to properly align the icon to the left side of the dropdown. You might need to tweak this value to achieve the desired alignment.
UserImage.jpg
budang haba

thank you for replying sir sorry for having mixed up but i want this drop down icon to be on the right right not the middle right  thanks!


2024-05-14 06-52-28
Srigovindh-EONE

Hi budang haba ,

Click here to check

Create a dropdown inside the container and assign a unique class name to the container for example ( custom-dropdown ).

Add CSS to align the dropdown icon to the left and customize the code on the right as needed 


.custom-dropdown .dropdown-container:after

 {    top: 15px !important; 

   left: auto !important;  

  right: 16px !important;  

width: 10px !important;

}

refer the OML

dropdown-custom.oml
UserImage.jpg
budang haba

thank you for uploading oyur oml i tried it sir but theres a split blink like error? i dont know sir

2024-05-14 06-52-28
Srigovindh-EONE

can you share your oml

UserImage.jpg
budang haba

 i tried your oml sir but wont work for me

2023-10-21 19-42-11
Tousif Khan
Champion
Solution

Hello

If you want to adjust the position of the dropdown arrow make the change to the right, left property of css on this class and add it to your theme or screen style sheet.

.dropdown-container:after {    
height: 8px;
left: auto;
right: 5px;
 top: 15px;
}

I hope this will help
Thanks
Tousif Khan

UserImage.jpg
budang haba

after 2 days, thanks it worked!

2024-05-18 23-16-58
Simone Lopes
Solution

you can add the input with a position relative, without move positions and the icon with position absolute, so the icon will respect the parent container. After that, you can add top and right position


For example: 


input {

   position: relative

}

icon {

      position: absolute; 

      top : 10px;

      right: 10px;

}

2022-12-30 09-46-57
Deepika Patel

Hi @budang haba,

Please refer the CSS of the oml.

Hope this helps!

Thanks,

Dropdown Icon.oml
UserImage.jpg
budang haba

Good day there is so many screen, where can i find the drop down

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.