Good to hear that Hugo!

On Thu, Jul 9, 2020, 11:40 PM Hugo Ferreira <[email protected]> wrote:

> Carlos,
>
> Thank you very much for your patience and so many questions.
> I was able to finally achieve what I wanted.
>
> I learned a lot from what you said, Royale examples and many, so many
> tests, try and error.
> I will now improve and finish my Royale Form component and move on to the
> next baby step in Royale World.
>
> Regards,
> Hugo.
>
> Carlos Rovira <[email protected]> escreveu no dia quarta, 8/07/2020
> à(s) 23:09:
>
> > Hi Hugo,
> >
> > I think you didn't understand me. You need to check TDJ
> > ExampleAndSourceCodeTabbedSectionContent or Basic Panel as I said in the
> > previous email and:
> >
> > 1.- see the API added at the end that implements the (addElement,
> > getElementIndex,...)
> > 2.- check how "strandChildren" is used.
> >
> > So all added to strandChildren will be part of Chrome, while the dynamic
> > part needs an "insertion point" (a container)
> >
> > In that example the container is "exampleTab"
> >
> > HTH
> >
> > Carlos
> >
> >
> > El mié., 8 jul. 2020 a las 15:37, Hugo Ferreira (<[email protected]
> >)
> > escribió:
> >
> > > Hi Carlos,
> > >
> > > The RemoteObject is finished (unless I find issues in a later state).
> > > Back to component content.
> > >
> > > Suppose you have your super cool component (I called Form) that already
> > > does several things (a header and a footer, etc ...).
> > > Now I want to extends from this component and a specific content (a
> login
> > > for example):
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <f:Form xmlns:fx="http://ns.adobe.com/mxml/2009";
> > > xmlns:html="library://ns.apache.org/royale/html"
> > > xmlns:j="library://ns.apache.org/royale/jewel"
> > > xmlns:js="library://ns.apache.org/royale/basic"
> > > xmlns:f="pt.company.framework.form.*">
> > >
> > > <j:Form>
> > > <j:FormItem label="Username">
> > > <j:TextInput/>
> > > </j:FormItem>
> > > <j:FormItem label="Password">
> > > <j:TextInput/>
> > > </j:FormItem>
> > > </j:Form>
> > >
> > > </f:Form>
> > >
> > > For what you mention, I will need something like:
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <f:Form xmlns:fx="http://ns.adobe.com/mxml/2009";
> > > xmlns:html="library://ns.apache.org/royale/html"
> > > xmlns:j="library://ns.apache.org/royale/jewel"
> > > xmlns:js="library://ns.apache.org/royale/basic"
> > > xmlns:f="pt.solidsoft.framework.form.*">
> > >
> > > <j:SectionContent>
> > > <j:Form>
> > > <j:FormItem label="Nome">
> > > <j:TextInput/>
> > > </j:FormItem>
> > > <j:FormItem label="Password">
> > > <j:TextInput/>
> > > </j:FormItem>
> > > </j:Form>
> > > </j:SectionContent>
> > >
> > > </f:Form>
> > >
> > > Is that correct ?
> > > Then I need to iterate the "contents" and insert in my component ?
> > >
> > > Carlos Rovira <[email protected]> escreveu no dia segunda,
> > 6/07/2020
> > > à(s) 16:04:
> > >
> > > > Hi Hugo,
> > > >
> > > > if you improve SimpleRemoteObject you can tell us about what you did
> to
> > > see
> > > > what's about and eventually send us a PR so we can incorporate your
> > > changes
> > > >
> > > > El lun., 6 jul. 2020 a las 10:40, Hugo Ferreira (<
> > [email protected]
> > > >)
> > > > escribió:
> > > >
> > > > > Thank you very much.
> > > > > I will check it and continue from that as soons I finish my new
> > > > > RemoteObject composition using SimpleRemoteObject (or
> MX:RemoteObject
> > > > it's
> > > > > SimpleRemoteObject fails in the end with me).
> > > > >
> > > > > Carlos Rovira <[email protected]> escreveu no dia segunda,
> > > > 6/07/2020
> > > > > à(s) 08:27:
> > > > >
> > > > > > Hi Hugo,
> > > > > >
> > > > > > I think your want something like TDJ
> > > > > > ExampleAndSourceCodeTabbedSectionContent
> > > > > > [1]
> > > > > >
> > > > > > That's the main component page used in each page in TDJ to add
> the
> > > > > > examples, but maintains title, description and tabs to example
> and
> > > > source
> > > > > > code.
> > > > > >
> > > > > > strandChildren is the place where "chrome" elements are located
> > > > > > Then you have an API to add elements that comes from the MXML
> > content
> > > > in
> > > > > > the right place without removing things in chrome.
> > > > > >
> > > > > > The concept comes from Basic Panel.
> > > > > >
> > > > > >
> > > > > > [1]
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://github.com/apache/royale-asjs/blob/0842e11ede8bb28cddd3c2bd7c4fa092989defe8/examples/jewel/TourDeJewel/src/main/royale/components/ExampleAndSourceCodeTabbedSectionContent.as
> > > > > >
> > > > > > El jue., 2 jul. 2020 a las 22:31, Hugo Ferreira (<
> > > > [email protected]
> > > > > >)
> > > > > > escribió:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > I have my own component from a Card called Form.mxml:
> > > > > > > <?xml version="1.0" encoding="utf-8"?>
> > > > > > > <j:Card xmlns:fx="http://ns.adobe.com/mxml/2009";
> > > > > > > xmlns:js="library://ns.apache.org/royale/basic"
> > > > > > > xmlns:html="library://ns.apache.org/royale/html"
> > > > > > > xmlns:j="library://ns.apache.org/royale/jewel"
> > > > > > > initComplete="init()">
> > > > > > > ...
> > > > > > > <!-- A lot of things like custom header, etc ... -->
> > > > > > > ...
> > > > > > >
> > > > > > > Then I create a Login.mxml that extends from Form.mxml:
> > > > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > > > > <f:Form xmlns:fx="http://ns.adobe.com/mxml/2009";
> > > > > > > xmlns:html="library://ns.apache.org/royale/html"
> > > > > > > xmlns:j="library://ns.apache.org/royale/jewel"
> > > > > > > xmlns:js="library://ns.apache.org/royale/basic"
> > > > > > >
> > > > > > > The issue, is, if I don't put anything inside my <f:Form, then
> I
> > > see
> > > > at
> > > > > > > runtime the Form.mxml content, however if I put tags inside
> > > <f:Form,
> > > > I
> > > > > > see
> > > > > > > the <f:Form content but not the Form.mxml header, etc.. like if
> > > > > > Login.mxml
> > > > > > > extends directly from Card and not Form.
> > > > > > >
> > > > > > > I already tried to put the content of inside
> > <j:CardPrimaryContent>
> > > > but
> > > > > > > it's the same result.
> > > > > > >
> > > > > > > The goal of Form.mxml it's to have a standard behaviour in all
> my
> > > > Cards
> > > > > > > without repeat code.
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Carlos Rovira
> > > > > > http://about.me/carlosrovira
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Carlos Rovira
> > > > http://about.me/carlosrovira
> > > >
> > >
> >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>

Reply via email to