Extjs tree (tree) for node icons and remove the icons and then remove the blank part

Source: Internet
Author: User

/* EXT/resources/ext-all.css 817 rows closed folder icon */
. X-tree-node-collapsed. X-tree-node-Icon {
Background-image: URL (../images/default/tree/folder.gif );
}

 

/* EXT/resources/ext-all.css 7134 line open folder icon */
. X-tree-node-expanded. X-tree-node-icon
{
Background-image: URL (../images/default/tree/folder-open.gif );
}

 

/* EXT/resources/xtheme-blue.css 812 row node icon */
. X-tree-node-leaf. X-tree-node-Icon {
Background-image: URL (../images/default/tree/leaf.gif );
}

/* EXT/resources/ext-all.css 3220 row icon location settings */
. X-tree-node-collapsed. x-tree-node-icon ,. x-tree-node-expanded. x-tree-node-icon ,. x-tree-node-leaf. x-tree-node-icon
{
Border: 0 none;
Height: 18px;/* Height of the blank part */
Margin: 0;
Padding: 0;
Vertical-align: top;
Width: 16px;/* width of the blank part */
Background-position: center;
Background-repeat: No-Repeat;
}

To change the icon, you only need to modify the corresponding icon. To remove the icon, you only need to set the position of the icon: Height: 0px; width: 0px.

If you only want to modify the style of a tree, you can add Cls.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.