Spread our blog

Introducing Text Area in Splunk Dashboard

Hey, today we are back with an exciting topic, you may know about “Text Input” in the Splunk dashboard, which is generally used to give text input in our dashboard. But the problem with the text input box is that size of that box cannot be increased, yes it is possible that by using some inline CSS we can increase the size but we can only increase the width, you cannot increase the height. That’s why we going to introduce Textarea, which is a customizable text box. A user can easily increase and decrease the size of the box without any coding.
At first put the following JS file in $SPLUNK_HOME/etc/apps/<app name>/appserver/static
If you want to download the js file please click here.

Now use the following source code to implement the above task.

If you want to download the source code of this sample dashboard please click here.
Now save the dashboard and restart your Splunk instance once.
Come back to your dashboard and it will look great.


Now as you can see a big comment box is there and most importantly if you hover your mouse in the rightmost corner of the box we will find an arrow sign, by using that anyone can increase and decrease the size of the box easily.

Happy Splunking!

What’s your Reaction?
+1
+1
+1
1
+1
+1
+1
+1

Spread our blog

LEAVE A REPLY

Please enter your comment!
Please enter your name here