We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Hi. How can I have chips of equal width?

Hi. How can I have chips of equal width?

3 Replies

SA Shameer Ali Baig Sulaiman Ali Baig Syncfusion Team January 23, 2020 05:39 AM UTC

Hi Ebi, 
 
Thanks for contacting Syncfusion support. 
 
In EJ2 Chips control, we have provided cssClass property. For this requirement, you can add the custom class for Chips control by using this property. Based on this custom class, you can add the styles for chips. Refer the below code block. 
 
<EjsChipList CssClass="custom"> 
    <ChipCollection> 
        <ChipListChip Text="Chai"></ChipListChip> 
        <ChipListChip Text="Chang"></ChipListChip> 
        <ChipListChip Text="Aniseed Syrup"></ChipListChip> 
        <ChipListChip Text="Ikura"></ChipListChip> 
    </ChipCollection> 
</EjsChipList> 
 
<style> 
    .custom.e-chip { 
        width: 250px; 
    } 
</style> 
   
We have prepared sample for your convenience. Kindly refer to the below link for the sample. 
 
 
Please let us know if you need any assistance. 
 
Regards, 
Shameer Ali Baig S. 



ET ebi torabi January 23, 2020 03:05 PM UTC

Hi Shameer Ali Baig S.. Thank you very much.
It worked very well.


SA Shameer Ali Baig Sulaiman Ali Baig Syncfusion Team January 23, 2020 06:26 PM UTC

Hi Ebi, 
 
We are happy that the reported problem at your end is resolved. Please, let us know if you need any assistance. We will be happy to assist you. 
 
Regards, 
Shameer Ali Baig S. 


Loader.
Live Chat Icon For mobile
Up arrow icon