Merge Request #51
← To merge requests
From
layout_support
into
master
Commits (1)
-
- Added support only to 'rightbar' and 'default' @TODO - Develop all layouts Signed-off-by: Paulo Tada <paulohtfs@gmail.com> Signed-off-by: Tallys Martins <tallysmartins@gmail.com>
-
how can I call a function from string?
-
These are equivalent:
object.function_name(); object["function_name"]();
-
mentioned in commit 02560aeeb492e162a3fdbb95bafb1dd48296985c
started a discussion
on the diff
src/app/layout/boxes/display-boxes.filter.ts
0 → 100644
1 | +import {Pipe, Inject} from "ng-forward"; | |
2 | + | |
3 | +@Pipe("displayBoxes") | |
4 | +export class DisplayBoxes { | |
5 | + | |
6 | + transform(boxes: noosfero.Box[], layout: string) { | |
7 | + let function_str: string = "visible_on" + layout; | |
2 |
|