Closed pasine closed 9 years ago
@pasine fa-header-footer-layout looks for three views or modifiers, or surfaces in sequence. You can use fa-view to group components. You will need fa-container-surface to clip the contents of a view.
<fa-app>
<fa-header-footer-layout>
<fa-modifier fa-size="[undefined, 50]">
<fa-view>
<fa-surface fa-background-color="'#dc322f'">
Header
</fa-surface>
<fa-modifier fa-size="[50,50]">
<fa-surface fa-background-color="'#dcdcdc'">
Back
</fa-surface>
</fa-modifier>
<fa-modifier fa-size="[50,50]" fa-origin="[1.0,0.0]" fa-align="[1.0,0.0]">
<fa-surface fa-background-color="'#dcdcdc'">
forward
</fa-surface>
</fa-modifier>
</fa-view>
</fa-modifier>
<fa-grid-layout fa-options="myGridLayoutOptions">
<fa-modifier ng-repeat="item in list">
<fa-surface fa-background-color="item.bgColor">
{{item.content}}
</fa-surface>
</fa-modifier>
</fa-grid-layout>
<fa-modifier fa-size="[undefined, 75]">
<fa-surface fa-background-color="'#859900'">
Footer
</fa-surface>
</fa-modifier>
</fa-header-footer-layout>
</fa-app>
I am facing a couple of problems with Header-Footer-Layout (HFL).
translate=[0, 0, 1]
, but without luck. Using the same layout with pure Famo.us, I can do it successfully.This is not currently possible with the HFL, since the directive just allows to add three surfaces.
Wouldn't be possible to add a parameter to the directive to allow user to define in which element the view should be added to? Something like:
or perhaps
or
Then the loop could check and add the view to the right element.