Releases: mechanicious/domenu
v0.99.77
v0.95.77
This version introduces mostly dragging enhancements and fixes. Beyond that, three new event listeners are introduced and the id
property of items has been fixed (#19) and some more specific list merging restriction has been introduced.
changelog
deprecated option group (see option allowListMerging)
option onItemMaxDepth
option onItemSetParent
option onItemUnsetParent
fix item id #19
fix max depth item add child item
fix stuck last child item
fix ghost first movement
fix telepathic child dragging
fix disappearing list when mixing items from multiple instances
feature restrict list merging
feature onItemSetParent event listener
feature onItemSetParent event listener
feature listen for onItemMaxDepth events
fix telepathic child dragging
Last and first child items which are removed too far away won't affect the corresponding placeholders. As the child items moves too far away from the list placeholder's opacity begins to decrease and increase if the opposite is true.
fix stuck last child item
Last child items are now draggable and arrangeable right after adding them.
v0.24.53
Showcase
New Features in v0.24.53
- List-item controls (add and remove)
- Confirm removing a list-item
- Global add new list-item button selector (see addBtnSelector option)
- Parent adds a child event (see onItemAddChildItem option)
- End edit by pressing the pencil icon (default) (see endEditBtnClass option)
- Pseudo-randomness generation improvements
- Fix custom field value retain #5
- Fix item duplication in JSON output #4
Migrating from v0.13.29 to v0.24.53
Your blueprint html template will need customization (see comments in the index.html file)
For information about migrating from earlier versions see the corresponding branch
v0.13.29
##Quick Overiew
- Demo
- Quick API Reference
- Options
- Tokens (beta)
- Attributes
- New Features in v0.13.29
- Migrating from v0.0.1 to v0.13.19
- License & Credits
Demo
Quick API Reference
Access the public plugin (pPlugin) API with $('#your-domenu-instance').domenu()
array getLists([params])
string parseJson(string data[, bool override = false])
string toJson()
pPlugin expandAll()
pPlugin collapseAll()
pPlugin expand([function callback([item])])
pPlugin collapse([function callback([item])])
array getListNodes()
pPlugin onParseJson(callback)
pPlugin onToJson(callback)
pPlugin onSaveEditBoxInput(callback)
pPlugin onItemDrag(callback)
pPlugin onItemDrop(callback)
pPlugin onItemAdded(callback)
pPlugin onItemRemoved(callback)
pPlugin onItemStartEdit(callback)
pPlugin onItemEndEdit(callback)
object getPluginOptions()
Options
listNodeName: 'ol',
itemNodeName: 'li',
rootClass: 'dd',
listClass: 'dd-list',
itemClass: 'dd-item',
itemBlueprintClass: 'dd-item-blueprint',
dragClass: 'dd-dragel',
handleClass: 'dd-handle',
collapsedClass: 'dd-collapsed',
placeClass: 'dd-placeholder',
noDragClass: 'dd-nodrag',
emptyClass: 'dd-empty',
contentClass: 'dd3-content',
removeBtnClass: 'item-remove',
addBtnClass: 'dd-new-item',
editBoxClass: 'dd-edit-box',
inputSelector: 'input, select, textarea',
expandBtnHTML: '<button data-action="expand" type="button">+</button>',
collapseBtnHTML: '<button data-action="collapse" type="button">-</button>',
editBtnHTML: '<button data-action="edit" type="button">edit</button>',
data: '',
slideAnimationDuration: 0,
group: 0,
maxDepth: 20,
threshold: 20,
onToJson: [],
onParseJson: [],
onDomenuInitialized: [],
onSaveEditBoxInput: [],
onItemDrag: [],
onItemDrop: [],
onItemAdded: [],
onItemExpand: [],
onItemCollapse: [],
onItemRemoved: [],
onItemStartEdit: [],
onItemEndEdit: []
Tokens (beta) request a token
Use tokens inside of your data-placeholder
and data-default-value
attributes of your input
. E.g.
<input type="text" name="title" placeholder="Item" data-placeholder="Item {?numeric.increment}" data-default-value="Item {?numeric.increment}">
{?date.gregorian-slashed-DMY}
current date in gregorian DMY format{?date.mysql-datetime}
valid MySQL datetime format{?numeric.increment}
increments itself and outputs a number{?value}
current value of the input
Attributes
data-placeholder
works like theplaceholder
attribute but has a higher priority and supportsTokens
data-default-value
the value of this attribute will be use bytoJson
as a defaultvalue
when no use suppliedvalue
is present
New Features in v0.13.29
- Dynamic inputs – you can add your own
input
select
andtextarea
fields of any kind; doMenu will handle them all - Tokens and new supported attributes for
data-placeholder
anddata-default-value
- Lazy event bindings – higher performance
- Lots of new event listeners and few new options as well as few new methods e.g.
getPluginOptions
- Source code improvements for developers
for more technical information see the dev branch...
Migrating from v0.0.1 to v0.13.19
Just replace your old plugin files with v0.13.29 plugin files; and enjoy the new features!
License & Credits
Copyright © 2015 Mateusz Zawartka | BSD & MIT license
Built upon Nestable from David Bushell