Constructor
new module:ct-control /basic /Progress Bar Control(control Type)
Constructs a new ProgressBarControl
with the specified arguments.
Extends:
Parameters:
Name | Type | Description |
---|---|---|
controlType |
module:ct-control |
The control type. |
Extends
Methods
add Class()
- Inherited From:
- Implements:
- See:
attach Control Event Listener()
- Inherited From:
- Implements:
- See:
bind()
- Overrides:
- Implements:
- See:
clear()
- Inherited From:
- Implements:
- See:
-
- ct-control/Control#clear
clear State()
- Inherited From:
- Implements:
- See:
create Fragment() → {Node}
Creates a fragment containing the control template
- Inherited From:
Returns:
The fragment
- Type
- Node
detach Control Event Listener()
- Inherited From:
- Implements:
- See:
disable()
- Inherited From:
- Implements:
- See:
enable()
- Inherited From:
- Implements:
- See:
finalize()
- Inherited From:
- Implements:
- See:
flash()
- Inherited From:
- Implements:
- See:
focus()
- Inherited From:
- Implements:
- See:
get Attributes()
- Inherited From:
- Implements:
- See:
get Element() → {HTMLElement}
Gets the element associated with this control.
- Inherited From:
Returns:
the element associated with this control.
- Type
- HTMLElement
get Flash Duration() → {number}
Gets the value of the flash duration.
- Inherited From:
- Implements:
Returns:
the value of the flash duration.
- Type
- number
get Id() → {integer}
Gets the numeric id of this control.
- Inherited From:
- Implements:
Returns:
The numeric id of this control.
- Type
- integer
get Initial Class Name()
- Inherited From:
- Implements:
- See:
get Numeric Flash Direction(new Value, old Value) → {string}
Determines the numeric flash direction of the new value relative to the old value. If either new or old value is not a number (for example, if either value is undefined) then the function returns an empty string.
Parameters:
Name | Type | Description |
---|---|---|
newValue |
number | The new value. |
oldValue |
number | The old value. |
- Inherited From:
Returns:
'up', 'down' or 'flat' depending on whether the new value is respectively greater than, less than or equal to the old value.
- Type
- string
get Value()
- Inherited From:
- Implements:
- See:
initialize()
- Inherited From:
- Implements:
- See:
is Bound() → {boolean}
Indicates whether the control is bound to an HTML Element.
- Inherited From:
Returns:
true
if the control is bound to an HTML Element; otherwise false
.
- Type
- boolean
is Enabled()
- Inherited From:
- Implements:
- See:
refresh()
- Inherited From:
- Implements:
- See:
remove Class()
- Inherited From:
- Implements:
- See:
remove Flash()
Removes the flash state from the control.
- Inherited From:
- Implements:
replace Class()
- Inherited From:
- Implements:
- See:
select()
- Inherited From:
- Implements:
- See:
set Attribute(name, value)
Sets a control attribute.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name of the attribute to set. |
value |
Variant | The value to set. |
- Inherited From:
- See:
set Dom Attribute(attribute Name, attribute Value)
Sets the given HTML attribute value on of the underlying HTML element.
Parameters:
Name | Type | Description |
---|---|---|
attributeName |
string | the HTML attribute name to be set. |
attributeValue |
string | the HTML attribute value to set. |
- Inherited From:
set Dom Class(class Name)
Sets the DOM CSS classname of the underlying HTML element.
Parameters:
Name | Type | Description |
---|---|---|
className |
string | the CSS class name to set. |
- Inherited From:
set Dom Parent Class(class Name)
Sets the DOM CSS classname of the underlying parent HTML element.
Parameters:
Name | Type | Description |
---|---|---|
className |
string | the CSS class name to set. |
- Inherited From:
set Dom Style(style Name, style Value)
Sets the given CSS style value on of the underlying HTML element.
Parameters:
Name | Type | Description |
---|---|---|
styleName |
string | the CSS style name to be set. |
styleValue |
string | the CSS value to set. |
- Inherited From:
(abstract) set Dom Value(value)
Sets the value in the DOM. Implementing classes must specify how their DOM value will be set.
Parameters:
Name | Type | Description |
---|---|---|
value |
string | The value to set in the DOM. |
set Id(id)
Sets the id of this control.
Parameters:
Name | Type | Description |
---|---|---|
id |
integer | the value of the id to set. |
- Inherited From:
- Implements:
set Initial Class Name()
- Inherited From:
- Implements:
- See:
set Style()
- Inherited From:
- Implements:
- See:
set Tooltip(tooltip)
Sets the tooltip value for this control.
Parameters:
Name | Type | Description |
---|---|---|
tooltip |
string | the tooltip value. |
- Inherited From:
set Value()
- Inherited From:
- Implements:
- See:
to String()
- Overrides:
- Implements:
- See: