}
const Default = {
- animation : true,
- trigger : 'click',
placement : 'bottom',
- offset : '0 0'
+ offset : {}
}
const DefaultType = {
- animation : 'boolean',
- trigger : 'string',
placement : 'string',
- offset : 'string'
+ offset : 'number'
}
this._popper = new Popper(this, context._menu, {
placement : context._config.placement,
- offsets : {
- popper : context._config.offset
+ modifiers : {
+ offset : {
+ offset : this.config.offset
+ }
}
})
html : false,
selector : false,
placement : 'top',
- offset : '0 0',
- constraints : [],
+ offset : {},
container : false
}
html : 'boolean',
selector : '(string|boolean)',
placement : '(string|function)',
- offset : 'string',
- constraints : 'array',
+ offset : 'number',
container : '(string|element|boolean)'
}
this._popper = new Popper(this.element, tip, {
placement : attachment,
- offsets : {
- popper : this.config.offset
+ modifiers : {
+ offset : {
+ offset : this.config.offset
+ }
}
})