Last active
December 24, 2015 21:49
-
-
Save Pencroff/6868891 to your computer and use it in GitHub Desktop.
My implementation of LinkButton for ExtJS. It can be used as a link directly (set 'stopEvent' to false) or as a button (use subscription to 'click' event)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xtype: 'linkbutton', | |
style: 'font-size: 18px; font-weight: bold', | |
//stopEvent: false, // if you need direct link | |
title: 'Go to Some Link', | |
path: '#job/view', | |
text : 'Some link' | |
/* | |
if you need some extra params in link after render LinkButton you can use | |
some code like this one: | |
*/ | |
var linkbtn = view.down('linkbutton'); | |
linkbtn.setParams({id: 'new id'}); | |
/* | |
You will get link like #job/view?id=new id | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this, it was exactly what I needed