![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
ng2-material-dropdown
Advanced tools
Material-like dropdown component for Angular2.
Work in progress. Please do notice this is a work in progress and it is far from being usable in production.
npm install ng2-material-dropdown --save
Check out the demo at http://www.webpackbin.com/Ey8sUC2UZ
Once installed, import the directives and use it them your container component:
// example.html
<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>
<ng2-menu-divider></ng2-menu-divider>
<ng2-menu-item>
With Divider
</ng2-menu-item>
</ng2-dropdown-menu>
</ng2-dropdown>
// app.ts
// import all needed directives
import { NG2_DROPDOWN_DIRECTIVES } from 'ng2-material-dropdown';
@Component({
selector: 'app',
directives: [ ...NG2_DROPDOWN_DIRECTIVES ],
template: require('./example.html')
})
export class App {
pages = ['Home', 'Explore', 'Help'];
}
ng2-dropdown
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 4ng2-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
The npm package ng2-material-dropdown receives a total of 22,341 weekly downloads. As such, ng2-material-dropdown popularity was classified as popular.
We found that 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.