
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@lukana/dropdowns
Advanced tools
Simple dropdown using only @angular/cdk as dependencies.
DropdownsModule
<div class="dropdown" lukanaDropdown>
<button lukanaDropdownToggle class="btn btn-secondary dropdown-toggle" type="button">
Dropdown button
</button>
<div *lukanaDropdownBody class="dropdown-menu">
<a class="dropdown-item">Action</a>
<a class="dropdown-item">Another action</a>
<a class="dropdown-item">Something else here</a>
</div>
</div>
trueIf You don't want to hide dropdown with every click on dropdown's body use [hideOnClick]="false" attribute. Then You have to hide it manually like this:
<div class="dropdown" lukanaDropdown [hideOnClick]="false" #ld="lukanaDropdown">
<button lukanaDropdownToggle class="btn btn-secondary dropdown-toggle" type="button">
Don't close on click
</button>
<div *lukanaDropdownBody [@dropdownAnimation] class="dropdown-menu"
style="position: static; display:block">
<a class="dropdown-item" (click)="chosen=1; ld.hide()">Click and hide</a>
<a class="dropdown-item" (click)="chosen=2">Click and don't hide</a>
</div>
</div>
To use animation add [@dropdownAnimation] with propper animation in Your component example
import {dropdownAnimation} from "@lukana/dropdowns";
@Component({
...
animations: [dropdownAnimation]
})
export class ...
<div class="dropdown" lukanaDropdown #d="lukanaDropdown">
<button lukanaDropdownToggle class="btn btn-secondary dropdown-toggle" type="button">
Dropdown button
</button>
<div *lukanaDropdownBody [@dropdownAnimation] class="dropdown-menu">
<a class="dropdown-item">Action</a>
<a class="dropdown-item">Another action</a>
<a class="dropdown-item">Something else here</a>
</div>
</div>
<button class="btn btn-secondary" (click)="d.show()">Show</button>
FAQs
Simple dropdown using only `@angular/cdk` as dependencies.
We found that @lukana/dropdowns 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.