GithubHelp home page GithubHelp logo

Comments (3)

unclecheese avatar unclecheese commented on July 25, 2024

Yeah, good catch. I'm all for using TreeDropdownField if I can hide the pages that have no children. Does the API support that? I'll take a look.

from silverstripe-dashboard.

unclecheese avatar unclecheese commented on July 25, 2024

Good fix for the short term. I'll merge it.

I'm playing around with TreeDropdownField and setFilterFunction() to keep the tree limited to only those nodes with children. The biggest issue is that there seems to be a problem with TDFs being instantiated when hidden. This could be related to the old bug we used to see with Chosen dropdown fields not laying out properly when on a hidden tab in the CMS edit form. Basically, the layout just blows up when you flip over the panel. If I remove:

.dashboard-panel .dashboard-panel-configure {
    display: none;
}

It displays fine, so it appears to be an issue with the plugin.

from silverstripe-dashboard.

unclecheese avatar unclecheese commented on July 25, 2024

Integreated TreeDropdownField in 03d8d2f

from silverstripe-dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.