- editor paste menu lets you choose between Same ID (cloned widgets) or New ID
- example update - minor style updates
This commit is contained in:
parent
3cc2ae446e
commit
b234ebdc89
5 changed files with 34 additions and 13 deletions
|
|
@ -1,5 +1,11 @@
|
|||
# Changelog
|
||||
|
||||
## 0.3.1
|
||||
|
||||
- editor paste menu lets you choose between `Same ID` (cloned widgets) or `New ID`
|
||||
- example update
|
||||
- minor style updates
|
||||
|
||||
## 0.3.0
|
||||
|
||||
- 3 new widgets
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -73,10 +73,22 @@ var init = function(){
|
|||
|
||||
if (((type=='widget'&&widgetOptions[data.type].widgets) || (type=='tab')) && (!data.tabs||!data.tabs.length)) {
|
||||
|
||||
if (CLIPBOARD!=null) actions['<i class="fa fa-paste"></i> Paste'] = function(){
|
||||
data.widgets = data.widgets || []
|
||||
data.widgets.push(JSON.parse(JSON.stringify(CLIPBOARD)))
|
||||
updateDom(container,data)
|
||||
if (CLIPBOARD!=null) {
|
||||
actions['<i class="fa fa-paste"></i> Paste'] = {
|
||||
'<i class="fa fa-object-ungroup"></i> New ID':function(){
|
||||
data.widgets = data.widgets || []
|
||||
var newData = JSON.parse(JSON.stringify(CLIPBOARD))
|
||||
delete newData.id
|
||||
delete newData.label
|
||||
data.widgets.push(newData)
|
||||
updateDom(container,data)
|
||||
},
|
||||
'<i class="fa fa-object-group"></i> Same ID':function(){
|
||||
data.widgets = data.widgets || []
|
||||
data.widgets.push(JSON.parse(JSON.stringify(CLIPBOARD)))
|
||||
updateDom(container,data)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
actions['<i class="fa fa-plus"></i> Add widget'] = {}
|
||||
|
|
|
|||
|
|
@ -1190,11 +1190,14 @@ a {
|
|||
height:100%;
|
||||
> .widget {
|
||||
min-height: 0;
|
||||
.fader {
|
||||
left:-2rem!important;
|
||||
}
|
||||
.pip {
|
||||
display:none;
|
||||
.fader-wrapper {
|
||||
padding:20rem 0!important;
|
||||
.fader {
|
||||
left:0!important;
|
||||
.pips {
|
||||
display:none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1591,7 +1591,7 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"label": "Unnamed",
|
||||
"label": "Multiwidgets",
|
||||
"widgets": [
|
||||
{
|
||||
"type": "multifader",
|
||||
|
|
@ -1600,7 +1600,7 @@
|
|||
"label": "multifader_1",
|
||||
"unit": "",
|
||||
"left": "0",
|
||||
"top": "auto",
|
||||
"top": "0",
|
||||
"width": "100%",
|
||||
"height": "50%",
|
||||
"css": "",
|
||||
|
|
@ -1638,7 +1638,7 @@
|
|||
6,
|
||||
6
|
||||
],
|
||||
"label": "multipush_1",
|
||||
"label": "multitoggle_1",
|
||||
"left": "50%",
|
||||
"top": "50%",
|
||||
"width": "50%",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue