How-Tos Archives – Squirrel365 https://squirrel365.io/kb/how-tos/ Create stunning interactive content Tue, 14 Nov 2023 14:10:44 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.1 https://squirrel365.io/wp-content/uploads/2020/05/cropped-squirrel_512-1-32x32.png How-Tos Archives – Squirrel365 https://squirrel365.io/kb/how-tos/ 32 32 Create a Toggle Button https://squirrel365.io/knowledgebase/create_a_toggle_button/ Tue, 15 Dec 2020 19:09:50 +0000 https://squirrel365.io/?post_type=knowledgebase&p=8992 The post Create a Toggle Button appeared first on Squirrel365.

]]>

Create a Toggle Button

 

The technique below is still valid for custom toggle buttons, however from version 1.8 Squirrel now supports a native “Toggle Switch” component.

 

This video shows how you can quickly create toggle buttons in your Squirrel project with both a standard and a custom design. These can be used to allow your end-users to control what is visible, what is included in calculations, which options they want to have active, and many more.

The post Create a Toggle Button appeared first on Squirrel365.

]]>
Use the Web View component https://squirrel365.io/knowledgebase/use-the-web-view-component/ Fri, 18 Dec 2020 10:29:10 +0000 https://squirrel365.io/?post_type=knowledgebase&p=9185 The post Use the Web View component appeared first on Squirrel365.

]]>

Use the Web View component

This spotlight video shows three different uses of embedding eternal web content into Squirrel, including embedding dynamic data from Wikipedia and displaying and controlling a Google Map.

 

The post Use the Web View component appeared first on Squirrel365.

]]>
Build a Tabbed View https://squirrel365.io/knowledgebase/build_a_tabbed_view/ Fri, 18 Dec 2020 10:35:34 +0000 https://squirrel365.io/?post_type=knowledgebase&p=9191 The post Build a Tabbed View appeared first on Squirrel365.

]]>

Build a Tabbed View

A tabbed view allows the user of a project to choose different views (or tabs) at the click of a button. The following video shows how straightforward it is to create this type of capability in Squirrel:

The post Build a Tabbed View appeared first on Squirrel365.

]]>
Set a default selection for a Dropdown component https://squirrel365.io/knowledgebase/set-a-default-selection-for-a-dropdown/ Tue, 22 Dec 2020 12:16:54 +0000 https://squirrel365.io/?post_type=knowledgebase&p=9256 The post Set a default selection for a Dropdown component appeared first on Squirrel365.

]]>

Set a default selection for a Dropdown

The default behaviour of a dropdown component is to not have any item initially selected. To change this use the Selected Item property in the INTERACTIVITY drawer of the properties panel.

Select either Label or Position from the property options, then in the empty property field directly below, bind to an appropriate value. If you have chosen Label and the dropdown box contains five options e.g. Red, Green, Blue, Black, White, binding to a cell that contains the word Red, will ensure that Red is the default selection. If you have chosen Position, binding to a cell that contains a 2 will ensure that Green is the default selection.

In the example below, Position has been selected, the cell bound to the property contains a 2, therefore the second item in the list is the default selection:

 

The post Set a default selection for a Dropdown component appeared first on Squirrel365.

]]>
Set property values https://squirrel365.io/knowledgebase/set-property-values/ Thu, 14 Jan 2021 10:41:38 +0000 https://squirrel365.io/?post_type=knowledgebase&p=9643 The post Set property values appeared first on Squirrel365.

]]>

Set property values

In Squirrel, each component, function and connection has a number of properties that are shown in the properties panel. There are different methods of setting or editing these property values with sometimes more than one method available.

For some properties it is obvious how to interact with them, but for others that won’t become obvious until you rollover them with your mouse or even click on them.

In this article we’ll describe the different methods and how they can be accessed and used.

 

Type a value

Perhaps the most common method is to type in a new value, but this method is not available for all property types.

Click on a property field, if the cursor caret starts blinking this indicates that you will be able to edit that property by typing in a new value or by pasting in a value from the clipboard.

Ensure that you are entering the correct data type, for example, entering a non-numeric value into a property field that only accepts numerical values will not work.

 

Bind a value

Some properties can only be set from data in the spreadsheet via the process of data binding. Move your mouse over the property field, if a data binding button appears above the property, click the button. The spreadsheet will open in ‘binding mode’ select a cell (or range of cells) containing the data that you wish to bind to the property and click confirm. If you’d like to learn more about data binding, take a look at the Getting started: Data binding tutorial.

 

Checkbox toggle

A checkbox property is an on or off toggle. To set a checkbox property to on, click the checkbox so that it changes to a blue tick. A black empty checkbox means that the property is toggled to off.

