New blog example post ready to review "Using View States to show or hide content"

classic Classic list List threaded Threaded
25 messages Options
12
Reply | Threaded
Open this post in threaded view
|

New blog example post ready to review "Using View States to show or hide content"

Carlos Rovira-2
Hi Andrew,

hope you can get some time to review this:


Thanks! :)
Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Andrew Wetmore
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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--
Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Andrew Wetmore
@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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--



--
Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Andrew Wetmore
@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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--



--



--
Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Gabe Harbs
In reply to this post by Carlos Rovira-2
Nice,

I think it’s worth noting that you can also do this:

           <j:Card id="loginForm" visible="true" visible.loggedIn="false">
                <html:H1 text="Royale login"/>
                <j:TextInput id="username" text="someuser"/>
                <j:TextInput id="password" text="somepass">
                    <j:beads>
                        <j:PasswordInput/>
                    </j:beads>
                </j:TextInput>
                <j:Button text="Login" primary="true" click="view.currentState = 'loggedIn'" />
            </j:Card>

            <j:Card id="loggedInForm" visible="false" visible.loggedIn="true">
                <html:H1 text="You are logged!! :)"/>
                <j:Button text="Logout" click="view.currentState = 'login'"/>
            </j:Card>

This is something which did not work well in Flex because non-visible elements still took up space.

Thanks,
Harbs

On Jun 6, 2018, at 3:32 PM, Carlos Rovira <[hidden email]> wrote:

Hi Andrew,

hope you can get some time to review this:


Thanks! :)

Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Piotr Zarzycki
In reply to this post by Andrew Wetmore
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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--



--



--


--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki

Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Piotr Zarzycki
Sorry I meant bead for states. 

śr., 6 cze 2018 o 15:40 Piotr Zarzycki <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--



--



--


--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki



--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki

Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Piotr Zarzycki
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. 


Thanks,
Piotr

śr., 6 cze 2018 o 15:45 Piotr Zarzycki <[hidden email]> napisał(a):
Sorry I meant bead for states. 

śr., 6 cze 2018 o 15:40 Piotr Zarzycki <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--



--



--


--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki



--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki



--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki

Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Carlos Rovira-2
In reply to this post by Andrew Wetmore
Sure!, I'll do it as soon as you end your revision! :)

2018-06-06 15:20 GMT+02:00 Andrew Wetmore <[hidden email]>:
@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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--



--



--
Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Andrew Wetmore
@Carlos I got kicked out form editing, possibly by you. Have all my edits been lost. There is a note that they are "in a revision", but I am not sure where to find them.

On Wed, Jun 6, 2018 at 10:50 AM, Carlos Rovira <[hidden email]> wrote:
Sure!, I'll do it as soon as you end your revision! :)

2018-06-06 15:20 GMT+02:00 Andrew Wetmore <[hidden email]>:
@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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--



--



--



--
Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Andrew Wetmore
But what is the currentState for the View? How does the app know what to display by default?

On Wed, Jun 6, 2018 at 10:51 AM, Andrew Wetmore <[hidden email]> wrote:
@Carlos I got kicked out form editing, possibly by you. Have all my edits been lost. There is a note that they are "in a revision", but I am not sure where to find them.

On Wed, Jun 6, 2018 at 10:50 AM, Carlos Rovira <[hidden email]> wrote:
Sure!, I'll do it as soon as you end your revision! :)

2018-06-06 15:20 GMT+02:00 Andrew Wetmore <[hidden email]>:
@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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--



--



--



--



--
Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Andrew Wetmore
@Carlos, if I restore my revision that probably will overwrite whatever it is you just did. Can you wait until I have restored my revision and let you know I am done? Then you can go in and do again what you just did.

Thanks.

On Wed, Jun 6, 2018 at 10:52 AM, Andrew Wetmore <[hidden email]> wrote:
But what is the currentState for the View? How does the app know what to display by default?

