Class: Bs_Checkbox
Source Location: /components/checkbox/Bs_Checkbox.class.js.php
A Checkbox Component.
Author(s):
Copyright:
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
$caption =
[line 176]
if a caption is used then it will be clickable (if the checkbox is not disabled). currently you can assign any html value, examples:
yourObj.caption = "foobar";
yourObj.caption = "<span id='foobar' class='foobar'>foobar</span>";
so you can hack in styles etc. this may change in the future, a text string only would be cleaner.
Tags:
$checkboxName =
[line 126]
When submitting the form, you'll receive the checkbox value under this name. In other words you'll receive the data back to the server as if you had placed 1 <input type=checkbox name="[the checkboxName]" id="[the checkboxName]" value="[the value]">
into your HTML-form. If you omit setting the checkboxName it will be genarated as follows: checkboxName = "checkbox" + tag-Id
Tags:
$disabled = false
[line 152]
checkbox can be disabled. then it's value cannot be changed.
Tags:
$guiNochange = false
[line 160]
if set to true then the user cannot change things by clicking. changes through the api functions (for the coder, you) are still possible.
Tags:
$imgDir = '/_bsJavascript/components/checkbox/img/win2k/'
[line 185]
Directory where the images are. Feel free to create your own images, put them into another directory (by using the same file names, etc.) See header for more info.
Tags:
$imgHeight = '20'
[line 197]
Tags:
$imgStyle = ''
[line 203]
Tags:
$imgWidth = '20'
[line 191]
Tags:
$noPartly = false
[line 145]
if set to true then the 'partly' thing won't be used, thus a value of 1 is treated like 2.
Tags:
$useMouseover = false
[line 219]
you may use the built in onMouseOver event to switch the icon. NOTE: - if you use this one, it's wise to create all icons, even
those which are never used. consider just using spacer-gif's for them.
because if an icon does not exist, the server returns a 404 not found.
and then the client (the users browser) goes and re-requests those
files again and again, on each click (checkbox status change), to see
if they're now available, even if never used.
btw, i'm speaking of the "partly checked" icons.
Tags:
$value = 0
[line 137]
checkbox checked?
0 = no
1 = partly
2 = completely
Tags:
$_constructor =
[line 527]
Class Methods
|