
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
ng-simple-file-tree
Advanced tools
Simple file tree for displaying files in a tree structure made with angular
Simple file tree for displaying files in a tree structure made with angular
File tree can be configured with the following options:
export interface FileTreeOptions {
highlightOpenFolders: boolean;
folderBehaviourOnClick: 'select' | 'expand' | 'both';
autoOpenCondition?: (item: CreateTreeItem) => boolean;
autoSelectCondition?: (item: CreateTreeItem) => boolean;
determineIconClass?: (item: CreateTreeItem) => string;
expandAllFolders?: boolean;
hierarchyLines?: {
vertical?: boolean,
horizontal?: boolean,
},
styles?: {
all?: string,
treeItem?: {
default?: string,
active?: string,
},
treeIcon?: string,
chevron?: string,
hierarchyLine?: {
horizontal?: string,
vertical?: {
default?: string,
active?: string,
},
},
}
}
Example:
options = {
highlightOpenFolders: false,
folderBehaviourOnClick: 'expand',
hierarchyLines: {
vertical: true
},
styles: {
all: 'font-family: consolas',
}
}
File extensions are automatically inferred by getting the value at the end of the filename after .
:
so login.spec.js
would have extension .js
You can also use the determineIconClass function to add icons with any package you want, so if you use bootstrap icons you could do:
function determineIcon(value: CreateTreeItem): string {
return 'bi bi-1-circle-fill'
}
And if you want to add color you can define a css class with color:
.red {
color: red;
}
and then pass that class as well
function determineIcon(value: CreateTreeItem): string {
return 'bi bi-1-circle-fill red'
}
FAQs
Simple file tree for displaying files in a tree structure made with angular
The npm package ng-simple-file-tree receives a total of 39 weekly downloads. As such, ng-simple-file-tree popularity was classified as not popular.
We found that ng-simple-file-tree demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket investigates hidden protestware in npm packages that blocks user interaction and plays the Ukrainian anthem for Russian-language visitors.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.