
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
v-accordion
Advanced tools
ng-repeat
If you use bower or npm, just bower/npm install v-accordion
. If not, download files from the github repo.
Include angular.js
, angular-animate.js
, v-accordion.js
, and v-accordion.css
:
<link href="v-accordion.css" rel="stylesheet" />
<script src="angular.js"></script>
<script src="angular-animate.js"></script>
<script src="v-accordion.js"></script>
vAccordion
as a dependency to your application module:angular.module('myApp', ['vAccordion']);
<!-- add `multiple` attribute to allow multiple sections to open at once -->
<v-accordion class="vAccordion--default" multiple>
<!-- add expanded attribute to open the section -->
<v-pane expanded>
<v-pane-header>
Pane header #1
</v-pane-header>
<v-pane-content>
Pane content #1
</v-pane-content>
</v-pane>
<v-pane>
<v-pane-header>
Pane header #2
</v-pane-header>
<v-pane-content>
Pane content #2
</v-pane-content>
</v-pane>
</v-accordion>
v-accordion
with ng-repeat
:<v-accordion class="vAccordion--default">
<v-pane ng-repeat="pane in panes" expanded="$first">
<v-pane-header>
{{ pane.header }}
</v-pane-header>
<v-pane-content>
{{ pane.content }}
<!-- accordions can be nested :) -->
<v-accordion ng-if="pane.subpanes">
<v-pane ng-repeat="subpane in pane.subpanes">
<v-pane-header>
{{ subpane.header }}
</v-pane-header>
<v-pane-content>
{{ subpane.content }}
</v-pane-content>
</v-pane>
</v-accordion>
</v-pane-content>
</v-pane>
</v-accordion>
Use API methods to control accordion component:
<v-accordion multiple control="accordion">
<v-pane ng-repeat="pane in panes">
<v-pane-header>
{{ pane.header }}
</v-pane-header>
<v-pane-content>
{{ pane.content }}
</v-pane-content>
</v-pane>
</v-accordion>
<button ng-click="accordion.toggle(0)">Toggle first pane</button>
<button ng-click="accordion.expandAll()">Expand all</button>
<button ng-click="accordion.collapseAll()">Collapse all</button>
toggle(paneIndex)
expand(paneIndex)
collapse(paneIndex)
expandAll()
collapseAll()
vAccordion:onExpand
vAccordion:onExpandAnimationEnd
vAccordion:onCollapse
vAccordion:onCollapseAnimationEnd
Use these callbacks to get expanded/collapsed pane index:
<v-accordion onexpand="expandCallback(index)" oncollapse="collapseCallback(index)">
<v-pane ng-repeat="pane in panes">
<v-pane-header>
{{ pane.header }}
</v-pane-header>
<v-pane-content>
{{ pane.content }}
</v-pane-content>
</v-pane>
</v-accordion>
$scope.expandCallback = function (index) {
console.log('expanded pane index:', index);
};
$scope.collapseCallback = function (index) {
console.log('collapsed pane index:', index);
};
vAccordion manages keyboard focus and adds some common aria-* attributes. BUT you should additionally place the aria-controls
and aria-labelledby
as follows:
<v-accordion>
<v-pane ng-repeat="pane in panes">
<v-pane-header id="pane{{$index}}-header" aria-controls="pane{{$index}}-content">
{{ pane.header }}
</v-pane-header>
<v-pane-content id="pane{{$index}}-content" aria-labelledby="pane{{$index}}-header">
{{ pane.content }}
</v-pane-content>
</v-pane>
</v-accordion>
FAQs
vAccordion - AngularJS multi-level accordion component
The npm package v-accordion receives a total of 1,497 weekly downloads. As such, v-accordion popularity was classified as popular.
We found that v-accordion 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.