Sometimes entire property sections can be toggled on or off. If the checkbox for the property section is toggled to off, none of the properties within that section are used. When toggled to on, all of the properties are used and any changes are applied. For instance, unchecking the DEFAULT TEXT section of the push button component will remove the default text label from the button entirely. When toggled to on, the default text label is shown and any changes made to the properties within the DEFAULT TEXT section are applied.

 

Dropdown selection

Change a property by selecting from a list of options in a dropdown box. The most common use for this in Squirrel is for font selection, but there are other uses such as line styles, number formats, insertion types and many more besides that are specific to individual components.

 

Radio button selection

Radio buttons are used to set some properties in the property panel. They present a choice between two or more options, with one already selected by default. The options are mutually exclusive, selecting one will automatically deselect the others. The example below shows a radio button property being used to set the orientation property of a radio button component:

 

Spinner adjustment

Spinner buttons are used to increment or decrement the current value of a property. Not all Squirrel properties have spinner buttons, but those that do will show on mouse rollover.

The value by which the spinner buttons adjust the property can vary, sometimes it may be by 1 or it may be more, see the example above. Clicking the spinner button increases the Blur property by 1, but the Opacity property increases by 10. In the case of the latter, if you wish to set an intermediate value, it is usually possible to do so either by typing a different value into the property field, or by binding to a value in the spreadsheet.

 

Use a Colour picker

The colour picker can be used to choose a new colour value. Click on the square next to any colour property, user the slider on the spectrum bar to select a hue, then adjust the shade by moving the white circle around the colour field.

The colour property can be set in multiple ways: using the colour picker, typing in a value or binding to a value in the spreadsheet. For more information about the latter option, take a look at this article: Using colour values.

 

Adjust a Slider

Using the slider to adjust a property value is pretty self explanatory. Click and hold the mouse cursor over the slider handle, and move your mouse to adjust the property value up or down, release the mouse button at the desired value. Alternatively, click into the slider value field and enter a numerical value.

 

Button sets

The buttons sets in the properties panel are mainly associated with text formatting properties.

For the following set you can choose any, all or none. Click to apply the style, when the button is blue it has been applied to the text. Click again to remove the style from the text.

For the following sets you must choose one option only. An option is selected by default in each set. These settings control the justification and alignment text properties with the currently selected option indicated by a blue button.

The following set you can choose one or none. Click to apply capitalization rules to the text, the selected rule is shown as a blue button. Click again to remove the rule from the text or select a different rule.

 

The post Set property values appeared first on Squirrel365.

]]>
Use the capitalization rules https://squirrel365.io/knowledgebase/use-the-capitalization-rules/ Thu, 28 Jan 2021 14:43:11 +0000 https://squirrel365.io/?post_type=knowledgebase&p=10541 The post Use the capitalization rules appeared first on Squirrel365.

]]>

Use the capitalization rules

When working with text in Squirrel, you have a few different options for standardising the capitalization of text within some component properties. Selecting one of the following buttons will apply that capitalization rule to the text of the property it belongs to. Click once to apply the rule and click again to remove the rule. Clicking a different rule will replace any currently applied rule.

We’ll apply each capitalization rule to the following text:

Squirrel365 gives you the power to turn ordinary spreadsheets into extraordinary content.

 

Leading capitals

Often used for titles, this will change the initial letter of each word to a capital letter:

Squirrel365 Gives You The Power To Turn Ordinary Spreadsheets Into Extraordinary Content.

 

Uppercase

Change each letter of the text to a capital letter:

SQUIRREL365 GIVES YOU THE POWER TO TURN ORDINARY SPREADSHEETS INTO EXTRAORDINARY CONTENT.

 

Lowercase

Change each letter of the text to a lowercase letter:

squirrel365 gives you the power to turn ordinary spreadsheets into extraordinary content.

The post Use the capitalization rules appeared first on Squirrel365.

]]>
Display an image from Google drive in Squirrel https://squirrel365.io/knowledgebase/display-an-image-from-google-drive/ Wed, 02 Mar 2022 10:52:20 +0000 https://squirrel365.io/?post_type=knowledgebase&p=16885 The post Display an image from Google drive in Squirrel appeared first on Squirrel365.

]]>

Display an image from Google drive in Squirrel

 

To use an image stored in Google drive as the source of a squirrel image component first locate the image in Google drive and right click on it and select the “Get link” option from the menu:

 

 

Make sure the link is set to be available to “Anyone with the link”

 

 

and then copy the ID (shown highlighted below) of the image from the middle of the link

 

 

use this ID to create a link of the form:

https://drive.google.com/uc?id=<ID>

where <ID> is replaced by the ID copied in the previous step.

This will result in a link of the form

https://drive.google.com/uc?id=1D1HDD-sRqYIjd3rMLLd6kkJhHMjTATEC

