mirror of https://github.com/artf/grapesjs.git
5 changed files with 81 additions and 34 deletions
@ -0,0 +1,21 @@ |
|||||
|
const Property = require('./Property'); |
||||
|
|
||||
|
module.exports = Property.extend({ |
||||
|
|
||||
|
defaults: Object.assign({}, Property.prototype.defaults, { |
||||
|
// 'background' is a good example where to make a difference
|
||||
|
// between detached and not
|
||||
|
//
|
||||
|
// - NOT detached (default)
|
||||
|
// background: url(..) no-repeat center ...;
|
||||
|
// - Detached
|
||||
|
// background-image: url();
|
||||
|
// background-repeat: repeat;
|
||||
|
// ...
|
||||
|
detached: 0, |
||||
|
|
||||
|
// Array of sub properties
|
||||
|
properties: [], |
||||
|
}), |
||||
|
|
||||
|
}); |
||||
@ -0,0 +1,12 @@ |
|||||
|
const Property = require('./PropertyComposite'); |
||||
|
|
||||
|
module.exports = Property.extend({ |
||||
|
|
||||
|
defaults: Object.assign({}, Property.prototype.defaults, { |
||||
|
// Array of layers (which contain properties)
|
||||
|
layers: [], |
||||
|
// Layer preview
|
||||
|
preview: 0, |
||||
|
}), |
||||
|
|
||||
|
}); |
||||
Loading…
Reference in new issue