<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.appstudio.dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Seneca</id>
	<title>NSB App Studio - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.appstudio.dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Seneca"/>
	<link rel="alternate" type="text/html" href="https://wiki.appstudio.dev/Special:Contributions/Seneca"/>
	<updated>2026-07-11T22:26:39Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.appstudio.dev/index.php?title=TypeName&amp;diff=11665</id>
		<title>TypeName</title>
		<link rel="alternate" type="text/html" href="https://wiki.appstudio.dev/index.php?title=TypeName&amp;diff=11665"/>
		<updated>2025-02-03T02:55:27Z</updated>

		<summary type="html">&lt;p&gt;Seneca: /* Output */ Changes capitalization on return values; return values are in lowercase, not sentnece case&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TypeName(&#039;&#039;variable&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
TypeName returns a string specifying the type of a variable. The required parameter, &#039;&#039;variable&#039;&#039;, is any variable.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Table 24: TypeName return values&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Return value !! Description &lt;br /&gt;
|-&lt;br /&gt;
| boolean || Boolean value &lt;br /&gt;
|-&lt;br /&gt;
| currency || Currency value&lt;br /&gt;
|-&lt;br /&gt;
| date|| Date value&lt;br /&gt;
|-&lt;br /&gt;
| double || Double-precision floating-point value&lt;br /&gt;
|-&lt;br /&gt;
| integer|| Integer value&lt;br /&gt;
|-&lt;br /&gt;
| object|| Generic object&lt;br /&gt;
|-&lt;br /&gt;
| string|| String value&lt;br /&gt;
|-&lt;br /&gt;
| array|| Array&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example (Basic) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Rem TypeName Example&lt;br /&gt;
&#039;TypeName returns variable type as a string&lt;br /&gt;
Dim nInteger, nSingle&lt;br /&gt;
nInteger = CInt(44)&lt;br /&gt;
Print 44 &amp;amp; &amp;quot; is a/an &amp;quot; &amp;amp; TypeName(nInteger)&lt;br /&gt;
nSingle = CSng(99.44)&lt;br /&gt;
Print 99.44 &amp;amp; &amp;quot; is a/an &amp;quot; &amp;amp; TypeName(nSingle)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
44 is a/an integer&lt;br /&gt;
99.44 is a/an double&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Related Items ==&lt;br /&gt;
&lt;br /&gt;
[[is (operator)|Is]], [[vartype|VarType]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Language Reference]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Variable Handling]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Variable Handling]]&lt;br /&gt;
&lt;br /&gt;
[[Category:BASIC Functions]]&lt;/div&gt;</summary>
		<author><name>Seneca</name></author>
	</entry>
	<entry>
		<id>https://wiki.appstudio.dev/index.php?title=TypeName&amp;diff=11664</id>
		<title>TypeName</title>
		<link rel="alternate" type="text/html" href="https://wiki.appstudio.dev/index.php?title=TypeName&amp;diff=11664"/>
		<updated>2025-02-03T02:54:14Z</updated>

		<summary type="html">&lt;p&gt;Seneca: Corrects capitalization on TypeName return values; values returned are in lowercase, not sentence case&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TypeName(&#039;&#039;variable&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
TypeName returns a string specifying the type of a variable. The required parameter, &#039;&#039;variable&#039;&#039;, is any variable.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Table 24: TypeName return values&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Return value !! Description &lt;br /&gt;
|-&lt;br /&gt;
| boolean || Boolean value &lt;br /&gt;
|-&lt;br /&gt;
| currency || Currency value&lt;br /&gt;
|-&lt;br /&gt;
| date|| Date value&lt;br /&gt;
|-&lt;br /&gt;
| double || Double-precision floating-point value&lt;br /&gt;
|-&lt;br /&gt;
| integer|| Integer value&lt;br /&gt;
|-&lt;br /&gt;
| object|| Generic object&lt;br /&gt;
|-&lt;br /&gt;
| string|| String value&lt;br /&gt;
|-&lt;br /&gt;
| array|| Array&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example (Basic) ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Rem TypeName Example&lt;br /&gt;
&#039;TypeName returns variable type as a string&lt;br /&gt;
Dim nInteger, nSingle&lt;br /&gt;
nInteger = CInt(44)&lt;br /&gt;
Print 44 &amp;amp; &amp;quot; is a/an &amp;quot; &amp;amp; TypeName(nInteger)&lt;br /&gt;
nSingle = CSng(99.44)&lt;br /&gt;
Print 99.44 &amp;amp; &amp;quot; is a/an &amp;quot; &amp;amp; TypeName(nSingle)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
44 is a/an Integer&lt;br /&gt;
99.44 is a/an Double&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Related Items ==&lt;br /&gt;
&lt;br /&gt;
[[is (operator)|Is]], [[vartype|VarType]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Language Reference]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Variable Handling]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Variable Handling]]&lt;br /&gt;
&lt;br /&gt;
[[Category:BASIC Functions]]&lt;/div&gt;</summary>
		<author><name>Seneca</name></author>
	</entry>
	<entry>
		<id>https://wiki.appstudio.dev/index.php?title=Keyboard_shortcuts&amp;diff=11504</id>
		<title>Keyboard shortcuts</title>
		<link rel="alternate" type="text/html" href="https://wiki.appstudio.dev/index.php?title=Keyboard_shortcuts&amp;diff=11504"/>
		<updated>2024-03-16T02:43:50Z</updated>

		<summary type="html">&lt;p&gt;Seneca: Added S for save&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ AppStudio Keyboard Shortcuts&lt;br /&gt;
