diff options
| author | louismaxime.piton <[email protected]> | 2022-05-19 15:35:44 +0200 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2022-06-01 19:24:45 -0700 |
| commit | c137d11aa2df111e2a42bc42295576fdd366fd68 (patch) | |
| tree | 9c93a9dbd479be01cb803c8bc294fee4028084f1 /js/src/util/template-factory.js | |
| parent | 824c5a077bfed3a3d3d80aef4cae1bc486d69f79 (diff) | |
| download | bootstrap-c137d11aa2df111e2a42bc42295576fdd366fd68.tar.xz bootstrap-c137d11aa2df111e2a42bc42295576fdd366fd68.zip | |
Re-ordering js default objects
Diffstat (limited to 'js/src/util/template-factory.js')
| -rw-r--r-- | js/src/util/template-factory.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/js/src/util/template-factory.js b/js/src/util/template-factory.js index 39fa450c0..cc2551c8f 100644 --- a/js/src/util/template-factory.js +++ b/js/src/util/template-factory.js @@ -17,28 +17,28 @@ import Config from './config' const NAME = 'TemplateFactory' const Default = { - extraClass: '', - template: '<div></div>', + allowList: DefaultAllowlist, content: {}, // { selector : text , selector2 : text2 , } + extraClass: '', html: false, sanitize: true, sanitizeFn: null, - allowList: DefaultAllowlist + template: '<div></div>' } const DefaultType = { - extraClass: '(string|function)', - template: 'string', + allowList: 'object', content: 'object', + extraClass: '(string|function)', html: 'boolean', sanitize: 'boolean', sanitizeFn: '(null|function)', - allowList: 'object' + template: 'string' } const DefaultContentType = { - selector: '(string|element)', - entry: '(string|element|function|null)' + entry: '(string|element|function|null)', + selector: '(string|element)' } /** |
