Esempio n. 1
0
        public IEnumerable<TypeDescriptor<LayoutDescriptor>> DescribeLayouts() {
            var context = new DescribeLayoutContext();

            foreach (var provider in _layoutProviders) {
                provider.Describe(context);
            }
            return context.Describe();
        }
Esempio n. 2
0
 public void Describe(DescribeLayoutContext describe) {
     describe.For("Html", T("Html"),T("Html Layouts"))
         .Element("Grid", T("Grid"), T("Organizes content items in a grid."),
             DisplayLayout,
             RenderLayout,
             "GridLayout"
         );
 }
Esempio n. 3
0
 public void Describe(DescribeLayoutContext describe) {
     describe.For("Html", T("Html"),T("Html Layouts"))
         .Element("Raw", T("Raw"), T("Renders content with custom separators."),
             DisplayLayout,
             RenderLayout,
             "RawLayout"
         );
 }
 public void Describe(DescribeLayoutContext describe) {
     describe.For("Html", T("Html"),T("Html Layouts"))
         .Element("Carousel", T("Carousel"), T("Renders markup for use with Bootstrap Carousel."),
             DisplayLayout,
             RenderLayout,
             "CarouselLayout"
         );
 }
Esempio n. 5
0
 public void Describe(DescribeLayoutContext describe) {
     describe.For("Html", T("Html"),T("Html Layouts"))
         .Element("List", T("Html List"), T("Organizes content items inside a simple list."),
             DisplayLayout,
             RenderLayout,
             "ListLayout"
         );
 }
 public void Describe(DescribeLayoutContext describe) {
     describe.For("Html", T("Html"),T("Html Layouts"))
         .Element("Shape", T("Shape"), T("Uses a specific shape name to render the layout."),
             DisplayLayout,
             RenderLayout,
             "ShapeLayout"
         );
 }
Esempio n. 7
0
 public void Describe(DescribeLayoutContext describe)
 {
     describe.For("JSON", T("JSON"), T("JSON Layouts"))
         .Element("List", T("JSON List"), T("Organizes content items inside a json array."),
             DisplayLayout,
             RenderLayout,
             "JsonLayout"
         );
 }
 public void Describe(DescribeLayoutContext describe)
 {
     describe.For("Html", T("Html"),T("Html Layouts"))
         .Element("Carousel", T("Carousel"), T("Organizes content items in a carousel."),
             DisplayLayout,
             RenderLayout,
             "CarouselLayout"
         );
 }