|-&lt;br /&gt;
! Action !! Shortcut&lt;br /&gt;
|-&lt;br /&gt;
| Deploy || F6&lt;br /&gt;
|-&lt;br /&gt;
| Refresh Deploy || F7&lt;br /&gt;
|-&lt;br /&gt;
| Start in Desktop Browser || F5&lt;br /&gt;
|-&lt;br /&gt;
| Nudge Left || Alt + Left&lt;br /&gt;
|-&lt;br /&gt;
| Nudge Right || Alt + Right&lt;br /&gt;
|-&lt;br /&gt;
| Nudge Up || Alt + Up&lt;br /&gt;
|-&lt;br /&gt;
| Nudge Down || Alt + Down&lt;br /&gt;
|-&lt;br /&gt;
| Undo || Ctrl + Z&lt;br /&gt;
|-&lt;br /&gt;
| Redo || Ctrl + Shift + Z&lt;br /&gt;
|-&lt;br /&gt;
| Cut || Ctrl + X&lt;br /&gt;
|-&lt;br /&gt;
| Copy || Ctrl + C&lt;br /&gt;
|-&lt;br /&gt;
| Paste || Ctrl + V&lt;br /&gt;
|-&lt;br /&gt;
| Select All || Ctrl + A&lt;br /&gt;
|-&lt;br /&gt;
| Find/Replace || Ctrl + F&lt;br /&gt;
|-&lt;br /&gt;
| Find Next || F3&lt;br /&gt;
|-&lt;br /&gt;
| New Project || Ctrl + N&lt;br /&gt;
|-&lt;br /&gt;
| Open Project || Ctrl + O&lt;br /&gt;
|-&lt;br /&gt;
| Open Older Project || Ctrl + P&lt;br /&gt;
|-&lt;br /&gt;
| Save Project || Ctrl + S&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Seneca</name></author>
	</entry>
	<entry>
		<id>https://wiki.appstudio.dev/index.php?title=Keyboard_shortcuts&amp;diff=11503</id>
		<title>Keyboard shortcuts</title>
		<link rel="alternate" type="text/html" href="https://wiki.appstudio.dev/index.php?title=Keyboard_shortcuts&amp;diff=11503"/>
		<updated>2024-03-16T02:37:08Z</updated>

		<summary type="html">&lt;p&gt;Seneca: Adds list of current keyboard shortcuts&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ AppStudio Keyboard Shortcuts&lt;br /&gt;
