コード例 #1
0
 internal ListSetup(ListConfig list, CollectionSetup collection)
 {
     PageSize                     = list.PageSize;
     SearchBarVisible             = list.SearchBarVisible;
     ReorderingAllowed            = list.ReorderingAllowed;
     ListType                     = list.ListEditorType;
     EmptyVariantColumnVisibility = list.EmptyVariantColumnVisibility;
     Buttons = list.Buttons.ToList(button => new ButtonSetup(button, collection.EntityVariant, collection.SubEntityVariants));
     Panes   = list.Panes.ToList(pane => new PaneSetup(pane));
 }
コード例 #2
0
ファイル: NodeSetup.cs プロジェクト: mg02l/RapidCMS
 internal NodeSetup(NodeConfig node, CollectionSetup collection)
 {
     BaseType = node.BaseType;
     Buttons  = node.Buttons.ToList(button => new ButtonSetup(button, collection.EntityVariant, collection.SubEntityVariants));
     Panes    = node.Panes.ToList(pane => new PaneSetup(pane));
 }