
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
@fixies/ng2-material-dropdown
Advanced tools
Material-like dropdown component for Angular2.
npm install ng2-material-dropdown --save
Once installed, import the directives and use it them your container component:
<ng2-dropdown>
<ng2-dropdown-button>
Open Menu
</ng2-dropdown-button>
<ng2-dropdown-menu>
<ng2-menu-item *ngFor="let page of pages">
{{ page }}
</ng2-menu-item>
<div class='ng2-menu-divider'></div>
<ng2-menu-item>
With Divider
</ng2-menu-item>
</ng2-dropdown-menu>
</ng2-dropdown>
// import module
import { Ng2DropdownModule } from 'ng2-material-dropdown';
@NgModule({
imports: [ Ng2DropdownModule ]
// ..
})
export class MyModule {}
ng2-dropdown
dynamicUpdate - [?boolean] : option to disable the dynamic update of the position on scroll events (defaults to true)onItemSelected() - [(onItemSelected($event)] : event that emits the currently selected/hovered itemonItemClicked() - [(onItemClicked($event)] : event that emits the item clicked ononShow() - [(onItemClicked($event)] : event that emits when the dropdown gets shownonHide() - [(onItemClicked($event)] : event that emits when the dropdown gets hiddenng2-dropdown-menu
focusFirstElement - [?boolean] : by default the first element is immediately focused. You can disable by setting this option to falsewidth - [?number]: this determines the width of the menu. Possible values are 2, 4 and 6. By default, this is set to 4offset - [?string]: offset to adjust the position of the dropdown with absolute valuesappendToBody - [?boolean] : by default the dropdown is appended to the body, but you can disable this by setting it to falseng2-dropdown-button
showCaret - [?boolean] : if present, a caret will be appended to the button's textng2-menu-item
preventClose - [?boolean] : if present, this attribute prevents the menu to hide when the menu item is clickedvalue - [?any] : any value that you may want to attach to a menu item. Useful for using this component with other components.FAQs
Angular material-like dropdown component
We found that @fixies/ng2-material-dropdown demonstrated a not healthy version release cadence and project activity because the last version was released 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.