|-&lt;br /&gt;
! Action !! Shortcut&lt;br /&gt;
|-&lt;br /&gt;
| Deploy || F6&lt;br /&gt;
|-&lt;br /&gt;
| Refresh Deploy || F7&lt;br /&gt;
|-&lt;br /&gt;
| Start in Desktop Browser || F5&lt;br /&gt;
|-&lt;br /&gt;
| Nudge Left || Alt + Left&lt;br /&gt;
|-&lt;br /&gt;
| Nudge Right || Alt + Right&lt;br /&gt;
|-&lt;br /&gt;
| Nudge Up || Alt + Up&lt;br /&gt;
|-&lt;br /&gt;
| Nudge Down || Alt + Down&lt;br /&gt;
|-&lt;br /&gt;
| Undo || Ctrl + Z&lt;br /&gt;
|-&lt;br /&gt;
| Redo || Ctrl + Shift + Z&lt;br /&gt;
|-&lt;br /&gt;
| Cut || Ctrl + X&lt;br /&gt;
|-&lt;br /&gt;
| Copy || Ctrl + C&lt;br /&gt;
|-&lt;br /&gt;
| Paste || Ctrl + V&lt;br /&gt;
|-&lt;br /&gt;
| Select All || Ctrl + A&lt;br /&gt;
|-&lt;br /&gt;
| Find/Replace || Ctrl + F&lt;br /&gt;
|-&lt;br /&gt;
| Find Next || F3&lt;br /&gt;
|-&lt;br /&gt;
| New Project || Ctrl + N&lt;br /&gt;
|-&lt;br /&gt;
| Open Project || Ctrl + O&lt;br /&gt;
|-&lt;br /&gt;
| Open Older Project || Ctrl + P&lt;br /&gt;
|-&lt;br /&gt;
| Save Project || Ctrl + &lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Seneca</name></author>
	</entry>
	<entry>
		<id>https://wiki.appstudio.dev/index.php?title=Button_(Bootstrap)&amp;diff=11497</id>
		<title>Button (Bootstrap)</title>
		<link rel="alternate" type="text/html" href="https://wiki.appstudio.dev/index.php?title=Button_(Bootstrap)&amp;diff=11497"/>
		<updated>2024-03-06T21:44:42Z</updated>

		<summary type="html">&lt;p&gt;Seneca: Adding semantic headers; correcting format of code samples for adding icons to the right of button text&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[file:Bsbuttons.png]]&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
