Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LukaszWatroba committed Nov 3, 2015
1 parent d37863f commit 6bb44db
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,52 +226,3 @@ vAccordion manages keyboard focus and adds some common aria-* attributes. BUT yo

</v-accordion>
```

```html
<v-accordion multiple control="myAccordion" onexpand="expandCb(index, id)">
<v-pane id="myPane1">
<v-pane-header>
First pane header
</v-pane-header>

<v-pane-content>
First pane content
</v-pane-content>
</v-pane>

<v-pane id="myPane2">
<v-pane-header>
Second pane header
</v-pane-header>

<v-pane-content>
Second pane content

<v-accordion multiple control="mySubAccordion">
<v-pane id="mySubPane1">
<v-pane-header inactive>
First pane header
<button ng-click="$pane.toggle()">Toggle me</button>
</v-pane-header>

<v-pane-content>
First pane content
</v-pane-content>
</v-pane>
</v-accordion>
</v-pane-content>
</v-pane>
</v-accordion>
```

```js
myApp.controller('myAccordionController', function ($scope) {

$scope.expandCb = function (index, id) {
if (id === 'pane1') {
$scope.mySubAccordion.collapse('mySubPane1');
}
};

});
```

0 comments on commit 6bb44db

Please sign in to comment.