Hi Piotr,
just check the code at [1] and I think that code is from JS. Is that want I
want to do but in FlexJS/AS3, just as I did in the old days with Flash/AS3.
I assume that I should be able to do the same in FlexJS/AS3. Maybe just was
a problem with the actual case that involve a polyfill that
Hmm...It is working in that way:
onElementMdlComponentUpgraded - Is a event handler which is raised by MDL
javascript library when components are ready.
- Once it's ready I'm taking object of snackbar [1]
- In method show line 128 - I'm using from this object "showSnackbar"
function
[1]
https://
Hi Piotr,
I think we 're talking about different things ;)
I'm referring to call methods in a more *dirty* way: with brackets (I-e:
object[func]()) or with call or apply
The Toast example is using a listener what I think is ok, but don't see the
relation, or I'm missing something?
thanks
2017-0
Sorry Carlos it's in the Toast [1] - snackbar object. In order to know what
is the name of the object I looked into JS code of MDL. I'm taking it in
handler: onElementMdlComponentUpgraded
[1]
https://github.com/apache/flex-asjs/blob/develop/frameworks/projects/MaterialDesignLite/src/main/flex/org/
Hi Piotr,
I didn't see nothing in SnackBar, maybe you want to point to other class?
thanks!
2017-01-19 7:53 GMT+01:00 piotrz :
> Carlos,
>
> I was doing this thing in some of MDL components. It was matter of getting
> object of this components. Maybe this dialog is not the right object. Take
>
Carlos,
I was doing this thing in some of MDL components. It was matter of getting
object of this components. Maybe this dialog is not the right object. Take a
look into the Snackbar maybe it will help.
Piotr
-
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context:
htt
On 1/18/17, 4:42 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
wrote:
>Finaly I get HTMLDialogElement compile, don't know why it didn't compile
>before...some code gremlin ;)
>Right, so I got it working :)...
>
>... but still don't know how to call a function with "call" , "apply" or
Finaly I get HTMLDialogElement compile, don't know why it didn't compile
before...some code gremlin ;)
Right, so I got it working :)...
... but still don't know how to call a function with "call" , "apply" or
brackets "['fun“]()"
can I do this in FlexJS?
2017-01-19 1:15 GMT+01:00 Carlos Ro
Hi,
I have a object, but as HTMLDialogElement is something new, I
don't have this API available so I think I only can have this kind of
declaration right?
COMPILE::JS
private var dialog:HTMLElement; //HTMLDialogElement;
but now my problem is how to call the method "showModal()".
I try call. ->