Skip to content

Instantly share code, notes, and snippets.

Avatar

Sergey Daniloff Pencroff

View GitHub Profile
@Pencroff
Pencroff / Example of using
Last active Dec 24, 2015
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)
View Example of using
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:
@Pencroff
Pencroff / CamelCaseMacro.velocity
Last active May 19, 2020
Transformation file name to CamelCase in IntelliJ IDEA file templates
View CamelCaseMacro.velocity
## file name transformation
## file-name => FileName
## Sources:
## http://stackoverflow.com/questions/6998412/velocity-string-function
## http://stackoverflow.com/questions/21288687/using-velocity-split-to-split-a-string-into-an-array-doesnt-seem-to-work
## http://velocity.apache.org/engine/releases/velocity-1.7/apidocs/org/apache/velocity/util/StringUtils.html#split(java.lang.String, java.lang.String)
#set( $CamelCaseName = "" )
#set( $part = "" )
You can’t perform that action at this time.