Request

Response

    Autodesk.Viewing.UI

    Tree

    new Tree(delegate, root, parentContainer, options)

    Tree view control

    Parameters

    Methods

    destroy()

    Remove tree from DOM.

    show(show)

    Show/hide the tree control

    Parameters

    show*
    boolean
    true to show the tree control, false to hide it
    * Required

    getRootContainer()

    Get the root container

    Returns

    typedescription
    string

    getElementForNode(node)

    Get DOM element for a given logical tree node (or its integer id)

    Parameters

    node*
    object
    Tree node element
    * Required

    Returns

    typedescription
    HTMLElement

    delegate()

    Get the tree delegate

    Returns

    typedescription
    TreeDelegate

    isCollapsed(group)

    Is the given group node in the tree collapsed?

    Parameters

    group*
    Object
    The group node
    * Required

    Returns

    typedescription
    boolean true if group node is collapsed, false if expanded

    setCollapsed(group, collapsed)

    Collapse/expand the given group node in the tree

    Parameters

    group*
    Object
    the group node
    collapsed*
    boolean
    true to collapse the group node, false to expand it
    * Required

    setAllCollapsed(collapsed)

    Collapse/expand all group nodes in the tree

    Parameters

    collapsed*
    boolean
    true to collapse tree, false to expand it
    * Required

    addToSelection(nodes)

    Add the given nodes to the current selection

    Parameters

    nodes*
    Array.<Object>
    nodes to add to the current selection
    * Required

    removeFromSelection(nodes)

    Remove the given nodes from the current selection

    Parameters

    nodes*
    Array.<Object>
    The nodes to remove from the current selection
    * Required

    setSelection(nodes)

    Set the current selection

    Parameters

    nodes*
    Array.<Object>
    nodes to make currently selected
    * Required

    clearSelection()

    Clear the current selection

    isSelected(node)

    Is the given node selected?

    Parameters

    node*
    Object
    The tree node
    * Required

    Returns

    typedescription
    boolean true if node is selected, false otherwise

    scrollTo(node)

    Scrolls the container to reveal the node’s DOM element.

    Parameters

    node*
    object
    the Tree node
    * Required

    addClass(node, className)

    Add a CSS class to a node

    Parameters

    Returns

    typedescription
    boolean true if the class was added, false otherwise

    removeClass(node, className)

    Remove a class from a node

    Parameters

    Returns

    typedescription
    boolean true if the class was removed, false otherwise

    hasClass(node, className)

    Does the node have the given class?

    Parameters

    Returns

    typedescription
    boolean true if the node has the given class, false otherwise

    clear()

    Clears the contents of the tree

    iterate(node, callback)

    Iterates through nodes in the tree in pre-order.

    Parameters

     
    ______
    icon-svg-close-thick

    Cookie preferences

    Your privacy is important to us and so is an optimal experience. To help us customize information and build applications, we collect data about your use of this site.

    May we collect and use your data?

    Learn more about the Third Party Services we use and our Privacy Statement.

    Strictly necessary – required for our site to work and to provide services to you

    These cookies allow us to record your preferences or login information, respond to your requests or fulfill items in your shopping cart.

    Improve your experience – allows us to show you what is relevant to you

    These cookies enable us to provide enhanced functionality and personalization. They may be set by us or by third party providers whose services we use to deliver information and experiences tailored to you. If you do not allow these cookies, some or all of these services may not be available for you.

    Customize your advertising – permits us to offer targeted advertising to you

    These cookies collect data about you based on your activities and interests in order to show you relevant ads and to track effectiveness. By collecting this data, the ads you see will be more tailored to your interests. If you do not allow these cookies, you will experience less targeted advertising.

    icon-svg-close-thick

    THIRD PARTY SERVICES

    Learn more about the Third-Party Services we use in each category, and how we use the data we collect from you online.

    icon-svg-hide-thick

    icon-svg-show-thick

    Strictly necessary – required for our site to work and to provide services to you

    Qualtrics
    W
    Akamai mPulse
    W
    Digital River
    W
    Dynatrace
    W
    Khoros
    W
    Launch Darkly
    W
    New Relic
    W
    Salesforce Live Agent
    W
    Wistia
    W
    Tealium
    W
    Upsellit
    W
    CJ Affiliates
    W
    Commission Factory
    W
    Google Analytics (Strictly Necessary)
    W
    Typepad Stats
    W
    Geo Targetly
    W
    SpeedCurve
    W
    Qualified
    #

    icon-svg-hide-thick

    icon-svg-show-thick

    Improve your experience – allows us to show you what is relevant to you

    Google Optimize
    W
    ClickTale
    W
    OneSignal
    W
    Optimizely
    W
    Amplitude
    W
    Snowplow
    W
    UserVoice
    W
    Clearbit
    #
    YouTube
    #

    icon-svg-hide-thick

    icon-svg-show-thick

    Customize your advertising – permits us to offer targeted advertising to you

    Adobe Analytics
    W
    Google Analytics (Web Analytics)
    W
    AdWords
    W
    Marketo
    W
    Doubleclick
    W
    HubSpot
    W
    Twitter
    W
    Facebook
    W
    LinkedIn
    W
    Yahoo! Japan
    W
    Naver
    W
    Quantcast
    W
    Call Tracking
    W
    Wunderkind
    W
    ADC Media
    W
    AgrantSEM
    W
    Bidtellect
    W
    Bing
    W
    G2Crowd
    W
    NMPI Display
    W
    VK
    W
    Adobe Target
    W
    Google Analytics (Advertising)
    W
    Trendkite
    W
    Hotjar
    W
    6 Sense
    W
    Terminus
    W
    StackAdapt
    W
    The Trade Desk
    W
    RollWorks
    W

    Are you sure you want a less customized experience?

    We can access your data only if you select "yes" for the categories on the previous screen. This lets us tailor our marketing so that it's more relevant for you. You can change your settings at any time by visiting our privacy statement

    Your experience. Your choice.

    We care about your privacy. The data we collect helps us understand how you use our products, what information you might be interested in, and what we can improve to make your engagement with Autodesk more rewarding.

    May we collect and use your data to tailor your experience?

    Explore the benefits of a customized experience by managing your privacy settings for this site or visit our Privacy Statement to learn more about your options.