Buttons can be clicked on by users to initiate actions.&lt;br /&gt;
&lt;br /&gt;
By setting the appearance, buttons can have different colors.&lt;br /&gt;
&lt;br /&gt;
Buttons can be grouped into horizontal and vertical groups.&lt;br /&gt;
&lt;br /&gt;
The color of a Bootstrap button is set by its appearance property. Possible values are&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default, primary, success, info, warning, danger and link&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change a button from primary to danger, do this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$( &amp;quot;#Button6&amp;quot; ).removeClass( &amp;quot;btn-primary&amp;quot; );&lt;br /&gt;
$( &amp;quot;#Button6&amp;quot; ).addClass( &amp;quot;btn-danger&amp;quot; );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The colors for each of each of the appearance settings is defined in the Bootstrap them you use. This provides your app with a consistant look and feel throughout.&lt;br /&gt;
&lt;br /&gt;
To change the icon and text at runtime, do this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Button1.innerHTML = &amp;quot;&amp;lt;span id=&#039;Button1_icon&#039; class=&#039;fa fa-bus&#039;&amp;gt;&amp;lt;/span&amp;gt; Button&amp;quot;&lt;br /&gt;
Button1_icon.title = &amp;quot;New Title&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Introduction_to_Bootstrap#Popovers_and_Tooltips|Popovers and Tooltips]] are supported.&lt;br /&gt;
&lt;br /&gt;
=== Add Icons to Right of Button Text ===&lt;br /&gt;
&lt;br /&gt;
When adding icons to buttons, icons will display to the left of the button text by default. Helper classes can be added to the button&#039;s class and value properties to place the icon to the right of the text.&lt;br /&gt;
&lt;br /&gt;
==== Bootstrap 3 ====&lt;br /&gt;
&lt;br /&gt;
Add span with a class of .pull-left to the button&#039;s value field in the Properties Grid. You can add a non-breaking space to add room between the icon and the button text.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Button1.value = &amp;quot;&amp;lt;span class=&amp;quot;pull-left&amp;quot;&amp;gt;Example Button Text&amp;lt;/span&amp;gt;&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Bootstrap 4 and 5 ====&lt;br /&gt;
&lt;br /&gt;
Add Bootstrap&#039;s .d-flex, .flex-row-reverse, and .justify-content-center classes to the button&#039;s class field in the Properties Grid. In the button&#039;s value field in the Properties Grid, add a span with one of Bootstrap&#039;s spacing helper classes (e.g., m*-1, m*-2, m*-3, etc.) to add a margin to the right side of the button&#039;s text and put some space between the button text and the icon.&lt;br /&gt;
&lt;br /&gt;
Add these classes to the button&#039;s class field:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Button1.class = &amp;quot;d-flex flex-row-reverse justify-content-center&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add a span like the following to the button&#039;s value field. Note that mr-2 is the correct syntax for Bootstrap 4. If you are adding a Bootstrap 5 button, the class would be me-2:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Button1.value = &amp;quot;&amp;lt;span class=&amp;quot;mr-2&amp;quot;&amp;gt;Example Button Text&amp;lt;/span&amp;gt;&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Properties and Methods ==&lt;br /&gt;
&lt;br /&gt;
Standard [[properties and methods|properties]] are supported, plus:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| appearance || Appearance of the alert. For example: success, info, warning, danger.&lt;br /&gt;
|-&lt;br /&gt;
| badge || Adds a Badge to the alert.&lt;br /&gt;
|-&lt;br /&gt;
| blocklevel || Make the button full width of parent?&lt;br /&gt;
|-&lt;br /&gt;
| ChangeForm || id of the form to change to if clicked. Optional.&lt;br /&gt;
|-&lt;br /&gt;
| grouping || Is this button part of a group? Choices are No, Start Horizontal, Start Vertical, Middle and End.&lt;br /&gt;
|-&lt;br /&gt;
| groupStyle || The styling to apply to the entire group.&lt;br /&gt;
|-&lt;br /&gt;
| icon || Optional. Icon to put at right of control. Bootstrap 3 uses the [http://fontawesome.io/icons/ Font Awesome] set. Examples: trash, check. Bootstrap 4 uses [https://www.nsbasic.com/app/OpenIconic.html Open Iconic]. Examples trash, check, circle-check.&lt;br /&gt;
|-&lt;br /&gt;
| iconTitle || Optional. Text to display when hovering cursor over icon. Bootstrap 4.&lt;br /&gt;
|-&lt;br /&gt;
| Outline || Display button with an outline, instead of solid color. Bootstrap 4.&lt;br /&gt;
|-&lt;br /&gt;
| toggleControl || Supply the name of another control here, like a [[Card_(Bootstrap)|Card]] or [[Image (Bootstrap)|Image]]. Clicking the button will show or hide the other control.&lt;br /&gt;
|-&lt;br /&gt;
| size || The size of the button. Can be large, medium, small or extra small (Bootstrap 3 only).&lt;br /&gt;
|-&lt;br /&gt;
| value || The title of the button. Design time or runtime.&lt;br /&gt;
|-&lt;br /&gt;
| hide() || Hide the button. Runtime.&lt;br /&gt;
|-&lt;br /&gt;
| show() || Show the button. Runtime.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Events ==&lt;br /&gt;
&lt;br /&gt;
Standard [[events|events]] are supported. For this control, the onclick event will be most useful.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabber&amp;gt;&lt;br /&gt;
 JavaScript=&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
// JavaScript&lt;br /&gt;
Button1.onclick = function() {&lt;br /&gt;
  NSB.MsgBox(&amp;quot;You can display a message or take other action when clicked&amp;quot;);&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-|&lt;br /&gt;
 BASIC=&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;vb.net&amp;quot;&amp;gt;&lt;br /&gt;
&#039; Basic&lt;br /&gt;
Function Button1_onclick()&lt;br /&gt;
  MsgBox &amp;quot;You can display a message or take other action when clicked&amp;quot;&lt;br /&gt;
End Function&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/tabber&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Language Reference]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Controls]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Bootstrap]]&lt;/div&gt;</summary>
		<author><name>Seneca</name></author>
	</entry>
	<entry>
		<id>https://wiki.appstudio.dev/index.php?title=Button_(Bootstrap)&amp;diff=11496</id>
		<title>Button (Bootstrap)</title>
		<link rel="alternate" type="text/html" href="https://wiki.appstudio.dev/index.php?title=Button_(Bootstrap)&amp;diff=11496"/>
		<updated>2024-03-05T07:41:16Z</updated>

		<summary type="html">&lt;p&gt;Seneca: Added correct spacing class syntax for Bootstrap 4 and 5&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[file:Bsbuttons.png]]&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
