selvi jp

selvi jp

  • NA
  • 323
  • 77.3k

how can i split the array in dropdown menu

Aug 16 2021 7:27 AM

here i want to display the name and stored their id

var defaultValueArr = [];

Details.map((Det)=>{

defaultValueArr.push({ label:Det.profile_name, value:Det.user_id});  });

{Details.map(Det=>

options={Dropdownlist.map(e => ({ label: e.Name, value: e.Id}))} isMulti /> )}I want to split profilename by comma like this.


Answers (1)