public async Task <CardContent> CompactView(Node node) { // This method is called when rendering search results (and similar uses) return(CardContent(Header(this, node), null, new Footer(null, NodeCardCommands.For(node)))); }
public async Task <CardContent> CompactView(Node node) { // This method is called when rendering search results (and similar uses) return(CardContent(Header(this, node), TextBlock(node.GetString("Abstract")).XSmall(), new Footer(Label(TextBlock("Authors:").XSmall().SemiBold().PaddingRight(8.px())).AlignCenter().Inline().SetContent(NeighborsAsLabels(node.UID, Schema.N.Author, Schema.E.HasAuthor, textSize: TextSize.XSmall)), NodeCardCommands.For(node)))); }
public async Task <IComponent> ReviewAsync(Node node) { return(CardContent(Header(this, node), CreateReview(node), new Footer(Label(TextBlock("Authors:").XSmall().SemiBold().PaddingRight(8.px())).AlignCenter().Inline().SetContent(NeighborsAsLabels(node.UID, Schema.N.Author, Schema.E.HasAuthor, textSize: TextSize.XSmall)), NodeCardCommands.For(node))).Merge()); }