Buttons can be clicked on by users to initiate actions.&lt;br /&gt;
&lt;br /&gt;
By setting the appearance, buttons can have different colors.&lt;br /&gt;
&lt;br /&gt;
Buttons can be grouped into horizontal and vertical groups.&lt;br /&gt;
&lt;br /&gt;
The color of a Bootstrap button is set by its appearance property. Possible values are&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default, primary, success, info, warning, danger and link&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change a button from primary to danger, do this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$( &amp;quot;#Button6&amp;quot; ).removeClass( &amp;quot;btn-primary&amp;quot; );&lt;br /&gt;
$( &amp;quot;#Button6&amp;quot; ).addClass( &amp;quot;btn-danger&amp;quot; );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The colors for each of each of the appearance settings is defined in the Bootstrap them you use. This provides your app with a consistant look and feel throughout.&lt;br /&gt;
&lt;br /&gt;
To change the icon and text at runtime, do this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Button1.innerHTML = &amp;quot;&amp;lt;span id=&#039;Button1_icon&#039; class=&#039;fa fa-bus&#039;&amp;gt;&amp;lt;/span&amp;gt; Button&amp;quot;&lt;br /&gt;
Button1_icon.title = &amp;quot;New Title&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Introduction_to_Bootstrap#Popovers_and_Tooltips|Popovers and Tooltips]] are supported.&lt;br /&gt;
&lt;br /&gt;
When adding icons to buttons, icons will display to the left of the button text by default. Helper classes can be added to the button&#039;s class and value properties to place the icon to the right of the text.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;In Bootstrap 3:&#039;&#039;&#039; Add span with a class of .pull-left to the button&#039;s value field in the Properties Grid. You can add a non-breaking space to add room between the icon and the button text. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;span class=&amp;quot;pull-left&amp;quot;&amp;gt;Example Button Text&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;In Bootstrap 4 and Bootstrap 5:&#039;&#039;&#039; Add Bootstrap&#039;s .d-flex, .flex-row-reverse, and .justify-content-center classes to the button&#039;s class field in the Properties Grid. In the button&#039;s value field in the Properties Grid, add a span with one of Bootstrap&#039;s spacing helper classes (e.g., m*-1, m*-2, m*-3, etc.) to add a margin to the right side of the button&#039;s text and put some space between the button text and the icon.&lt;br /&gt;
&lt;br /&gt;
Add these classes to the button&#039;s class field:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
d-flex flex-row-reverse justify-content-center&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add a span like the following to the button&#039;s value field. Note that mr-2 is the correct syntax for Bootstrap 4. If you are adding a Bootstrap 5 button, the class would be me-2:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;span class=&amp;quot;mr-2&amp;quot;&amp;gt;Example Button Text&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Properties and Methods ==&lt;br /&gt;
&lt;br /&gt;
Standard [[properties and methods|properties]] are supported, plus:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| appearance || Appearance of the alert. For example: success, info, warning, danger.&lt;br /&gt;
|-&lt;br /&gt;
| badge || Adds a Badge to the alert.&lt;br /&gt;
|-&lt;br /&gt;
| blocklevel || Make the button full width of parent?&lt;br /&gt;
|-&lt;br /&gt;
| ChangeForm || id of the form to change to if clicked. Optional.&lt;br /&gt;
|-&lt;br /&gt;
| grouping || Is this button part of a group? Choices are No, Start Horizontal, Start Vertical, Middle and End.&lt;br /&gt;
|-&lt;br /&gt;
| groupStyle || The styling to apply to the entire group.&lt;br /&gt;
|-&lt;br /&gt;
| icon || Optional. Icon to put at right of control. Bootstrap 3 uses the [http://fontawesome.io/icons/ Font Awesome] set. Examples: trash, check. Bootstrap 4 uses [https://www.nsbasic.com/app/OpenIconic.html Open Iconic]. Examples trash, check, circle-check.&lt;br /&gt;
|-&lt;br /&gt;
| iconTitle || Optional. Text to display when hovering cursor over icon. Bootstrap 4.&lt;br /&gt;
|-&lt;br /&gt;
| Outline || Display button with an outline, instead of solid color. Bootstrap 4.&lt;br /&gt;
|-&lt;br /&gt;
| toggleControl || Supply the name of another control here, like a [[Card_(Bootstrap)|Card]] or [[Image (Bootstrap)|Image]]. Clicking the button will show or hide the other control.&lt;br /&gt;
|-&lt;br /&gt;
| size || The size of the button. Can be large, medium, small or extra small (Bootstrap 3 only).&lt;br /&gt;
|-&lt;br /&gt;
| value || The title of the button. Design time or runtime.&lt;br /&gt;
|-&lt;br /&gt;
| hide() || Hide the button. Runtime.&lt;br /&gt;
|-&lt;br /&gt;
| show() || Show the button. Runtime.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Events ==&lt;br /&gt;
&lt;br /&gt;
Standard [[events|events]] are supported. For this control, the onclick event will be most useful.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabber&amp;gt;&lt;br /&gt;
 JavaScript=&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
// JavaScript&lt;br /&gt;
Button1.onclick = function() {&lt;br /&gt;
  NSB.MsgBox(&amp;quot;You can display a message or take other action when clicked&amp;quot;);&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-|&lt;br /&gt;
 BASIC=&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;vb.net&amp;quot;&amp;gt;&lt;br /&gt;
&#039; Basic&lt;br /&gt;
Function Button1_onclick()&lt;br /&gt;
  MsgBox &amp;quot;You can display a message or take other action when clicked&amp;quot;&lt;br /&gt;
End Function&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/tabber&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Language Reference]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Controls]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Bootstrap]]&lt;/div&gt;</summary>
		<author><name>Seneca</name></author>
	</entry>
	<entry>
		<id>https://wiki.appstudio.dev/index.php?title=Button_(Bootstrap)&amp;diff=11495</id>
		<title>Button (Bootstrap)</title>
		<link rel="alternate" type="text/html" href="https://wiki.appstudio.dev/index.php?title=Button_(Bootstrap)&amp;diff=11495"/>
		<updated>2024-03-05T07:31:33Z</updated>

		<summary type="html">&lt;p&gt;Seneca: Updated instructions for adding icon to the right to be more clear.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[file:Bsbuttons.png]]&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
