Press "Enter" to skip to content

Posts tagged as “JQUERY”

How to make Textarea resizable in K2

0

By default Textareas have static width and height. But with a piece of code you can make it resizable. Please, refer to the post How to add JavaScript on Smartforms, if you need a more detailed description. In this post I will provide only some tiny demo and a piece of external code to add onto your Smartforms. And here is the final result, that you will achieve by adding the code below:

K2 Slide In Worklist

1

Recently at the customer I have been challenged with an interesting requirement, i.e. to have a slide in worklist in K2. The idea is to have it available on any form and somehow to indicate, that a user has some new tasks. I decided to create a reusable view, which you can add to any form you want and which will do the trick. For this you will need CSS and JavaScript. Therefore, please, refer to the article How to add JavaScript on Smartforms, if you do not know, how to do that.

Turn your tabs into a ‘hamburger’ menu

0

Below you can find a piece of code, which can be used to turn the standard Tabs menu into a hamburger one when you open the form on a mobile device, i.e. the maximum screen width is 800px. The code consists of 2 blocks, which need to be placed on the form. Please, refer to the following article on How to add JavaScript on Smartforms, if you have any question. The current approached was tested by me on K2 Cloud and it works.

Changing view background in K2 Smartforms

1

Changing a view background in K2 Smartforms is not available out of the box. Moreover, if you need to create a reusable component with the new background, which you can then reuse across one or multiple applications. Here I will quickly explain, how you can change view background in K2 Smartforms with the help of JavaScript. Please, refer to the post How to add JavaScript on Smartforms, if certain steps are not clear.

K2 Smartforms: Rich Text Control with dynamic height

0

The customer approached me with the following requirement: “Rich Text control should change height dynamically and adjust to the content so that there is no vertical scrollbar.” Below you will…

Выделение нескольких элементов в ListView

0

В смартформах пока что еще не предусмотрен функционал выделения нескольких элементов в представлении списка. Особенно очень часто полезным бывает именно использование чек-боксов. Я покажу, как можно с помощью javascript и…