×
Namespaces

Variants
Actions
(Difference between revisions)

Option Box

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
hamishwillee (Talk | contribs)
m (Hamishwillee - Fix categories)
 
Line 1: Line 1:
[[Category:Symbian]][[Category:Guarana UI]]
+
[[Category:Guarana UI]]
 
{{ArticleMetaData
 
{{ArticleMetaData
 
|sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] -->
 
|sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] -->

Latest revision as of 06:40, 5 July 2012

Article Metadata
Article
Created: User:Kbwiki (09 Nov 2009)
Last edited: hamishwillee (05 Jul 2012)

[edit] Inheritance

Nokia.Widget
|- Nokia.OptionBox

[edit] 1 - Description

This is the basic class for Checkbox and Radio Button Components.

[edit] 2 - Visual Design

Not Applicable for this component.


[edit] 3 - Component Dependencies

[edit] 3.1 CSS

Not Applicable for this component.


[edit] 3.2 Javascript

<!-- jQuery file -->
<script src="/lib/jquery/jQuery.js" type="text/javascript" charset="utf-8"></script>
<!-- Guarana file -->
<script src="/lib/Guarana.js" type="text/javascript" charset="utf-8"></script>


[edit] 4 - Functional Specifications/Requirements

[edit] 4.1 - Options

  • checked: boolean
    • Defines if the component will be created in checked state.
  • disableLabelSelection: boolean
    • Defines that the component label will be not selectable.
  • label: String
    • Defines the Label for the component.
  • wrapper: String
    • Wrapper element for the component.


[edit] 4.2 - Events - Callbacks

  • check: function()
    • Scope: [this.element]
  • unckeck: function()
    • Scope: [this.element]


[edit] 4.3 - Methods

  • isChecked: function()
    • Checks if component is in checked state.
    • return [void]
  • check: function(event)
    • Performs check.
    • return [void]
  • unckeck: function(event)
    • Performs uncheck.
    • return [void]

[edit] 4.4 - Default options

  • wrapper: 'div',
  • disableLabelSelection: true,
  • checked: false


[edit] 5 - Component Demo

[edit] 5.1 HTML

Not Applicable for this component.


[edit] 5.2 Javascript

Not Applicable for this component.


[edit] 6 - Nokia WRT Browser Compatibility

Not Applicable for this component.

This page was last modified on 5 July 2012, at 06:40.
22 page views in the last 30 days.
×