From cfabd4dcff64464979ba46f1994c1b1520356792 Mon Sep 17 00:00:00 2001 From: Marcus Nyeholt Date: Mon, 30 Oct 2017 18:10:29 +1100 Subject: [PATCH] new(bootstrap-design) Added proper list components --- javascript/bootstrap4-design.js | 82 ++++++++++++++++++++++++++++++++- 1 file changed, 81 insertions(+), 1 deletion(-) diff --git a/javascript/bootstrap4-design.js b/javascript/bootstrap4-design.js index 7cbd5c8..3e7dd4b 100644 --- a/javascript/bootstrap4-design.js +++ b/javascript/bootstrap4-design.js @@ -124,6 +124,31 @@ } ] }, + "list-styles": { + "label": "List styles", + "type": "select", + "options": [ + { + 'caption': 'Multiple', + 'value': "yes" + }, + { + "caption": "None" + }, + { + 'caption': 'List group', + 'value': "list-group" + }, + { + 'caption': 'List group flush', + 'value': "list-group-flush" + }, + { + 'caption': 'List group item', + 'value': "list-group-item" + } + ] + }, "text-styles": { "label": "Text styles", "type": "select", @@ -302,8 +327,11 @@ { "label": "Lists", "components": [ + "unordered-list", + "numbered-list", "list-group", 'numbered-list-group', + "list-item", "list-group-item" ] }, @@ -612,6 +640,58 @@ \n", "label": "Image" }, + + + { + "name": "unordered-list", + "html": "", + "label": "Unordered List", + "properties": [ + "text-styles", + "list-styles" + ], + "directives": { + "list": { + "allowedChildren": [ + "list-item" + ] + } + } + }, + { + "name": "numbered-list", + "html": "
    ", + "label": "Numbered List", + "properties": [ + "text-styles", + "list-styles" + ], + "directives": { + "list": { + "allowedChildren": [ + "list-item" + ] + } + } + }, + + + + { + "name": "list-item", + "html": "
  1. List item
  2. ", + "label": "List item", + "properties": [ + "text-styles", + "list-styles" + ], + "allowedParents": [ + "numbered-list", + "unordered-list" + ] + }, + + { "name": "list-group", "html": "", @@ -643,7 +723,7 @@ { "name": "list-group-item", "html": "
  3. List item
  4. ", - "label": "List item", + "label": "List group item", "properties": [ "text-styles" ],