Buttons can be clicked on by users to initiate actions.&lt;br /&gt;
&lt;br /&gt;
By setting the appearance, buttons can have different colors.&lt;br /&gt;
&lt;br /&gt;
Buttons can be grouped into horizontal and vertical groups.&lt;br /&gt;
&lt;br /&gt;
The color of a Bootstrap button is set by its appearance property. Possible values are&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default, primary, success, info, warning, danger and link&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change a button from primary to danger, do this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$( &amp;quot;#Button6&amp;quot; ).removeClass( &amp;quot;btn-primary&amp;quot; );&lt;br /&gt;
$( &amp;quot;#Button6&amp;quot; ).addClass( &amp;quot;btn-danger&amp;quot; );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The colors for each of each of the appearance settings is defined in the Bootstrap them you use. This provides your app with a consistant look and feel throughout.&lt;br /&gt;
&lt;br /&gt;
To change the icon and text at runtime, do this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Button1.innerHTML = &amp;quot;&amp;lt;span id=&#039;Button1_icon&#039; class=&#039;fa fa-bus&#039;&amp;gt;&amp;lt;/span&amp;gt; Button&amp;quot;&lt;br /&gt;
Button1_icon.title = &amp;quot;New Title&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Introduction_to_Bootstrap#Popovers_and_Tooltips|Popovers and Tooltips]] are supported.&lt;br /&gt;
&lt;br /&gt;
When adding icons to buttons, icons will display to the left of the button text by default. Helper classes can be added to the button&#039;s class and value properties to place the icon to the right of the text.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;In Bootstrap 3:&#039;&#039;&#039; Add span with a class of .pull-left to the button&#039;s value field in the Properties Grid. You can add a non-breaking space to add room between the icon and the button text. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;span class=&amp;quot;pull-left&amp;quot;&amp;gt;Example Button Text&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;In Bootstrap 4 and Bootstrap 5:&#039;&#039;&#039; Add Bootstrap&#039;s .d-flex, .flex-row-reverse, and .justify-content-center classes to the button&#039;s class field in the Properties Grid. In the button&#039;s value field in the Properties Grid, add a span with one of Bootstrap&#039;s spacing helper classes (e.g., mr-1, mr-2, mr-3, etc.) to add a margin to the right side of the button&#039;s text and put some space between the button text and the icon.&lt;br /&gt;
&lt;br /&gt;
Add these classes to the button&#039;s class field:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
d-flex flex-row-reverse justify-content-center&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add a span like this to the button&#039;s value field:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;span class=&amp;quot;mr-2&amp;quot;&amp;gt;Example Button Text&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Properties and Methods ==&lt;br /&gt;
&lt;br /&gt;
Standard [[properties and methods|properties]] are supported, plus:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| appearance || Appearance of the alert. For example: success, info, warning, danger.&lt;br /&gt;
|-&lt;br /&gt;
| badge || Adds a Badge to the alert.&lt;br /&gt;
|-&lt;br /&gt;
| blocklevel || Make the button full width of parent?&lt;br /&gt;
|-&lt;br /&gt;
| ChangeForm || id of the form to change to if clicked. Optional.&lt;br /&gt;
|-&lt;br /&gt;
| grouping || Is this button part of a group? Choices are No, Start Horizontal, Start Vertical, Middle and End.&lt;br /&gt;
|-&lt;br /&gt;
| groupStyle || The styling to apply to the entire group.&lt;br /&gt;
|-&lt;br /&gt;
| icon || Optional. Icon to put at right of control. Bootstrap 3 uses the [http://fontawesome.io/icons/ Font Awesome] set. Examples: trash, check. Bootstrap 4 uses [https://www.nsbasic.com/app/OpenIconic.html Open Iconic]. Examples trash, check, circle-check.&lt;br /&gt;
|-&lt;br /&gt;
| iconTitle || Optional. Text to display when hovering cursor over icon. Bootstrap 4.&lt;br /&gt;
|-&lt;br /&gt;
| Outline || Display button with an outline, instead of solid color. Bootstrap 4.&lt;br /&gt;
|-&lt;br /&gt;
| toggleControl || Supply the name of another control here, like a [[Card_(Bootstrap)|Card]] or [[Image (Bootstrap)|Image]]. Clicking the button will show or hide the other control.&lt;br /&gt;
|-&lt;br /&gt;
| size || The size of the button. Can be large, medium, small or extra small (Bootstrap 3 only).&lt;br /&gt;
|-&lt;br /&gt;
| value || The title of the button. Design time or runtime.&lt;br /&gt;
|-&lt;br /&gt;
| hide() || Hide the button. Runtime.&lt;br /&gt;
|-&lt;br /&gt;
| show() || Show the button. Runtime.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Events ==&lt;br /&gt;
&lt;br /&gt;
Standard [[events|events]] are supported. For this control, the onclick event will be most useful.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabber&amp;gt;&lt;br /&gt;
 JavaScript=&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
// JavaScript&lt;br /&gt;
Button1.onclick = function() {&lt;br /&gt;
  NSB.MsgBox(&amp;quot;You can display a message or take other action when clicked&amp;quot;);&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-|&lt;br /&gt;
 BASIC=&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;vb.net&amp;quot;&amp;gt;&lt;br /&gt;
&#039; Basic&lt;br /&gt;
Function Button1_onclick()&lt;br /&gt;
  MsgBox &amp;quot;You can display a message or take other action when clicked&amp;quot;&lt;br /&gt;
End Function&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/tabber&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Language Reference]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Controls]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Bootstrap]]&lt;/div&gt;</summary>
		<author><name>Seneca</name></author>
	</entry>
	<entry>
		<id>https://wiki.appstudio.dev/index.php?title=Button_(Bootstrap)&amp;diff=11494</id>
		<title>Button (Bootstrap)</title>
		<link rel="alternate" type="text/html" href="https://wiki.appstudio.dev/index.php?title=Button_(Bootstrap)&amp;diff=11494"/>
		<updated>2024-03-05T03:56:45Z</updated>

		<summary type="html">&lt;p&gt;Seneca: Added information about positioning icons in bootstrap buttons&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[file:Bsbuttons.png]]&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
