Skip to content

Conversation

@skateman
Copy link
Member

@skateman skateman commented Sep 30, 2020

  • Maps the field value to checked nodes
  • Maps checked nodes to the field value
  • Loads the data using a promise function
{
  component: 'tree-view',
  name: 'foo',
  label: 'Foo',
  initialValues: [...],
  loadData: () => Promise,
  lazyLoadData: node => Promise,
}

AFAIK we're not doing lazyload in trees that are inside forms (except automate entrypoint selection), but better safe than sorry I implemented the behavior somehow. If it's undesired we can either change or remove it.

Screenshot from 2020-09-30 15-41-17

Fixes #6841

@miq-bot
Copy link
Member

miq-bot commented Sep 30, 2020

Checked commits skateman/manageiq-ui-classic@8a81560~...68c85d8 with ruby 2.6.3, rubocop 0.69.0, haml-lint 0.28.0, and yamllint
0 files checked, 0 offenses detected
Everything looks fine. 👍

@skateman skateman changed the title [WIP] Introducing the TreeView component for DDF without React Introducing the TreeView component for DDF without React Sep 30, 2020
@miq-bot miq-bot removed the wip label Sep 30, 2020
@himdel himdel merged commit cbd8e13 into ManageIQ:master Oct 7, 2020
@skateman skateman deleted the tree-view-ddf branch October 7, 2020 16:00
@skateman skateman added the trees label Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing react component: tree select

3 participants