function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Thiago Barbosa 1Thiago Barbosa 1 

Selection options and ApexPages.StandardSetController in lightning

I want to create new method in lightning. 
public ApexPages.StandardSetController optySetController;
public list<SelectOption> listviewoptions {
            List<SelectOption> tempList = new List<SelectOption>();
            tempList.add(new selectOption('None',System.Label.NoViewSelection));
            if (optySetController<>null)tempList.addAll(optySetController.getListViewOptions());
            return tempList;

Raj VakatiRaj Vakati
You can able to do it by using lightning:select
    <lightning:select name="selectItem" label="Select an item" onchange="{!c.doSomething}">
        <option value="">choose one...</option>
        <option value="1">one</option>
        <option value="2">two</option>