@Carlos, I can add that line about the first listed state being the default state.
Is it okay if I go back in and restore my revision? On Wed, Jun 6, 2018 at 11:05 AM, Carlos Rovira <[email protected]> wrote: > Hi Piotr, > > I think what Andrew wants is, in your example: currentState="Desktop" can > be changed to currentState="Mobile", and that view start in that state. > Not write that variable set up at application level. > Right now the way to get this is declare Mobile state before Desktop state. > > Thanks > > 2018-06-06 15:47 GMT+02:00 Piotr Zarzycki <[email protected]>: > >> Andrew, >> >> Look into Transpiledaction script example [1]. I don't switch here >> between top level js:View, but I'm using separate views specified in the >> other files. I think you may apply similar approach once you start working >> on your app. You can make one view and inside that view start using States. >> >> [1] https://bit.ly/2JjhEOY >> >> Thanks, >> Piotr >> >> śr., 6 cze 2018 o 15:45 Piotr Zarzycki <[email protected]> >> napisał(a): >> >>> Sorry I meant bead for states. >>> >>> śr., 6 cze 2018 o 15:40 Piotr Zarzycki <[email protected]> >>> napisał(a): >>> >>>> Hi Andrew, >>>> >>>> I'm not sure whether you actually need currentState on the Application >>>> level. The first starting point for your app will be View. If you would >>>> like to have some states above View (application level), you will need to >>>> define on that lever bead for Binding. >>>> >>>> Thanks, >>>> Piotr >>>> >>>> śr., 6 cze 2018 o 15:32 Andrew Wetmore <[email protected]> >>>> napisał(a): >>>> >>>>> @Carlos, where do you define the starting state for the app? What >>>>> happens if you do not define it? In my Flex apps the application tag has a >>>>> "currentState" property, I do believe. If that feature exists, can we add >>>>> it to this example and explain it? >>>>> >>>>> On Wed, Jun 6, 2018 at 10:20 AM, Andrew Wetmore <[email protected]> >>>>> wrote: >>>>> >>>>>> @Carlos, can you update this line in the running code? >>>>>> >>>>>> <html:H1 text="You are logged in!! :)"/> >>>>>> >>>>>> That may get stripped out by the forum tool, of course. What I need >>>>>> is for you to change "You are logged!!" to "You are logged in!!" >>>>>> >>>>>> I have made the change in the code in the blog post. >>>>>> >>>>>> Thanks! >>>>>> >>>>>> On Wed, Jun 6, 2018 at 10:09 AM, Andrew Wetmore <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> Oh, this feature is essential to my apps, so I will go look at it in >>>>>>> a few minutes. >>>>>>> >>>>>>> On Wed, Jun 6, 2018 at 9:32 AM, Carlos Rovira < >>>>>>> [email protected]> wrote: >>>>>>> >>>>>>>> Hi Andrew, >>>>>>>> >>>>>>>> hope you can get some time to review this: >>>>>>>> >>>>>>>> https://royale.codeoscopic.com/using-view-states-to-show-or- >>>>>>>> hide-content/ >>>>>>>> >>>>>>>> Thanks! :) >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Carlos Rovira >>>>>>>> http://about.me/carlosrovira >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Andrew Wetmore >>>>>>> >>>>>>> http://cottage14.blogspot.com/ >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Andrew Wetmore >>>>>> >>>>>> http://cottage14.blogspot.com/ >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Andrew Wetmore >>>>> >>>>> http://cottage14.blogspot.com/ >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> -- >>>> >>>> Piotr Zarzycki >>>> >>>> Patreon: *https://www.patreon.com/piotrzarzycki >>>> <https://www.patreon.com/piotrzarzycki>* >>>> >>> >>> >>> -- >>> >>> Piotr Zarzycki >>> >>> Patreon: *https://www.patreon.com/piotrzarzycki >>> <https://www.patreon.com/piotrzarzycki>* >>> >> >> >> -- >> >> Piotr Zarzycki >> >> Patreon: *https://www.patreon.com/piotrzarzycki >> <https://www.patreon.com/piotrzarzycki>* >> > > > > -- > Carlos Rovira > http://about.me/carlosrovira > > -- Andrew Wetmore http://cottage14.blogspot.com/