Buttons can be clicked on by users to initiate actions.&lt;br /&gt;
&lt;br /&gt;
By setting the appearance, buttons can have different colors.&lt;br /&gt;
&lt;br /&gt;
Buttons can be grouped into horizontal and vertical groups.&lt;br /&gt;
&lt;br /&gt;
The color of a Bootstrap button is set by its appearance property. Possible values are&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default, primary, success, info, warning, danger and link&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change a button from primary to danger, do this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$( &amp;quot;#Button6&amp;quot; ).removeClass( &amp;quot;btn-primary&amp;quot; );&lt;br /&gt;
$( &amp;quot;#Button6&amp;quot; ).addClass( &amp;quot;btn-danger&amp;quot; );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The colors for each of each of the appearance settings is defined in the Bootstrap them you use. This provides your app with a consistant look and feel throughout.&lt;br /&gt;
&lt;br /&gt;
To change the icon and text at runtime, do this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Button1.innerHTML = &amp;quot;&amp;lt;span id=&#039;Button1_icon&#039; class=&#039;fa fa-bus&#039;&amp;gt;&amp;lt;/span&amp;gt; Button&amp;quot;&lt;br /&gt;
Button1_icon.title = &amp;quot;New Title&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Introduction_to_Bootstrap#Popovers_and_Tooltips|Popovers and Tooltips]] are supported.&lt;br /&gt;
&lt;br /&gt;
When adding icons to buttons, icons will display to the left of the button text by default. Helper classes can be added to the button&#039;s class and value properties to place the icon to the right of the text.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;In Bootstrap 3:&#039;&#039;&#039; Add span with a class of .pull-left to the button&#039;s value property. You can add a non-breaking space to add room between the icon and the button text. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Button1.value = &amp;quot;&amp;lt;span class=&amp;quot;pull-left&amp;quot;&amp;gt;&amp;amp;nbsp;Example Button Text&amp;lt;/span&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;In Bootstrap 4 and Bootstrap 5:&#039;&#039;&#039; Add Bootstrap&#039;s .d-flex and .flex-row-reverse to the buttons class property. Use Bootstrap&#039;s justify and align classes to modify the placement of the button text and icon within the button (e.g., use justify-content-center to center the text and icon). Add space between the button text and icon by adding a span around the text in the button&#039;s value property and using Bootstrap&#039;s spacing helper classes (e.g., mr-1, mr-2, mr-3, etc.) to add a margin to the right side of the button&#039;s text. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Button1.class = &amp;quot;d.flex flex-row-reverse justify-content-center&amp;quot;&lt;br /&gt;
Button1.value = &amp;quot;&amp;lt;span class=&amp;quot;mr-2&amp;quot;&amp;gt;Example Button Text&amp;lt;/span&amp;gt;&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Properties and Methods ==&lt;br /&gt;
&lt;br /&gt;
Standard [[properties and methods|properties]] are supported, plus:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| appearance || Appearance of the alert. For example: success, info, warning, danger.&lt;br /&gt;
|-&lt;br /&gt;
| badge || Adds a Badge to the alert.&lt;br /&gt;
|-&lt;br /&gt;
| blocklevel || Make the button full width of parent?&lt;br /&gt;
|-&lt;br /&gt;
| ChangeForm || id of the form to change to if clicked. Optional.&lt;br /&gt;
|-&lt;br /&gt;
| grouping || Is this button part of a group? Choices are No, Start Horizontal, Start Vertical, Middle and End.&lt;br /&gt;
|-&lt;br /&gt;
| groupStyle || The styling to apply to the entire group.&lt;br /&gt;
|-&lt;br /&gt;
| icon || Optional. Icon to put at right of control. Bootstrap 3 uses the [http://fontawesome.io/icons/ Font Awesome] set. Examples: trash, check. Bootstrap 4 uses [https://www.nsbasic.com/app/OpenIconic.html Open Iconic]. Examples trash, check, circle-check.&lt;br /&gt;
|-&lt;br /&gt;
| iconTitle || Optional. Text to display when hovering cursor over icon. Bootstrap 4.&lt;br /&gt;
|-&lt;br /&gt;
| Outline || Display button with an outline, instead of solid color. Bootstrap 4.&lt;br /&gt;
|-&lt;br /&gt;
| toggleControl || Supply the name of another control here, like a [[Card_(Bootstrap)|Card]] or [[Image (Bootstrap)|Image]]. Clicking the button will show or hide the other control.&lt;br /&gt;
|-&lt;br /&gt;
| size || The size of the button. Can be large, medium, small or extra small (Bootstrap 3 only).&lt;br /&gt;
|-&lt;br /&gt;
| value || The title of the button. Design time or runtime.&lt;br /&gt;
|-&lt;br /&gt;
| hide() || Hide the button. Runtime.&lt;br /&gt;
|-&lt;br /&gt;
| show() || Show the button. Runtime.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Events ==&lt;br /&gt;
&lt;br /&gt;
Standard [[events|events]] are supported. For this control, the onclick event will be most useful.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tabber&amp;gt;&lt;br /&gt;
 JavaScript=&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
// JavaScript&lt;br /&gt;
Button1.onclick = function() {&lt;br /&gt;
  NSB.MsgBox(&amp;quot;You can display a message or take other action when clicked&amp;quot;);&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-|&lt;br /&gt;
 BASIC=&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;vb.net&amp;quot;&amp;gt;&lt;br /&gt;
&#039; Basic&lt;br /&gt;
Function Button1_onclick()&lt;br /&gt;
  MsgBox &amp;quot;You can display a message or take other action when clicked&amp;quot;&lt;br /&gt;
End Function&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/tabber&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Language Reference]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Controls]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Bootstrap]]&lt;/div&gt;</summary>
		<author><name>Seneca</name></author>
	</entry>
</feed>