Each Widget you build has unique Source Code that defines the behavior and properties of your Widget (Widget style, how the data is presented, and other adjustable properties). When you are working in the Widget Editor using the Properties Editor, you are using an interface that writes the code for you. It is possible to edit the Widget Source Code directly to write a Widget or adjust some of its properties, although this type of action is not typically recommended.
There are instances where editing a Widget’s Source Code directly can be useful, for instance when changing your Widget’s height. It is important to note that you need to be very careful when modifying your Widget’s Source Code so as not to introduce errors into your Widget.
This article will provide a step-by-step walkthrough for changing your Widget’s height by editing the Widget’s Source Code.
Each Widget type has a default Widget height that can only be modified by directly editing the Widget Source Code. This feature is useful if you want to have all of your Widgets on a dashboard line up (see the image below). In order to control your Widget’s height, you will only need to insert a single line of code into the Widget’s Source Code.
Whenever you are editing Source Code, you can undo any of your changes by clicking the Cancel button in the Source Code editor. As well, you can save a copy of your Widget and then work on copy of the Widget’s Source Code without worrying about losing important data in the original Widget. Just remember to delete the extra Widgets as you finish working on them.
Note: A Widget’s width is determined by the layout of your tab and cannot be modified in the Widget Source Code.
Note: This set of procedures assumes you are in the Widget Editor either as result of building a new Widget or editing an existing Widget.
© 2004 – 2014 InsideSales.com
InsideSales.com technology is protected by the following United States Patents: 8078605, 8325738, 8352389, 8510382, 8566419.