mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-02 11:35:57 +01:00
Correct migration of old documentation
This commit is contained in:
@@ -1,4 +1,27 @@
|
||||
### Extend Navigation
|
||||
### Snippet: Extend Navigation
|
||||
|
||||
[Complete
|
||||
source](https://bitbucket.org/sdorra/scm-code-snippets/src/tip/001-extend-navigation "wikilink")
|
||||
```javascript
|
||||
// add login callback
|
||||
loginCallbacks.push(function(){
|
||||
// get the main navigation
|
||||
var navPanel = Ext.getCmp('navigationPanel');
|
||||
// insert the new navigation section at the
|
||||
// second position
|
||||
navPanel.insertSection(1, {
|
||||
title: 'My Links',
|
||||
links: [{
|
||||
label: 'Link 1',
|
||||
fn: function(){
|
||||
alert('Link 1');
|
||||
}
|
||||
},{
|
||||
label: 'Link 2',
|
||||
fn: function(){
|
||||
alert('Link 2');
|
||||
}
|
||||
}]
|
||||
});
|
||||
});
|
||||
```
|
||||
|
||||
[Complete source](https://bitbucket.org/sdorra/scm-code-snippets/src/tip/001-extend-navigation)
|
||||
|
||||
Reference in New Issue
Block a user