On Wed, Jun 6, 2018 at 10:51 AM, Andrew Wetmore <[hidden email]> wrote:
@Carlos I got kicked out form editing, possibly by you. Have all my edits been lost. There is a note that they are "in a revision", but I am not sure where to find them.

On Wed, Jun 6, 2018 at 10:50 AM, Carlos Rovira <[hidden email]> wrote:
Sure!, I'll do it as soon as you end your revision! :)

2018-06-06 15:20 GMT+02:00 Andrew Wetmore <[hidden email]>:
@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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--



--



--



--



--



--
Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Andrew Wetmore
@Carlos I will wait to restore my revision until you tell me it's okay.

On Wed, Jun 6, 2018 at 10:54 AM, Andrew Wetmore <[hidden email]> wrote:
@Carlos, if I restore my revision that probably will overwrite whatever it is you just did. Can you wait until I have restored my revision and let you know I am done? Then you can go in and do again what you just did.

Thanks.

On Wed, Jun 6, 2018 at 10:52 AM, Andrew Wetmore <[hidden email]> wrote:
But what is the currentState for the View? How does the app know what to display by default?

On Wed, Jun 6, 2018 at 10:51 AM, Andrew Wetmore <[hidden email]> wrote:
@Carlos I got kicked out form editing, possibly by you. Have all my edits been lost. There is a note that they are "in a revision", but I am not sure where to find them.

On Wed, Jun 6, 2018 at 10:50 AM, Carlos Rovira <[hidden email]> wrote:
Sure!, I'll do it as soon as you end your revision! :)

2018-06-06 15:20 GMT+02:00 Andrew Wetmore <[hidden email]>:
@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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--



--



--



--



--



--



--
Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Andrew Wetmore
In reply to this post by Piotr Zarzycki
@Piotr in your example you set currentState in onAppComplete, which is what I am familiar with doing. @Carlos, the example does not yet have that feature. Do we add it and describe it?

On Wed, Jun 6, 2018 at 10:47 AM, Piotr Zarzycki <[hidden email]> wrote:
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. 


Thanks,
Piotr

śr., 6 cze 2018 o 15:45 Piotr Zarzycki <[hidden email]> napisał(a):
Sorry I meant bead for states. 

śr., 6 cze 2018 o 15:40 Piotr Zarzycki <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--



--



--


--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki



--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki



--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki




--
Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Carlos Rovira-2
In reply to this post by Andrew Wetmore
Hi Andrew,

I tried to setup in "currentState="loggedIn" in the View, but this not work.
But, if you declare loggedIn state before login state, it works. So for now, I think first declared State is the default state. 
I think as well we should have "currentState" working to define default state, I think I used as well in my flex apps in the same way.
Can you fill a bug for this?
Think that SimpleStateImpl is very "simple" and does not have other options like remove states, that should be left for other implementation, but I think currentState can fit in simple.

in the blog post you can write a line about setting first state will be the default right?

thanks

2018-06-06 15:32 GMT+02:00 Andrew Wetmore <[hidden email]>:
@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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--



--



--



--
Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Carlos Rovira-2
In reply to this post by Gabe Harbs
Right! :)
We must include this alternate version without doubt
thanks Harbs! 

2018-06-06 15:33 GMT+02:00 Harbs <[hidden email]>:
Nice,

I think it’s worth noting that you can also do this:

           <j:Card id="loginForm" visible="true" visible.loggedIn="false">
                <html:H1 text="Royale login"/>
                <j:TextInput id="username" text="someuser"/>
                <j:TextInput id="password" text="somepass">
                    <j:beads>
                        <j:PasswordInput/>
                    </j:beads>
                </j:TextInput>
                <j:Button text="Login" primary="true" click="view.currentState = 'loggedIn'" />
            </j:Card>

            <j:Card id="loggedInForm" visible="false" visible.loggedIn="true">
                <html:H1 text="You are logged!! :)"/>
                <j:Button text="Logout" click="view.currentState = 'login'"/>
            </j:Card>

