mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-21 13:24:08 +03:00
Re-ordering js default objects
This commit is contained in:
committed by
Mark Otto
parent
824c5a077b
commit
c137d11aa2
@@ -20,18 +20,18 @@ const EVENT_MOUSEDOWN = `mousedown.bs.${NAME}`
|
||||
|
||||
const Default = {
|
||||
className: 'modal-backdrop',
|
||||
isVisible: true, // if false, we use the backdrop helper without adding any element to the dom
|
||||
clickCallback: null,
|
||||
isAnimated: false,
|
||||
rootElement: 'body', // give the choice to place backdrop under different elements
|
||||
clickCallback: null
|
||||
isVisible: true, // if false, we use the backdrop helper without adding any element to the dom
|
||||
rootElement: 'body' // give the choice to place backdrop under different elements
|
||||
}
|
||||
|
||||
const DefaultType = {
|
||||
className: 'string',
|
||||
isVisible: 'boolean',
|
||||
clickCallback: '(function|null)',
|
||||
isAnimated: 'boolean',
|
||||
rootElement: '(element|string)',
|
||||
clickCallback: '(function|null)'
|
||||
isVisible: 'boolean',
|
||||
rootElement: '(element|string)'
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,13 +24,13 @@ const TAB_NAV_FORWARD = 'forward'
|
||||
const TAB_NAV_BACKWARD = 'backward'
|
||||
|
||||
const Default = {
|
||||
trapElement: null, // The element to trap focus inside of
|
||||
autofocus: true
|
||||
autofocus: true,
|
||||
trapElement: null // The element to trap focus inside of
|
||||
}
|
||||
|
||||
const DefaultType = {
|
||||
trapElement: 'element',
|
||||
autofocus: 'boolean'
|
||||
autofocus: 'boolean',
|
||||
trapElement: 'element'
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,15 +26,15 @@ const CLASS_NAME_POINTER_EVENT = 'pointer-event'
|
||||
const SWIPE_THRESHOLD = 40
|
||||
|
||||
const Default = {
|
||||
endCallback: null,
|
||||
leftCallback: null,
|
||||
rightCallback: null,
|
||||
endCallback: null
|
||||
rightCallback: null
|
||||
}
|
||||
|
||||
const DefaultType = {
|
||||
endCallback: '(function|null)',
|
||||
leftCallback: '(function|null)',
|
||||
rightCallback: '(function|null)',
|
||||
endCallback: '(function|null)'
|
||||
rightCallback: '(function|null)'
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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)'
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user