Re: Group vs Container

2020-07-24 Thread Harbs
Right.

Although you can assign both a layout and a viewport bead to a Group.

These are the defaults for both components in Basic:

Container
{
IBeadView: ClassReference("org.apache.royale.html.beads.ContainerView");
IBeadLayout: 
ClassReference("org.apache.royale.html.beads.layouts.BasicLayout");
IViewport: 
ClassReference("org.apache.royale.html.supportClasses.Viewport");
IViewportModel: 
ClassReference("org.apache.royale.html.beads.models.ViewportModel");
align-items: flex-start;
}


Group {
IBeadView: ClassReference("org.apache.royale.html.beads.GroupView");
}


> On Jul 24, 2020, at 12:17 PM, Carlos Rovira  wrote:
> 
> Hi
> 
> also Groups has no clipping while Containers clip content (through a
> ViewPort) and add scroll (ScrollingViewPort).
> In Jewel Viewport also has a "clipContent" property like in Flex to allow a
> Container to behave like a Group.
> 
> El vie., 24 jul. 2020 a las 10:01, Harbs () escribió:
> 
>> Containers have a layout by default. Groups do not.
>> 
>> 
>>> On Jul 23, 2020, at 11:45 PM, Hugo Ferreira 
>> wrote:
>>> 
>>> What's the difference between Group and Container ?
>> 
>> 
> 
> -- 
> Carlos Rovira
> http://about.me/carlosrovira



Re: Group vs Container

2020-07-24 Thread Hugo Ferreira
Thanks.

Carlos Rovira  escreveu no dia sexta, 24/07/2020
à(s) 10:17:

> Hi
>
> also Groups has no clipping while Containers clip content (through a
> ViewPort) and add scroll (ScrollingViewPort).
> In Jewel Viewport also has a "clipContent" property like in Flex to allow a
> Container to behave like a Group.
>
> El vie., 24 jul. 2020 a las 10:01, Harbs ()
> escribió:
>
> > Containers have a layout by default. Groups do not.
> >
> >
> > > On Jul 23, 2020, at 11:45 PM, Hugo Ferreira 
> > wrote:
> > >
> > > What's the difference between Group and Container ?
> >
> >
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>


Re: Itemrenderer for icone on Titlebar

2020-07-24 Thread Hugo Ferreira
It's similar.

I think that it's still used a lot.

For now, I have solved.

Carlos Rovira  escreveu no dia sexta, 24/07/2020
à(s) 10:21:

> Hi Hugo,
>
> I think some day I'll do a Jewel Accordion version to have some counterpart
> to Basic or Flex. Just seemed to me that Accordion is not a component
> needed as 10-15 years ago, but it is clear we need one.
>
> You can check the example I posted recently where I use a List and
> ListItemRenderers to collapse renders. Is not an Accordion, but the effect
> is nearly the same
>
> https://avant2.es/productos-y-companias
>
> The code is available here:
>
>
> https://github.com/codeoscopic/avant2-website/tree/master/avant2-products-companies
>
> HTH
>
> Carlos
>
>
>
>
> El vie., 24 jul. 2020 a las 2:09, Hugo Ferreira ()
> escribió:
>
> > Hi Carlos,
> >
> > This one gave me a lot of trouble but it's now working as expected.
> >
> > Accordion seems to be tied to the bead TitleBarModel that adds a title to
> > the Accordion ItemRenderer.
> > Not very flexible.
> >
> > I extended TitleBarModel to IconTitleBarModel and add a string property
> for
> > the MaterialIcon.
> > Then I created an ItemRenderer that extends from AccordionItemRenderer
> and
> > add the MaterialIcon at the first position and played with Spacer.
> > The final result was what I wanted.
> >
> > I already checked the Jewel List before started with basic Accordion
> > however for my menu I need a look and feel more like Accordion than a
> List.
> > With a lot of css this Accordion is now pixel perfect as I wanted.
> >
> > Thank you.
> >
> > Carlos Rovira  escreveu no dia quarta,
> 15/07/2020
> > à(s) 15:53:
> >
> > > Hi Hugo,
> > >
> > > don't understand the problem completely, but if you want to add
> something
> > > to a model just extend it and use the extension
> > > But model should only have the data, not the visuals.
> > > Don't know much more about Basic Accordion
> > > Other option is to use a List and create an item renderer that collapse
> > >
> > > El mié., 15 jul. 2020 a las 2:38, Hugo Ferreira (<
> hferreira...@gmail.com
> > >)
> > > escribió:
> > >
> > > > How to add an icone to TitleBarModel, or even better, how to apply an
> > > > itemrenderer:
> > > >
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > The goal is to build my own menu based on Accordion.
> > > >
> > >
> > >
> > > --
> > > Carlos Rovira
> > > http://about.me/carlosrovira
> > >
> >
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>


Re: localId vs id

2020-07-24 Thread Hugo Ferreira
I see now.
Yes, localId it's very important.

Carlos Rovira  escreveu no dia sexta, 24/07/2020
à(s) 09:46:

> localId is very important in Royale also check this:
>
> https://stackoverflow.com/questions/55923924/whats-the-difference-between-id-and-localid-in-apache-royale
>
> El vie., 24 jul. 2020 a las 1:08, Hugo Ferreira ()
> escribió:
>
> > Thanks.
> >
> > Piotr Zarzycki  escreveu no dia quinta,
> > 23/07/2020 à(s) 22:25:
> >
> > > Hi Hugo,
> > >
> > > localId will not be output to HTML after compilation.
> > > id will be translated to as HTML attribute
> > >
> > > 
> > >
> > > Thanks,
> > > Piotr
> > >
> > > On Thu, Jul 23, 2020, 10:59 PM Hugo Ferreira 
> > > wrote:
> > >
> > > > What's the difference between localId and id ?
> > > >
> > >
> >
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>


Re: Group vs Container

2020-07-24 Thread Harbs
Containers have a layout by default. Groups do not.


> On Jul 23, 2020, at 11:45 PM, Hugo Ferreira  wrote:
> 
> What's the difference between Group and Container ?



Re: localId vs id

2020-07-24 Thread Carlos Rovira
localId is very important in Royale also check this:
https://stackoverflow.com/questions/55923924/whats-the-difference-between-id-and-localid-in-apache-royale

El vie., 24 jul. 2020 a las 1:08, Hugo Ferreira ()
escribió:

> Thanks.
>
> Piotr Zarzycki  escreveu no dia quinta,
> 23/07/2020 à(s) 22:25:
>
> > Hi Hugo,
> >
> > localId will not be output to HTML after compilation.
> > id will be translated to as HTML attribute
> >
> > 
> >
> > Thanks,
> > Piotr
> >
> > On Thu, Jul 23, 2020, 10:59 PM Hugo Ferreira 
> > wrote:
> >
> > > What's the difference between localId and id ?
> > >
> >
>


-- 
Carlos Rovira
http://about.me/carlosrovira


[GitHub] [royale-website] carlosrovira commented on issue #7: Apache flex site must redirect to Apache Royale

2020-07-24 Thread GitBox


carlosrovira commented on issue #7:
URL: https://github.com/apache/royale-website/issues/7#issuecomment-663379862


   Hi Lucas, Apache Flex is not dead, it continues to work and people use it 
with AIR. But you're right, I think we should put some banner there.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org