Quantcast
Viewing all articles
Browse latest Browse all 8068

Using the same elements in the controllers and views in Alloy without duplicating.

Hello, help me please. There is a sliding menu. Need to add it to the many views:

<Alloy>
...
    <Button onClick='showMenu' ... />
    <View id='leftMenu' left='-60%' width='60%' ... >
    <View>
...
<Alloy>
, and controllers:
...
function showMenu(){
...
}
...
and *.tss

How can I avoid code duplication?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>