which can then be used as the “Image URL” property of an image component

 

The post Display an image from Google drive in Squirrel appeared first on Squirrel365.

]]>
Countdown Timer https://squirrel365.io/knowledgebase/countdown-timer/ Thu, 10 Mar 2022 09:19:24 +0000 https://squirrel365.io/?post_type=knowledgebase&p=16947 The post Countdown Timer appeared first on Squirrel365.

]]>

Build your own Countdown Calculator

Countdown timers are a good way to display to viewers the time remaining to important events in the future. This following video will display how straightforward it is to create your own countdown timer within Squirrel:

The post Countdown Timer appeared first on Squirrel365.

]]>
Add a Reset button https://squirrel365.io/knowledgebase/add-a-reset-button/ Mon, 14 Mar 2022 15:25:20 +0000 https://squirrel365.io/?post_type=knowledgebase&p=17007 The post Add a Reset button appeared first on Squirrel365.

]]>

Add a Reset Button

  

This video shows how you can quickly add a button to your project which will reset inputs to their initial values.

 

The post Add a Reset button appeared first on Squirrel365.

]]>
Adding Google Fonts https://squirrel365.io/knowledgebase/adding-your-own-google-fonts/ Wed, 20 Jul 2022 09:03:53 +0000 https://squirrel365.io/?post_type=knowledgebase&p=17748 The post Adding Google Fonts appeared first on Squirrel365.

]]>

Adding your own Google Fonts

More Fonts!

With the release of 1.12, we introduced an array of new properties to expand our available styling options. Additionally, we’ve extended the list of fonts available by adding popular google fonts such as Roboto, Montserrat and Ubunto. In the future, we are looking to give you the ability to manage and add your own fonts! Check out which fonts have been added by reading our 1.12 features blog here.

In the meantime, you can add your own font by editing the files that run behind-the-scenes – not to worry though! It sounds complicated, but this tutorial will guide you through each of the steps to add your own fonts!

Locate the font you want

  1. In a browser, search for and open Google Fonts
  2. Locate the fonts you would like and add them to the “Selected Families Panel”
  3. Once that is done, view the Selected Families and select any of the fonts – you will see a menu appear
  4. Scroll to find the Use on the web section
  5. In the HTML below, highlight the indicated area (see below) and copy (Ctrl+C) – you will need this later.

For Windows:

  1. Ensure all instances of Squirrel are closed and not running. You can check this by looking in the Task Manager
  2. Find any JSON/ text editing tool (such as Notepad) and “Run as administrator”.
  3. Select File > Open and navigate to the following location
    C:\Program Files (x86)\InfoSol\Squirrel\resources\app\assets
  4. Locate a file named “externalFontList.json” and select Open – you may need to expand the bottom-right drop-down and select “All Files” to see it
  5. Once open you will see a series of HTML code
  6. On the last item in the list, in the end, enter a comma to add a new item to the array. Press return and enter the following:
    { “text”: “font-name“, “fontFamily”: “font-name, monospace”, “fontLink”: “copied link from Google Fonts” }

Example:

{ “text”: “Karla”, “fontFamily”: “Karla, sans-serif”, “fontLink”: “https://fonts.googleapis.com/css2?family=Karla&display=swap” }[/box]

Note: Ensure that in the Font Names, spaces are indicated with dashes otherwise it will not read successfully and could cause Squirrel to crash.
Note: Delete the “:wght@200;300” section to ensure all weights are available when in Squirrel.

 

For Mac:

  1. Ensure all instances of Squirrel are closed and not running. You can check this by looking in the Task Manager
  2. Find any text editing tool (such as TextEdit) and open it as an Admin
  3. Select File > Open and navigate to the following location
    Applications/Squirrel/Contents/Resources/app/assets
  4. Locate a file named “externalFontList.json” and select Open – you may need to filter the finder to display all files
  5. Once open you will see a series of HTML code
  6. On the last item in the list, in the end, enter a comma to add a new item to the array. Press return and enter the following:
    { “text”: “font-name“, “fontFamily”: “font-name, monospace”, “fontLink”: “copied link from Google Fonts” }

Example:

{ “text”: “Karla”, “fontFamily”: “Karla, sans-serif”, “fontLink”: “https://fonts.googleapis.com/css2?family=Karla&display=swap” }[/box]

Note: Ensure that in the Font Names, spaces are indicated with dashes otherwise it will not read successfully and could cause Squirrel to crash.
Note: Delete the “:wght@200;300” section to ensure all weights are available when in Squirrel.

After following these steps, save the file. You can then head into Squirrel and see that your Font has been added to the list of Fonts available in the property panel.

The post Adding Google Fonts appeared first on Squirrel365.

]]>