On 10/24/16, 2:49 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
wrote:
>Hi Om,
>
>the last sample seems good to me and I agree with avoid having the
>"effect"
>attribute in the class and promote composition. So to
Om's idea of putting them all into one bead is interesting (because if MDL
bakes all effects in regardless, so separate beads don't do anything except
make the code more verbose). However, the strings with spaces in between
seems like a place where making a typo is too easy. What about something
Hi Om,
the last sample seems good to me and I agree with avoid having the "effect"
attribute in the class and promote composition. So to start, I would remove
the "mdlEffect" attribute from mdl components and instead create a bead
with it, ok?
thanks!
2016-10-24 23:33 GMT+02:00 OmPrakash
I think the key point to look at is that we want favor composition over
inheritance.
In our case,
Inheritance:
This dictates that mdl:Button should implement an 'effect' setter/getter
and code for handling the each of the values, regardless of whether we want
an 'effect' in our button or not.
I love beads, but in this case I think it would be very verbose don't you
think?
for example in Button:
All has the same two selectors : mdl-button mdl-js-button (in my
implementation this goes always)
Then we have 8 optional selectors that could be combined in many ways.
So for me de default
+1 for implementing it based on beads.
mdl:DefaultMDLButton would look like this:
We could simply use DefaultMDLButton in our code instead of having to write
out all the beads, if the user so chooses.
Thanks,
Om
On Mon, Oct 24, 2016 at 12:10 PM, Josh Tynjala
I like Alex's suggestion of making beads for each variation you can add
(fab, ripple, etc.). Feels like the FlexJS way to do it.
- Josh
On Oct 24, 2016 11:18 AM, "Carlos Rovira"
wrote:
Ok, I see,
right now I'm using something like you say:
while the base class
That worked!
curse! I wonder why I cannot came up with that! :)
Thanks!
2016-10-24 18:51 GMT+02:00 Alex Harui :
>
>
> On 10/24/16, 6:27 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
>
> wrote:
>
>
Ok, I see,
right now I'm using something like you say:
while the base class selectors are asigned in AS3 MDL Button Code component:
element.className = 'mdl-button mdl-js-button';
In example's use I specialize, since there is 8 selectors, and seems to me
many combinations to make classes, So:
On 10/24/16, 2:42 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
wrote:
>> Here's another idea idea: what if there was a compiler option that
>>would
>> override the xmlns in the MXML files?
>>
>> mxmlc
Chris
>>
>>
>> Von: carlos.rov...@gmail.com <carlos.rov...@gmail.com> im Auftrag von
>> Carlos Rovira <carlos.rov...@codeoscopic.com>
>> Gesendet: Montag, 24. Oktober 2016 13:59:05
>> An: dev@flex.apache.org
>&g
im Auftrag von
> Carlos Rovira <carlos.rov...@codeoscopic.com>
> Gesendet: Montag, 24. Oktober 2016 13:59:05
> An: dev@flex.apache.org
> Betreff: Re: [FlexJS] CSS (was Re: [FlexJS] Mobile Apps)
>
> Hi,
>
> I tried ne
Von: carlos.rov...@gmail.com <carlos.rov...@gmail.com> im Auftrag von Carlos
Rovira <carlos.rov...@codeoscopic.com>
Gesendet: Montag, 24. Oktober 2016 13:59:05
An: dev@flex.apache.org
Betreff: Re: [FlexJS] CSS (was Re: [FlexJS] Mobile Apps)
Hi,
I tried new additions without luck,
ed to the config-templates.
>>
>>
>> Chris
>>
>>
>>
>>
>> Von: carlos.rov...@gmail.com <carlos.rov...@gmail.com> im Auftrag von
>> Carlos Rovira <carlos.rov...@codeoscopic.com>
>> Gesendet: Montag,
@gmail.com> im Auftrag von
> Carlos Rovira <carlos.rov...@codeoscopic.com>
> Gesendet: Montag, 24. Oktober 2016 11:21:58
> An: dev@flex.apache.org
> Betreff: Re: [FlexJS] CSS (was Re: [FlexJS] Mobile Apps)
>
> Many thanks Alex por making it, I'll be trying it ASAIC.
> I want to b
> Here's another idea idea: what if there was a compiler option that would
> override the xmlns in the MXML files?
>
> mxmlc -compiler.mxml.xmlns=js,library://ns.apache.org/flexjs/mdl
>
>
That would be ok, but it seems a bit tacky to me...my vote would be not
introduce things like this and keep
Many thanks Alex por making it, I'll be trying it ASAIC.
I want to build the example as clean as possible since right now I'm adding
things and getting many side effects, so hopefully this is much need to be
able to continue working
2016-10-24 8:48 GMT+02:00 Alex Harui :
>
>
>
So probably it would make sense to add this to the list of options for the
maven plugin?
Chris
Von: Alex Harui <aha...@adobe.com>
Gesendet: Montag, 24. Oktober 2016 08:48:55
An: dev@flex.apache.org
Betreff: Re: [FlexJS] CSS (was Re: [FlexJS] Mobil
On 10/21/16, 4:35 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
wrote:
>> Hmm. Why not? I thought this was a great long-term solution. You can
>>try
>> different component sets merely by changing URIs. That's better
> Hmm. Why not? I thought this was a great long-term solution. You can try
> different component sets merely by changing URIs. That's better than
> changing the js: to mdi: in every file. How else would you want to do it?
>
>
both are the same, implies make a multifile search/replace in all
On 10/21/16, 12:17 PM, "carlos.rov...@gmail.com on behalf of Carlos
Rovira" wrote:
>Hi Alex,
>
>
>What should be possible in FlexJS, is for people to easily switch between
>> components sets by simply changing the URI assigned
Hi Alex,
What should be possible in FlexJS, is for people to easily switch between
> components sets by simply changing the URI assigned to the prefix:
> xmlns:js="library://ns.apache.org/flexjs/mdl"
>
Right, but is not the perfect scenario...imagine change lots of file
namespaces, I think we
Renaming thread...
On 10/21/16, 9:12 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
wrote:
>Right now I'm doing components in the "mdl"
>namespace, but this is not the ideal scenario, since it would be great to
>get a
23 matches
Mail list logo