Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'toHierarchy()' method equivalent to 'toArray()' method #1790

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Commits on Apr 11, 2020

  1. Configuration menu
    Copy the full SHA
    0b844ba View commit details
    Browse the repository at this point in the history
  2. After running 'npm i' and 'npm i npm@latest -g' and

    'npm audit fix' and 'npm audit' preparing for building.
    LavaSlider committed Apr 11, 2020
    Configuration menu
    Copy the full SHA
    ecaf718 View commit details
    Browse the repository at this point in the history
  3. Fix various typos that I put in

    Such as missing closing parenthases, forgotten commas, wrong
    assignments, etc.
    LavaSlider committed Apr 11, 2020
    Configuration menu
    Copy the full SHA
    ec255eb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6a6a3a1 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2020

  1. Configuration menu
    Copy the full SHA
    d24451b View commit details
    Browse the repository at this point in the history
  2. Add the 'getHierarch([mode])' method

    This method is similar to a recursive 'toString'. It has
    three modes of operation. Mode 2 is most similar to 'toString'
    and returns an array of 'id's with interspersed arrays of 'id's
    for the sublists. The default, mode 0, returns an array of
    object with 'id' and 'children' properties. Mode 1 is similar
    to mode 0 except omits the 'children' property if there are
    no children.
    LavaSlider committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    42f6c73 View commit details
    Browse the repository at this point in the history
  3. Add tests for 'toHierarchy()' for all modes

    These tests piggy-back on the already existing 'nested'
    tests by assessing the output of 'toHierarchy()' after
    the row-dragging. This is done by adding an 'onEnd' event
    handler to update the DOM based on current row structure
    and then compare that text to the expected text.
    LavaSlider committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    da9360c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    481afc0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0d2176f View commit details
    Browse the repository at this point in the history