Hence the reason, I need to confirm from Harbs the array data type that is supported in spectrum.
On Tue, 11 Jan 2022, 21:33 Maria Jose Esteve, <[email protected]> wrote: > Hi, > > From what I see in the "ListModel.as" code it allows Object, IArray and > IArrayList. > > > > Hiedra > > > > *De:* Roman Isitua <[email protected]> > *Enviado el:* martes, 11 de enero de 2022 20:40 > *Para:* [email protected] > *Asunto:* Re: Spectrum UI components > > > > It is now displaying. The issue was not related to the sp:List as I > initially thought. > > > > > > > > <sp:Group> > > > > <sp:beads> > > <js:ContainerDataBinding /> > > </sp:beads> > > > > > > <sp:FlexContainer className="home_side_area" wrap="false"> > > <sp:Icon> </sp:Icon> > > <sp:Button text="Add New" flavor="cta"></sp:Button> > > <sp:List id="navLinks" className="home_side_nav" labelField= > "description" dataProvider="{menuItemList}" > > change="onSelectMenu(event)"/> > > <sp:Button text="Log Out" click="logOut(event)"></sp:Button> > > </sp:FlexContainer> > > > > <sp:Container id="mainArea"> > > <sp:Label text="Overview area"></sp:Label> > > </sp:Container> > > > > > > > > </sp:Group> > > > > > > > > > > I changed the parent component from flex container to group. Though that > had nothing to do with the issue I was having. > > > > My current question > > > > is Array data type the only collection class that is supported in spectrum > ? > > > > > > On Tue, Jan 11, 2022 at 6:30 PM Roman Isitua <[email protected]> > wrote: > > Hi, > > > > I am trying to populate my first List <sp:List> for some reason it is not > being populated. Here is my code snippet. > > > > <sp:beads> > > <js:ContainerDataBinding /> > > </sp:beads> > > > > > > <sp:FlexContainer className="home_side_area" wrap="false"> > > <sp:Icon> </sp:Icon> > > <sp:Button text="Add New" flavor="cta"></sp:Button> > > <sp:List id="navLinks" className="home_side_nav" dataProvider= > "{newMenuItemList}" > > labelField="description" change="onSelectMenu(event)"/> > > <sp:Button text="Log Out" click="logOut(event)"></sp:Button> > > <sp:beads> <js:ContainerDataBinding /> </sp:beads> > > </sp:FlexContainer> > > > > > > I have the following questions > > 1. what is the expected data provider ? Array, > or org.apache.royale.collections.ArrayList ? > > I have tried both none of them works. > > > > 2. Did I register data binding correctly ? > > The above ui is wrapped by a FlexContainer. > > > > my data source is supposed to be an arrayList of data transfer objects > (MenuItemDTO) with get set functions for each field. > > > > > > > > On Sat, Jan 8, 2022 at 5:47 PM Harbs <[email protected]> wrote: > > Use a <sp:PasswordField> > > > On Jan 8, 2022, at 4:34 PM, Roman Isitua <[email protected]> wrote: > > > > Hi Harbs, > > > > I am trying to create a login form. How do I hide the password in > > > > <sp:TextField placeholder="Enter password"/> > > > > could it be that it does not support password hiding ? Do I have to > resort to using royale basic text field ? > >
