Skip to content

Releases: mechanicious/domenu

v0.99.77

05 Nov 14:04
Compare
Choose a tag to compare

Dragging and nesting improvements in respect to v0.95.77

v0.95.77

04 Mar 00:38
Compare
Choose a tag to compare

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

image
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

image
Last child items are now draggable and arrangeable right after adding them.

v0.24.53

12 Nov 16:54
Compare
Choose a tag to compare

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

05 Sep 10:38
Compare
Choose a tag to compare

##Quick Overiew

Demo


doMenu v0.13.29


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 the placeholder attribute but has a higher priority and supports Tokens
  • data-default-value the value of this attribute will be use by toJson as a default value when no use supplied value is present

New Features in v0.13.29


  • Dynamic inputs – you can add your own input select and textarea fields of any kind; doMenu will handle them all
  • Tokens and new supported attributes for data-placeholder and data-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