This is something which did not work well in Flex because non-visible elements still took up space.

Thanks,
Harbs

On Jun 6, 2018, at 3:32 PM, Carlos Rovira <[hidden email]> wrote:

Hi Andrew,

hope you can get some time to review this:


Thanks! :)




--
Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Carlos Rovira-2
In reply to this post by Piotr Zarzycki
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 <[hidden email]>:
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. 


Thanks,
Piotr

śr., 6 cze 2018 o 15:45 Piotr Zarzycki <[hidden email]> napisał(a):
Sorry I meant bead for states. 

śr., 6 cze 2018 o 15:40 Piotr Zarzycki <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--



--



--


--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki



--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki



--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki




--
Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Carlos Rovira-2
In reply to this post by Andrew Wetmore
Right!, sorry I thought you end your revision. Take over and let me know when I can make my changes thanks!

2018-06-06 15:54 GMT+02:00 Andrew Wetmore <[hidden email]>:
@Carlos, if I restore my revision that probably will overwrite whatever it is you just did. Can you wait until I have restored my revision and let you know I am done? Then you can go in and do again what you just did.

Thanks.

On Wed, Jun 6, 2018 at 10:52 AM, Andrew Wetmore <[hidden email]> wrote:
But what is the currentState for the View? How does the app know what to display by default?

On Wed, Jun 6, 2018 at 10:51 AM, Andrew Wetmore <[hidden email]> wrote:
@Carlos I got kicked out form editing, possibly by you. Have all my edits been lost. There is a note that they are "in a revision", but I am not sure where to find them.

On Wed, Jun 6, 2018 at 10:50 AM, Carlos Rovira <[hidden email]> wrote:
Sure!, I'll do it as soon as you end your revision! :)

2018-06-06 15:20 GMT+02:00 Andrew Wetmore <[hidden email]>:
@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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--



--



--



--



--



--



--
Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Andrew Wetmore
In reply to this post by Carlos Rovira-2
@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 <[hidden email]> 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 <[hidden email]>:
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. 


Thanks,
Piotr

śr., 6 cze 2018 o 15:45 Piotr Zarzycki <[hidden email]> napisał(a):
Sorry I meant bead for states. 

śr., 6 cze 2018 o 15:40 Piotr Zarzycki <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--



--



--


--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki



--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki



--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki




--



--
Reply | Threaded
Open this post in threaded view
|

Re: New blog example post ready to review "Using View States to show or hide content"

Andrew Wetmore
In reply to this post by Carlos Rovira-2
Will do

On Wed, Jun 6, 2018 at 11:06 AM, Carlos Rovira <[hidden email]> wrote:
Right!, sorry I thought you end your revision. Take over and let me know when I can make my changes thanks!

2018-06-06 15:54 GMT+02:00 Andrew Wetmore <[hidden email]>:
@Carlos, if I restore my revision that probably will overwrite whatever it is you just did. Can you wait until I have restored my revision and let you know I am done? Then you can go in and do again what you just did.

Thanks.

On Wed, Jun 6, 2018 at 10:52 AM, Andrew Wetmore <[hidden email]> wrote:
But what is the currentState for the View? How does the app know what to display by default?

On Wed, Jun 6, 2018 at 10:51 AM, Andrew Wetmore <[hidden email]> wrote:
@Carlos I got kicked out form editing, possibly by you. Have all my edits been lost. There is a note that they are "in a revision", but I am not sure where to find them.

On Wed, Jun 6, 2018 at 10:50 AM, Carlos Rovira <[hidden email]> wrote:
Sure!, I'll do it as soon as you end your revision! :)

2018-06-06 15:20 GMT+02:00 Andrew Wetmore <[hidden email]>:
@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 <[hidden email]> 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 <[hidden email]> wrote:
Hi Andrew,

hope you can get some time to review this:


Thanks! :)



--



--



--



--



--



--



--



--
12